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,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hadim’s picture

Status: Active » Needs work

The 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

hadim’s picture

I find a way to make it work. Not sure is the best way here but it's working. Look the associated patch.

haiiro.shimeji’s picture

Status: Needs work » Fixed

I got the same problem and confirm the patch fix this.
This patch is applied to 7.x-2.x branch.
Thanks a lot!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

joelpittet’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Reviewed & tested by the community

This also fixes 6.x-2.x-dev. Re-opening for backport.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, fix-marker-clusterer-gmapv3.patch, failed testing.

podarok’s picture

Status: Needs work » Patch (to be ported)

status update

podarok’s picture

Status: Patch (to be ported) » Needs review

#2: fix-marker-clusterer-gmapv3.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, fix-marker-clusterer-gmapv3.patch, failed testing.

podarok’s picture

Status: Needs work » Patch (to be ported)

needs work

joelpittet’s picture

Status: Patch (to be ported) » Needs review
FileSize
1.07 KB

Re-rolled for 6.x-2.x

podarok’s picture

Status: Needs review » Fixed

#11 commited pushed to 6.x-2.x
Thanks!

joelpittet’s picture

Thanks for being so on top of these patches:)

dunx’s picture

For 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.