Plotting 140K points in leafletjs

user4757355 picture user4757355 · May 5, 2016 · Viewed 9.4k times · Source

I'm new to leafletjs. Been working on cesiumjs for a while and we are trying leaflet now. The main reason for the switch is to see if there's a huge performance difference.

In Cesium, I had a collection of primitive points that I plotted. What's the most efficient way of plotting 140K points in leafletjs? Using markers or creating individual little circles?

I am also thinking of using the clustering plugin (http://leafletjs.com/2012/08/20/guest-post-markerclusterer-0-1-released.html), so please share any thoughts on performance.

Answer

ghybs picture ghybs · May 5, 2016

You have 2 common options:

Trying to display your 140k points without Canvas or clustering will crash your browser for sure.