Closed (fixed)
Project:
GMap Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2009 at 22:25 UTC
Updated:
26 Dec 2009 at 00:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
Logan McMillan commentedComment #2
Psi-factor commentedConfirm, if marker have 2 location with same coordinate, gmap show ONLY last marker (tip & link to node show only for last added node)
Comment #3
dan.crouthamel commentedIf it helps, I outline a modification I made to gmap here -> http://drupal.org/node/284481#comment-1223924, which allows for showing multiple markers with the same lat/long
Comment #4
tonycpsu commentedSubscribing.
Comment #5
gorillapictures commentedThat is correct. I have 10 markers on the one spot - only 1 shows. When I try and use Clusterer etc. they all disappear.....but then I found out they sometimes appear at different zooms.
Anyone else get that?
Comment #6
webavant commentedI am having the problem where absolutely no markers appear on the initial load. If I zoom in or out one level, they appear right away and seem to function normally after that. Clusterer works fine for me, but ClusterMarker has this problem. None of my locations share the same coordinates.
Comment #7
nickbaker commentedI also wanted to use ClusterMarker, but found the markers would not render on initial page load.
The markers would only display after changing map type, moving or zooming - investigation showed this was due to ClusterMarker's refresh method not being called until one of the events maptypechanged, moveend or zoomend occurred.
My fix was to add the following code to clustermarker_marker.js (in the gmap module's js directory):
This was added to the Drupal.gmap.addHandler function, following the clearmarkers handler binding.
I'm using 5.x-1.1-rc1, but the clustermarker_marker.js in 6.x-1.1-rc1 appears to be the same, as does markerloader_static.js, whichs fires the markersready event.
I'm attaching a patch file, in case it may be of use to someone else.
Comment #8
nemchenk commentednick.baker's patch works perfectly for me with GMap 6.x-1.1-rc1 and ClusterMarker 1.3.2. Thank you! :)
Comment #9
Cybergarou commentedThis has been plaguing me for a very long time now. The patch in #7 solves the problem. I wouldn't be surprised if the problems I saw with some of the other marker managers have the same cause.
It's worth noting that anyone who has the autozoom feature enabled won't see this problem, presumably since autozoom triggers the zoomend event.
Comment #10
marcp commentedThe fix in #7 works for me too so I created a true patch file (apply it with patch < gmap-cluster-issue-406618.patch in modules/gmap/js.
I'm not sure how others are getting by with clustering without this fix in place.
Comment #11
duellj commentedI can confirm that the patch in #10 applies correctly and solves this problem.
Comment #12
bdragon commentedFixed, thanks.
http://drupal.org/cvs?commit=300960
http://drupal.org/cvs?commit=300968