My favorites | Sign in
Project Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 419: Ability to set z-index of markers programmatically (and at any time)
25 people starred this issue and may be notified of changes. Back to list
Status:  Acknowledged
Owner:  ----
Type-Enhancement
Priority-Medium
ApiType-Javascript
Internal-1221948
Class-GMarker


Sign in to add a comment
 
Reported by h...@agentsinaction.de, Jun 12, 2008
This is a feature request for the ability to change the z-Index of markers
when a mouseover event occurs.

To illustrate this issue please look at
http://esa.ilmari.googlepages.com/ZMarker2.htm You can see that if there
are too many icons it is difficult to see if were stacked over each other.
This is even more relevant if the icons have some information on it (e.g.
with LabedMarkers).

If you look at http://www.kreisalarm.de/drkmap (zoom in to see even more
examples) you will find a solution where the label (marker) which receives
the mouseover event will be put in the foreground so its content can be read.

So please extend the API for "getZIndex" and "setZIndex" methods so that
this behaviour can be used without hacks.

Jörn
Comment 1 by pamela.fox, Jun 14, 2008
Reported, and re-titled to be a bit clearer. 
You can keep using your hack, but I'd suggest checking it once a week to make sure it
still works.
Summary: Ability to set z-index of markers programmatically (and at any time)
Status: Accepted
Labels: -Type-Defect Type-Enhancement ApiType-Javascript Internal-1221948 Class-GMarker
Comment 2 by buckvideo, Jun 19, 2008
I've also had to implement this sort of hack and have been checking it daily as the
object reference shifts.  I would love to see z-index getters and setters on the markers.

Is there a way to be notified whenever the API is updated?
Thanks,
Josh
Comment 3 by pamela.fox, Jun 19, 2008
Hi Josh- Star this issue to be notified of updates to it.
Comment 4 by buckvideo, Jun 19, 2008
Thanks kindly, Pamela.

Comment 5 by marius.gerdan, Jul 09, 2008
would be nice
Comment 6 by esa.ilmari, Oct 01, 2008
Also the explanation in the reference is not complete.

"This function is used for changing the z-Index order of the markers when they are 
overlaid on the map and is also called when their infowindow is opened."

It does not mention that the zIndexProcess function is also called when the 
infowindow is closed. That makes using the function very difficult.
Comment 7 by phpaul, Dec 14, 2008
This feature would definitely make my life a lot easier. The API is really lacking in
the 'stacking order control' department.
Comment 8 by cdtadm, Jan 03, 2009
Current API allows changing only the following characteristics of a GMarker object
after it's been created: position (setLatLong), foreground icon (setImage) and an
InfoWindow content. But sometimes when the position of the marker is changed it
appears underneath other shapes on the map and that requires z-index adjustment which
is currently impossible to do. Having the abitlity to adjust a z-index of a GMarker
would really improve flexibility of the API and make developers' job much easier.
Comment 9 by pamela.fox, Jan 04, 2009
As a workaround, you can create your own marker and implement z-index changing with 
that. Here's example code:
http://gmaps-samples.googlecode.com/svn/trunk/photolayer/markerlight.js


Comment 10 by esa.ilmari, Feb 26, 2009
Just noticed that setLatLng() and even dragging a draggable marker will trigger 
zIndexProcess too.
http://esa.ilmari.googlepages.com/zindexprocess.htm
Comment 11 by pamela.fox, May 24, 2009
Changing status of "Accepted" issues to "Acknowledged", to clarify their 
state.

We may not be able to resolve all bugs or fulfill all feature requests, but 
we do thank you for filing them, and we will continually revisit all 
acknowledged issues and evaluate their feasibility. Thanks!


Status: Acknowledged
Comment 12 by theycallmejoe, Oct 14, 2009
I just wondered if there has been progress on this?
Sign in to add a comment

Hosted by Google Code