Hi Rik,
relating to what realized to make the markeclustering working on more than one map at the same time in the same page (https://drupal.org/node/2038659),
the IP Geolocation Views & Maps module should update the "ip_geoloc_plugin_style_leaflet.inc" to make the "leaflet_markercluster.drupal.js" file be conditionally loaded in place of the "leaflet.drupal.js" …
I attach here the new (zipped) file that makes it working perfectly (it seems to me) in every context in every page, even with three marker clustered maps (see attached image file).
Note: With this leaflet plugin style code, in every view the "Marker cluster radius" parameter should be not null and > 0, otherwise (if not, even in one) any map (in the page) will be marker clustered (as the "leaflet.drupal.js" file will be loaded instead). Considering this, it is much better (and makes great sense) to set that parameter to 1 px to disable the marker clustering on a specific map …
I hope I am understandable with all this ...
| Comment | File | Size | Author |
|---|---|---|---|
| n_markerclusters.jpg | 329.94 KB | itamair | |
| ip_geoloc_plugin_style_leaflet.inc_.zip | 5.93 KB | itamair |
Comments
Comment #1
rdeboerRelates to the patches mentioned here: #2056557: (my) Improvements for multiple Leaflet Markeclusterd maps (fit bounds), interactions from outside of the map & View AJAX calls
Comment #1.0
rdeboerupdate
Comment #2
rdeboerTo alleviate the situation enter a Marker Cluster Radius of 1px for the maps that you do not wish to be clustered.
Comment #3
rdeboer