Thanx!

But if anyone know how it is calculated I would like to know.  Because
as undefined the markers are on top of each other the correct way.
But when setting all the markers to the same zIndex then it doesn't
look as good - some markers are ontop of markers it should be behind.
So what I would like to do is calculate the undefined zIndex and add
999 so they look better.

, MacGoose


On 23 Jul, 13:46, Chad Killingsworth
<[email protected]> wrote:
> In other threads, we've used 999 to be on top of every marker. 
> Seehttp://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
>
> Chad Killingsworth
>
> On Jul 23, 2:23 am, MacGoose <[email protected]> wrote:
>
>
>
> > Hi!
>
> > I have a bunch of markers that each represent a pingable object.  They
> > all have a neutral color.  And when I ping them a reply colors them
> > green and a timeout colors them red.
>
> > As it is now neutral markers have an undefined zIndex letting the API
> > handle that.  And I set all green markers' zIndex to 0 and all the red
> > ones' to 1.  This is an effective way to get the red ones infront of
> > the green ones.  But not infront of the neutral ones.  As I understand
> > the default zIndex of a marker is calculated out of the latitude.  So
> > a marker at latitude 60 will have a zIndex of lets say 60.  I know
> > this isn't the correct algortihm because I tried setting green markers
> > to 181 and red to 182 as this would place the markers infront all -
> > but it didn't.
>
> > Does anybody know what the highest calculaten zIndex for a marker is
> > so that I can just add 1 to that number and be sure that marker is
> > infron of all other markers?
>
> > TIA!
>
> > , MacGoose

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to