1 (edited by wifidlab 2016-10-03 15:18:28)

Topic: [solved] Problem with markers group

Hello,
we are experiencing a strange behaviour with marker'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).

Can you help us solving this situation?


said so, your component is a very good piece of code, kudos. smile

Re: [solved] Problem with markers group

Hello.

By default, before drawing, markers sorted by latitude.
To change the order of drawing markers, use:
For tileset: OnlineMapsTileSetControl.markerComparer.
For others: OnlineMapsBuffer.OnSortMarker.

Example (for tileset):
http://infinity-code.com/atlas/online-m … ample.html

Example (for other):

using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[AddComponentMenu("")]
public class SortMarkersExample : MonoBehaviour {

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

    private IEnumerable<OnlineMapsMarker> OnSortMarker(IEnumerable<OnlineMapsMarker> markers)
    {
        // Sorting markers.
        return markers.OrderByDescending(m => m.position.y);
    }
}
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: [solved] Problem with markers group

Thanks smile