<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How draw location marker on top of other markers?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1619&amp;type=atom" />
	<updated>2020-10-11T15:52:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1619</id>
		<entry>
			<title type="html"><![CDATA[Re: How draw location marker on top of other markers?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6737#p6737" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You need to modify the Compare method in this example. <br />Something like that:<br /></p><div class="codebox"><pre><code>public int Compare(OnlineMapsMarker m1, OnlineMapsMarker m2)
{
    if (m1 == OnlineMapsLocationService.marker) return 1;
    if (m2 == OnlineMapsLocationService.marker) return -1;

    if (m1.position.y &gt; m2.position.y) return -1;
    if (m1.position.y &lt; m2.position.y) return 1;
    return 0;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-10-11T15:52:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6737#p6737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How draw location marker on top of other markers?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6735#p6735" />
			<content type="html"><![CDATA[<p>I generate several 2D markers using OnlineMapsMarker.Create(). I also use OnlineMapsLocationService. At runtime all markers including the location marker are drawn in one Mesh and all use the same Render Queue. </p><p>I want the location marker to be drawn always on top of the other markers. How can I achieve this?</p><p>I have seen an example about Marker Comparing (<a href="http://infinity-code.com/atlas/online-maps/pages/TilesetMarkerDepthExample.html">http://infinity-code.com/atlas/online-m … ample.html</a>), but I do not understand whether this may help me, since I do not see how I find the location marker between the others.</p>]]></content>
			<author>
				<name><![CDATA[holgermuegge]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1344</uri>
			</author>
			<updated>2020-10-10T21:31:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6735#p6735</id>
		</entry>
</feed>
