Closed (outdated)
Project:
Leaflet Markercluster
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2013 at 17:40 UTC
Updated:
3 Feb 2019 at 11:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
simon georges commentedCross-referencing #1717568: Make options configurable.
Comment #2
rdeboerWhen you use Leaflet MarkerCluster in combination with IP Geolocation Views and Maps you can switch it on/off per map and also specify the cluster radius per map.
Rik
Comment #3
simon georges commented@RdeBoer, would you mind deporting this functionality here, then?
In my opinion, IP Geolocation Views and Maps should be a kind of "glue" module that puts everything together, but each module should be responsible for its functionality and settings, don't you think?
Comment #4
rdeboer@Simon Georges,
I see what your saying.
The way Leaflet MarkerCluster is designed at the moment is more like a lighweight plugin than a fully-fledged, bells-and-whistles kind of spaceship.
Peter Vanhee (pvhee) is the author and head maintainer of Leaflet MarkerCluster and I'll leave it up to him to decide in which direction he wants to go with the module.
Rik
Comment #5
el1_1el commentedI had this issue with markercluster, leaflet_views and geofield. I "solved" it by adding an element to the form in leaflet/leaflet_views/leaflet_views_plugin_style.inc
and then a hook in leaflet_markercluster.module
I'm pretty sure there's a better (proper) way to do this that doesn't span 2 modules and gets the use_clusters checkbox without digging 12 levels into the $view object, so I wont post a patch and will hope someone enlightens me on how to do this correctly...but in the meantime, this seems to solve the problem
Comment #6
el1_1el commentedAlso, this seems to be a duplicate of (or at least related to) these issues - https://drupal.org/node/1845356
https://drupal.org/node/2038659
Comment #7
el1_1el commentedI rewrote this as patches after the recent security upgrade broke my last fix. I still need to find a way to port the patch on leaflet/leaflet.formatters.inc into the leaflet_markercluster module. Definitely not the ideal solution but seems to be working so far and might get a ball rolling... anyone else interested?
Comment #8
rdeboerUse IPGV&M.
Comment #9
sano commentedThe patches @el1_1el provided helped me to realize that clustering can be turned off also by creating a module with map definition that includes
... in the map settings array.
By the way, on different pages I use also IPGV&M where clustering can indeed be toggled on/off, but that module does not allow me to dynamically style (say: color) points rendered in the map from row values.