I have a relatively straightforward problem: draw points on the map and do some action when a user clicks on any of the points. I have implemented it in two ways, first with MapBox and the other with Leaflet.
The leaflet version looks great, does not require registering, but from some number of stations, it becomes slow. Already with 3000 points, it takes several seconds to just parse the click, which is unacceptable.
Does anyone have an efficient way of having points clustered on a map and fast callback after clicking on a point?
The bare-bones Leaflet example is described here, which is a bit faster than my actual deployment, but you can still see it getting slow with approx 10,000 points. Dash leaflet get marker location - Stack Overflow