Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
593 stars 192 forks source link

High CPU usage on Vector Tile Layers #232

Open DanielShinken opened 4 years ago

DanielShinken commented 4 years ago

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

kunKun-tx commented 3 years ago

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.