tags:

views:

214

answers:

1

Hi,

i'm painting some GMarkers on a subgurim map. sometimes the GMarkers overlap each other. That isn't a problem, but i want one specific one, which is kwown when i put them on the map, on top of all the others because that is the one the user clicked latest. i thought i could just add it to the map as the latest one and it woul be on top, but it isn't: the z-order of it looks like to be set at random. Can i make sure that this GMarker is 'painted on top'?

Michel

A: 

In Google Maps itself, you can set the z-index of the markers by specifying a {zIndexProcess} parameter when you create them.

The default z-index value is calculated from the latitude. Markers to the south appear on top. The default z-index values can be very large positive and negative values, so your zIndexProcess code needs to use extremely large z-index values to be guaranteed to be on top.

See: This tutorial

I don't know whether using subgurim affects your access to {zIndexProcess}.

Mike Williams