GeoTIFF/georaster-layer-for-leaflet

Hidden caching behaviour

staffordsmith83 opened this issue · 1 comments

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):

  • OS: MacOS Catalina
  • Browser Chrome Version 106.0.5249.119 (Official Build) (x86_64)
  • georaster-layer-for-leaflet@3.10.0

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Thankyou for developing these awesome tools!

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