Map slow/freezezes when loading large amount (3000) markers

2 posts / 0 new
Last post
jaroslaw.zaczek...
Map slow/freezezes when loading large amount (3000) markers

Hi,

We are trying leaflet API and found a problem with rendering large numebr of markers. Initially map renders correctly, but after changing zoom level it either freezes (Chrome) or is veeery slow (Firefox)

With Chrome, to close tab need to use task manager and kill process.

we tried 2 methods (both in loop):

map.addLayer(marker(...));

and marker[...].addTo(map);

Any way to display large amoutn of markers without freezing the app?

Many Thanks

Jaro

 


MQBrianCoakley
Adding that many to the map
Adding that many to the map will definitely bog it down. Other users have limited he number of markers on the map by displaying them only at zoom levels that make the map more functional, clustering, heatmaps, or using a canvas to display huge amounts of data. I've used all of these and they can all be pretty awesome.