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
300 stars 58 forks source link

updateColors function #106

Open sammertime opened 2 years ago

sammertime commented 2 years ago

Hi,

I'm attempting to implement the updateColors function, but I'm struggling and haven't been able to find any examples of its usage. I'm essentially looking to modify the overlayed georaster based on the values of a range slider. For example, when the range slider is modified, I'd like to modify the overlayed georaster. The updateColors function seems like it would be perfect for that, but again I can't find any examples of the its usage.

Thanks so much, S

DanielJDufour commented 2 years ago

Hi, thanks for your feedback. I should add a proper example to https://github.com/geotiff/georaster-layer-for-leaflet-example, but in the meantime, you can find some examples here that I use for manual testing:

sammertime commented 2 years ago

Thanks Daniel! I'll take a look at those examples and see if I can apply to my use case - all the best!

S

sammertime commented 2 years ago

Got it working : ) .. thanks for the helpful examples! Also, I had one final question regarding the .ovr files here:

https://github.com/GeoTIFF/georaster/issues/69

Just letting you know in case it got lost in the shuffle - appreciate all your help!

S