<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — [solved] Problem with markers group]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=290&amp;type=atom" />
	<updated>2016-10-03T15:18:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=290</id>
		<entry>
			<title type="html"><![CDATA[Re: [solved] Problem with markers group]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1334#p1334" />
			<content type="html"><![CDATA[<p>Thanks <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[wifidlab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=264</uri>
			</author>
			<updated>2016-10-03T15:18:03Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1334#p1334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [solved] Problem with markers group]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1327#p1327" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-09-28T14:59:56Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1327#p1327</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[solved] Problem with markers group]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1325#p1325" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[wifidlab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=264</uri>
			</author>
			<updated>2016-09-27T21:13:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1325#p1325</id>
		</entry>
</feed>
