|mediawiki/extensions/Kartographer : master||Add Leaflet.MarkerCluster plugin to group multiple marks into one.|
The current patch is using Leaflet.MarkerCluster plugin.
According to their repository, PruneCluster plugin seems to be much more performant than the MarkerCluster plugin:
PruneCluster is a fast and realtime marker clustering library.
It's working with Leaflet as an alternative to Leaflet.markercluster.
The library is designed for large datasets or live situations. The memory consumption is kept low and the library is fast on mobile devices, thanks to a new algorithm inspired by collision detection in physical engines.
Moving forward, I plan to do a little benchmarking myself, do a feature comparison, pick a solution, and then made a final proposal with the solution we picked.
To match Wikivoyage functionality, and based on announced performance, we decided to go with prunecluster (at least for now). I am resolving this spike, and, for reference, here are the following tasks:
T136453: Add a resource to load the marker cluster plugin
T136454: Wikivoyage prototype should load the marker cluster resource
T136455: Decide if and when <maplink> and <mapframe> shoud load the marker cluster resource