Hi,
it seems that the gridSize and maxZoom options for markerclusterer are not working. This is because in the markercluster library, the default values for those options are overwritten only if the new values are numbers:
if (typeof opt_opts.gridSize === "number" && opt_opts.gridSize > 0) {
gridSize_ = opt_opts.gridSize;
}
I attached a patch that should resolve this bug for the moment. It has to be applied on gmap/js/markerclusterer_marker.js
Vasi.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 1208420-7.x-2.x.patch | 893 bytes | podarok |
| #3 | gmap-markerclusterer_maxzoomgridsize-1208420_3.patch | 1.16 KB | kasperg |
| #1 | gmap-markerclusterer_maxzoomgridsize-1208420_1.patch | 830 bytes | dafeder |
| markerclusterer_marker.js_.patch | 796 bytes | vasi1186 |
Comments
Comment #1
dafederWorked for me! Here is a proper patch.
Comment #2
bdone commentedjust confirming that this patch works and fixes the issue (in 6.x-1.x-dev as well).
thanks!
Comment #3
kasperg commentedThe patch in #1 works for me as well using 7.x-1.x-dev.
I've rerolled the patch to work from the root directory of the module.
Comment #4
grasmash commentedApplied patch to 7.x-1.x-dev. Confirmed working.
Comment #5
jim kirkpatrick commentedWorks on 6.x-1.x-dev too! Please commit.
Comment #6
jim kirkpatrick commentedActually, related to #966184: Make MarkerClusterer styles and maxZoom work, somehow. too (admin screen settings not of correct type).
Comment #7
dunx commentedSame fix works for Drupal 6.
Comment #8
podarok#3 commited to 7.x-1.x branch
tnanks!
Comment #9
podarokrerolled to 7.x-2.x
this patch commited to 7.x-2.x branch
Comment #10
podarokComment #11
podarokstatus