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

Hidden caching behaviour #110

Closed staffordsmith83 closed 1 year ago

staffordsmith83 commented 1 year ago

Describe the bug I have defined a new pixelValuesToColorFn but my map is still rendering the cog with the old colour scheme. Is there some caching happening that is hidden?

In the gif below, see when I select a new height on the left slider, the raster should re-render with different colours. It initially renders with the old colour scheme (basic blue and yellow), and then updates to the new one (more graduated blues and oranges).

To Reproduce See attached gif. I am using leaflet, NOT react-leaflet, Google Chrome browser. I have disabled cache in dev tools, and cleared the cache.

Expected behavior I would expect the raster to render with the new pixelValuesToColorFn.

Screenshots georaster-caching2

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Thankyou for developing these awesome tools!

staffordsmith83 commented 1 year ago

Sorry this is my error, thanks for a great library!