The nearby feature includes a cluster library that allows the creation of clusters from markers. This library could also be used to cluster user input added from <mapframe> and <maplink>. The library supports clustering in different cluster groups so it would be possible to have differently styled cluster layouts to transparently distinct between markers from different source that should not be grouped together.
Still it's not clear how this functionality should be offered to the authors / readers. So some questions remain:
- How can we make sure that the clustering layout reflects user expectations best?
- Should it be configurable in the wikitext or enabled by default?
- Should we allow inline plugin configuration? (cluster -group, -size, -cothese markers reflectslor, -icon?)
- Should it always cluster by group, or just distinguish by source?
Examples:
- Note that the screenshots are taken from the prunecluster library the currently favored markercluster works similar though.
- The layout of the cluster icons is a major thing that needs to be defined.
without marker cluster | with marker cluster |
---|---|
(zoom=4) | (zoom=4) |
(zoom=5) | (zoom=5) |
(zoom=6) | (zoom=6) |
See https://github.com/Leaflet/Leaflet.markercluster for the plugin currently in use.