Active
Project:
GMap Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2010 at 22:19 UTC
Updated:
30 Jun 2012 at 16:28 UTC
Jump to comment: Most recent file
I commented on the same bug in another issue. The clusterer shows only "2" for clusters with many more than two markers, initially, but then becomes correct as soon as the map is zoomed. Enabling autozoom seems to correct the problem, but it persists after disabling autozoom.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | first-autozoom.png | 672.01 KB | korayal |
| #10 | after-manualzoom.png | 667.94 KB | korayal |
Comments
Comment #1
marcushenningsen commentedI still have the problem with autozoom enabled. How do your gmap settings otherwise look?
Comment #2
webavant commentedI also had that same problem, at one point, where I would enable autozoom, but it still would not display the correct cluster amounts. I realized that autozoom was not actually occurring, despite having enabled it, because of some other contributing factor. I think it wasn't autozooming because I had the zoom level set higher (closer-in) than all of the nodes appearing in my gmap (some markers were off the edge). So I just set the zoom lower (further-out), autozoom took effect and the clusterer behaved correctly.
Comment #3
webavant commentedComment #4
webavant commentedactually, nevermind
Comment #5
meji15 commentedI have the same problem with the initially-loaded map. The counter always says 2 when the map is first loaded but it shows correct result after zooming in/out.
Has anyone found any solution yet?
Comment #6
webavant commentedEnabling autozoom seems to be the solution. Works nicely now.
Comment #7
enzipher commentedI can confirm that autozoom fixes the issue.
For anyone wondering how to enable this, use the below macro instead of
[gmap]:[gmap behavior=+autozoom ]Cheers,
Comment #8
mablack commentedGrabbing the latest copy of MarkerClusterer.js from SVN - http://code.google.com/p/gmaps-utility-library-dev/ - also seems to fix the issue.
Comment #9
vodkov commentedThank you for the tip.
[gmap behavior=+autozoom ] solved the problem for me.
Comment #10
korayal commentedI had a similar problem but autozoom fixed it.
But I still see wrong marker counts on the map. You can check:
https://burgerking.kuponmakinasi.com/admin/restorankontrol/map
As you can see when you zoom in to a cluster with the count "2", there is only one marker. So it looks like it's duplicating their count.
You can also check the numbers on the first load, and check them again after a zoom in and out, values on the first load are relatively more correct, but somehow it duplicates the others. (You can check the attached images)
Comment #11
jeni_dc commentedI was faced with a situation where I couldn't have autozoom enabled on D7 for a particular map, and I can confirm the latest js from the link in #8 worked for me, too.
Thanks!
Jeni