leaflet-geotiff-2
leaflet-geotiff-2 copied to clipboard
Band option does nothing for Plotty renderer
I have a GeoTIFF file with 12 different bands. I can open it in QGIS and see 12 bands with different raster data (monthly solar data of the location). But when I open it in browser with leaflet-geotiff-2
, the band
option does not have any effect. It always shows the first band, no matter which number I use. I do it in this way:
const rendererOptions = {
displayMin: 0,
displayMax: 150,
//band: 500
};
const renderer = L.LeafletGeotiff.rgb(rendererOptions);
const options = {
renderer: renderer,
band: 500,
bounds: [[lat - 0.000910557, lng - 0.001185149], [lat + 0.000912543, lng + 0.001183351]]
};
return L.leafletGeotiff(url, options).addTo(map);
Tried this option in renderer config too as you can see, no effect. Tried RGB
renderer, and it recognizes rBand
, gBand
, bBand
options and sees different bands correctly. I am now using this renderer, but it feels hacky