Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
MarkerClusterer is not working with last Gmap version 7.x-2.x-dev. This is the javascript error I got with Firebug :
GOverlay is not defined
http://localhost/goandsea/sites/all/modules/gmap/thirdparty/markerclusterer_packed.js?m3nx4u/eval/seq/1
Line 1
GEvent is not defined
http://localhost/goandsea/sites/all/modules/gmap/thirdparty/markerclusterer_packed.js?m3nx4u/eval/seq/1
Line 1
Map is displayed correctly but but no markers are shown...
I tried with the previous Gmap version called 7.x-1.x-dev and it's working fine, clusters and markers are correctly shown.
Any idea or any patch ?
Cheers,
Comment | File | Size | Author |
---|---|---|---|
#11 | 1565792-11-markercluster-6.x-2.x.patch | 1.07 KB | joelpittet |
#2 | fix-marker-clusterer-gmapv3.patch | 1.2 KB | hadim |
Comments
Comment #1
hadim CreditAttribution: hadim commentedThe bug seems to be related to the new Google Maps API version. Which is version 3, in the module 7.x-2.x-dev GMap module.
Someone could update the GMap module to match with API v3 ?
New library for markerclusterer in API v3 can be found here: http://code.google.com/p/google-maps-utility-library-v3/source/browse/#s...
I tried to adapt GMap code and especially the code in markerclusterer_marker.js but I didn't success to make markerclusterer work.
Any help will be very cool :-D
Comment #2
hadim CreditAttribution: hadim commentedI find a way to make it work. Not sure is the best way here but it's working. Look the associated patch.
Comment #3
haiiro.shimeji CreditAttribution: haiiro.shimeji commentedI got the same problem and confirm the patch fix this.
This patch is applied to 7.x-2.x branch.
Thanks a lot!
Comment #5
joelpittetThis also fixes 6.x-2.x-dev. Re-opening for backport.
Comment #7
podarokstatus update
Comment #8
podarok#2: fix-marker-clusterer-gmapv3.patch queued for re-testing.
Comment #10
podarokneeds work
Comment #11
joelpittetRe-rolled for 6.x-2.x
Comment #12
podarok#11 commited pushed to 6.x-2.x
Thanks!
Comment #13
joelpittetThanks for being so on top of these patches:)
Comment #14
dunx CreditAttribution: dunx commentedFor gmap 6.x-2.0-beta5:
Downloaded http://code.google.com/p/google-maps-utility-library-v3/source/browse/tr... to .../gmap/thirdparty/
Changed MarkerClusterer settings config at .../admin/settings/gmap to use markerclusterer_compiled.js as this was set to markerclusterer_packed.js
Didn't need to patch .../gmap/js/markerclusterer_marker.js as it already matched the patched version.
So basically, just a new version of the library and a config tweak. Anyway, all working again.