georaster-layer-for-leaflet icon indicating copy to clipboard operation
georaster-layer-for-leaflet copied to clipboard

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

Open hemeng0101 opened this issue 1 year ago • 2 comments

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.

hemeng0101 avatar Mar 15 '24 06:03 hemeng0101

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

DanielJDufour avatar Mar 15 '24 12:03 DanielJDufour

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

hemeng0101 avatar Mar 18 '24 07:03 hemeng0101