cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

MarkerClusterer: Too low of GOverlay issue with Cluster Markers #152

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issue

I believe the marker cluster markers are being created on too low of a
pane/level.  I created a map with a new overlay attached to pane
G_MAP_FLOAT_SHADOW_PANE.  This pane should be safe to attach overlays on so
that markers are still clickable.  However, cluster markers cannot be
clicked unless I lower mp overlays pane to G_MAP_MAP_PANE, the lowest pane
possible.

What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.

1. Load a gmap using the attached mtrickoverlay.js and mask.png image. 
2. Load gmap with the following commands:

    var mask = new MTrickOverlay();
    gmap.addOverlay(mask);

3. Map is now loaded with a new layer.  ANY marker clusters under this
layer are unclickable (this image is 346px wide, so anything on the left
hand side of the map); however, regular markers are perfectly clickable.

Solution

So users are not confused in the future at why cluster markers are not
clickable, create the cluster markers on a higher pane.

  OLD
    Line 741: map.getPane(G_MAP_MAP_PANE).appendChild(div);

  NEW
    Line 741: map.getPane(G_MAP_MARKER_MOUSE_TARGET_PANE).appendChild(div);

Original issue reported on code.google.com by Ben.Talberg on 4 Sep 2009 at 1:22

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by spallad...@gmail.com on 4 Sep 2009 at 1:55

GoogleCodeExporter commented 8 years ago
I've been looking into it, and adding all overlays to 
G_MAP_MARKER_MOUSE_TARGET_PANE 
places clusters on top of the info window shadow. Therefore, we should change 
the 
ClusterMarker_ HTML representation so we have two different divs: a 
non-clickable one 
with the image, placed at G_MAP_MARKER_PANE; and another div at the same 
position with 
the same size, transparent, clickable, at G_MAP_MARKER_MOUSE_TARGET_PANE.

I'll try to look into it next week.

Original comment by spallad...@gmail.com on 4 Sep 2009 at 2:08

GoogleCodeExporter commented 8 years ago
That's a better idea than mine. Thanks spalladino for looking into and working 
on this.

Original comment by Ben.Talberg on 4 Sep 2009 at 3:22

GoogleCodeExporter commented 8 years ago
Any news on this one? Have the same issue myself.

Original comment by knutmar...@gmail.com on 1 Mar 2010 at 10:31