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.

Comments

dafeder’s picture

Title: Grid Size not working on markerclusterer » Grid Size and MaxZoom not working on markerclusterer
Status: Active » Needs review
StatusFileSize
new830 bytes

Worked for me! Here is a proper patch.

bdone’s picture

just confirming that this patch works and fixes the issue (in 6.x-1.x-dev as well).
thanks!

kasperg’s picture

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

grasmash’s picture

Status: Needs review » Reviewed & tested by the community

Applied patch to 7.x-1.x-dev. Confirmed working.

jim kirkpatrick’s picture

Works on 6.x-1.x-dev too! Please commit.

jim kirkpatrick’s picture

Actually, related to #966184: Make MarkerClusterer styles and maxZoom work, somehow. too (admin screen settings not of correct type).

dunx’s picture

Same fix works for Drupal 6.

podarok’s picture

#3 commited to 7.x-1.x branch

tnanks!

podarok’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
StatusFileSize
new893 bytes

rerolled to 7.x-2.x
this patch commited to 7.x-2.x branch

podarok’s picture

Status: Reviewed & tested by the community » Fixed
podarok’s picture

status

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