Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum markers quantity in the Leaflet library on a standard browser?

I'm using Leaflet on standard conditions, let's say Firefox on a usual PC. What is the maximum markers quantity it can display at the same time?

I don't need an exact number, just to know capabilities, is near the 1000 dots, near 10.000 or can it display 100k without problems?

like image 736
pan1ka Avatar asked Dec 22 '14 05:12

pan1ka


1 Answers

I guess the border is something like 1000 as it's getting hard for browsers to deal with huge amount of smal object instances. For example, if you load hundrets of point objects from a KML it's getting pretty slow at every JS webmap framework.

A better way to deal with that problem is to use server side components to filter the objects. For example stream simplified layers for low zoomlevels and just stream the nessary objects within your current map view via a bbox filter strategy.

like image 169
MaM Avatar answered Oct 20 '22 23:10

MaM