GeoTIFF / georaster-layer-for-leaflet

Display GeoTIFFs and soon other types of raster on your Leaflet Map
https://geotiff.github.io/georaster-layer-for-leaflet-example/
Apache License 2.0
283 stars 57 forks source link

When loading a 1.6g COG TIF or smaller tif, the map scaling may lag #141

Open hemeng0101 opened 3 months ago

hemeng0101 commented 3 months ago

When loading a 1.6g COG TIF, the map scaling may lag, but OpenLayer loads the same file smoothly.. I guess from the browser's task that OpenLayer uses a multi-threaded loading method. Can Leaflet also consider this approach to improve performance.

DanielJDufour commented 3 months ago

Hello @hemeng0101 . Thank you for submitting this! Yes, indeed, the new version of georaster-layer-for-leaflet will move much of the rendering to web workers. You can view the PR with the new version here: https://github.com/GeoTIFF/georaster-layer-for-leaflet/pull/138

hemeng0101 commented 3 months ago

thanks for your answer, I will follow the new version, and wait the property using web workers to improve rendering。