Ideally, the user is able to select (or via the hook_leaflet_map_info) the icon for the clusters. All other options for markercluster are currently changeable via the map_info hook, but icons are not.

Comments

rdeboer’s picture

From memory,... so I may be wrong... but the cluster "icons" are in fact HTML elements with rounded corners to make them appear like discs, right?
Doesn't mean there shouldn't be a UI for it...

pvhee’s picture

Indeed, these are the DivIcons, but the icons can also be png's and work just like these for Leaflet I've already committed support for image icons here: http://drupalcode.org/project/leaflet_markercluster.git/commit/9cf90c7, but I think it would be good to think of a UI, or easy JS overrides, for DivIcon.