A GOverlay() can be attached to one of seven GMapPane()s. The panes are stacked one above the other. The z-index of an individual overlay only changes its position relative to other objects on the same pane. An overlay on the G_MAP_FLOAT_PANE is always above everything that's on the G_MAP_MARKER_MOUSE_TARGET_PANE.
Best practice would be to create proper click targets for your markers. The invisible click targets (and the mouseover and mouseout targets) would then live on the G_MAP_MARKER_MOUSE_TARGET_PANE, and you could put your GOverlay on the G_MAP_FLOAT_SHADOW_PANE which is below the click targets but above the marker images. If you decide not to do that, then you could put your GOverlays below the marker images, either in the unnamed pane 3 (but that may not be futureproof. Google might decide to renumber the panes at some point in the future) or on the same pane as the markers with a low z-index. Note that GMarkers can have extremely negative z-index values, and those values vary between API releases. So don't hard-code your z-index values, use GOverlay.getZIndex(latitide) to find out what the z-index of a marker would be at that point and subtract a few tens of thousands. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
