<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — How draw location marker on top of other markers?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1619</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1619&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How draw location marker on top of other markers?.]]></description>
		<lastBuildDate>Sun, 11 Oct 2020 15:52:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How draw location marker on top of other markers?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6737#p6737</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 11 Oct 2020 15:52:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6737#p6737</guid>
		</item>
		<item>
			<title><![CDATA[How draw location marker on top of other markers?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6735#p6735</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (holgermuegge)]]></author>
			<pubDate>Sat, 10 Oct 2020 21:31:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6735#p6735</guid>
		</item>
	</channel>
</rss>
