Topic: Marker position
Hi,
I use this code to set many PIN markers (blue in the image) on a map ant then just one POI (the green one):
...
// Set PIN on map
for (int i=0; i<PINName.Count; i++) {
PINPos.x = float.Parse(PINLon[\i].ToString ());
PINPos.y = float.Parse(PINLat[\i].ToString ());
MapLocation = PINName[\i].ToString ();
OnlineMaps.instance.AddMarker (PINPos, PINTexture, MapLocation);
}
// Set POI on map
PINPos = new Vector2 (MapLon, MapLat);
OnlineMaps.instance.zoom = 9;
OnlineMaps.instance.SetPosition (MapLon, MapLat);
OnlineMaps.instance.AddMarker (PINPos, MapLocation);
...
There is a way to place la last marker (the green one), in front of the others?
Now his position seems random: somethimes is in front, sometimes is behind other markers.
Thank you!