<?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 — [solved] Problem with markers group]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=290</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=290&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [solved] Problem with markers group.]]></description>
		<lastBuildDate>Mon, 03 Oct 2016 15:18:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [solved] Problem with markers group]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1334#p1334</link>
			<description><![CDATA[<p>Thanks <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (wifidlab)]]></author>
			<pubDate>Mon, 03 Oct 2016 15:18:03 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1334#p1334</guid>
		</item>
		<item>
			<title><![CDATA[Re: [solved] Problem with markers group]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1327#p1327</link>
			<description><![CDATA[<p>Hello.</p><p>By default, before drawing, markers sorted by latitude.<br />To change the order of drawing markers, use:<br />For tileset: OnlineMapsTileSetControl.markerComparer.<br />For others: OnlineMapsBuffer.OnSortMarker.</p><p>Example (for tileset):<br /><a href="http://infinity-code.com/atlas/online-maps/pages/TilesetMarkerDepthExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p><p>Example (for other):<br /></p><div class="codebox"><pre><code>using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[AddComponentMenu(&quot;&quot;)]
public class SortMarkersExample : MonoBehaviour {

    void Start () 
    {
            // I point that the sort of markers will be here.
        OnlineMapsBuffer.OnSortMarker = OnSortMarker;
    }

    private IEnumerable&lt;OnlineMapsMarker&gt; OnSortMarker(IEnumerable&lt;OnlineMapsMarker&gt; markers)
    {
        // Sorting markers.
        return markers.OrderByDescending(m =&gt; m.position.y);
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 28 Sep 2016 14:59:56 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1327#p1327</guid>
		</item>
		<item>
			<title><![CDATA[[solved] Problem with markers group]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1325#p1325</link>
			<description><![CDATA[<p>Hello,<br />we are experiencing a strange behaviour with marker&#039;s group:following your example we applied it to our 3D markers; everything works fine except that zooming or moving the map cause the group to go beneath single markers making it invisible (see attached picture).</p><p>Can you help us solving this situation?</p><br /><p>said so, your component is a very good piece of code, kudos. <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (wifidlab)]]></author>
			<pubDate>Tue, 27 Sep 2016 21:13:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1325#p1325</guid>
		</item>
	</channel>
</rss>
