Leaflet.VectorGrid icon indicating copy to clipboard operation
Leaflet.VectorGrid copied to clipboard

High CPU usage on Vector Tile Layers

Open DanielShinken opened this issue 4 years ago • 1 comments

Hi there, I'm using vector grid with leaflet 1.0, thing is when the layer start to draw vector tile serve from geoserver or any other provider, CPU usage goes way up to 100% on chrome, it even freezes, I'm trying to draw near to 37k points with nothing more than the default options on the layer, I also include rendererFactory: L.canvas.tile and interactive:true, I'm using the bundle package, any idea why this could by happening, thanks in advance

DanielShinken avatar Mar 03 '20 20:03 DanielShinken

37k is too much for raw canvas, I would look into something with webgl. I have used pixijs and mapbox gl js with good result in the past.

kunKun-tx avatar Apr 08 '21 06:04 kunKun-tx