Leaflet / Leaflet.VectorGrid

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

WebWorker canvas renderer #82

Open IvanSanchez opened 7 years ago

IvanSanchez commented 7 years ago

Apparently it's possible to have canvas renderers inside a web worker thread, see https://stackoverflow.com/questions/1864756/web-workers-and-canvas

It would be nice to see if this could be applied to Leaflet's canvas renderers, as it would increase rendering speed of complex vector tiles here.

IvanSanchez commented 7 years ago

Also: https://github.com/casperlamboo/canvas-webworker

desean1625 commented 6 years ago

Even better than that with the new chrome use offscreen canvas object.

https://developers.google.com/web/updates/2018/08/offscreen-canvas

liyuanqiu commented 5 years ago

+1, really need it for heavy render tasks