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.
I am using markerclusterer_packed.js
I do not see any effect while changing the Max Zoom level. I would have expected this setting to not show clusters and show individual markers above this level.
Does anyone have this effect working?
Comments
Comment #1
waverate CreditAttribution: waverate commentedBump
Comment #2
brei9000 CreditAttribution: brei9000 commentedI'm also having this issue... anyone solve it?
Comment #3
Paul_Gregory CreditAttribution: Paul_Gregory commentedHaving hit this issue today I see that the problem lies with the values for Grid Size and Max Zoom being stored as strings within the in the gmap_markermanager array in the Variables table. The MarkerClusterer expects these values to be numbers. This is a snippet from the unpacked markerclusterer.js - note the use of
typeof XXX === "number"
:However, I'm not entirely sure how to force the value to be stored as an integer.
Paul
Comment #4
marco.abiuso.questar CreditAttribution: marco.abiuso.questar commentedAs a temporary workaround, you may change the javascript into:
The same stands for the gridSize
You'll have to use the unpacked js version, or repack it, of course.
Unfortunately I see simple no way to force the values storing as integer, as admin forms are handled directly by Drupal (there is no code to hack in the module, a part from the admin form itself).
Hope this helps.
Comment #5
dafederDuplicate of #1208420: Grid Size and MaxZoom not working on markerclusterer (working patch over there)