Closed Deca closed 4 years ago
Hi, @Deca . Welcome to GeoTIFFs! Would you happen to be able to share the GeoTIFF file you are trying to render? That will be the easiest way for me to debug this for you.
If not could you take a screenshot of the dev console (what is logged when you run console.log("georaster:", georaster);
and/or run gdalinfo example.tif
with example.tif replaced by your filename.
Thanks!
If you'd like to send me the geotiff, you can send it to daniel.j.dufour@gmail.com
Hi Daniel and thanks for the reply, I add as archive the tif I'm using and the georaster obj I got from console tif_log.zip
What was the solution? Or do we need to use "pixelValuesToColorFn" and manually set color? Can it not automatically display the colors?
Unresolved from my side, I settled for using simple png but I still would like switch to geotiff Let's see if Daniel have some news
This should be fixed now. Please upgrade georaster and georaster-layer-for-leaflet to the newest version. You can see it in action here: https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/load-file.html if you load a file with a ColorTable. Let me know if it works! Thank you for your patience.
Excellent work! It works flawless. Thank you very much @DanielJDufour
Glad to hear it! I'll close this issue for now. Please post any future issues again. Thank you both!
Not sure if is a bug, this is my first time I work with geotiff I'm trying your example with a colored tif I should work with but It appear on the map in black and white...is there something I'm missing?