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

Scale multi-band pixel values in getColor #90

Open DanielJDufour opened 2 years ago

DanielJDufour commented 2 years ago

If the raster is 2 - 4 bands, we should still scale the bands like we do for 1 band https://github.com/GeoTIFF/georaster-layer-for-leaflet/blob/master/src/georaster-layer-for-leaflet.ts#L788