GeoTIFF / GeoTIFF/georaster-layer-for-leaflet-example
What if I need to display color in a 4band file
- Dominant language
- JavaScript
- Stars
- 98
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
There is a good example for displaying colors in this [link](https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/master/examples/color-scale.html)
But in the example it is using a 1 band image and it is using index 0 of an array
`var pixelValue = pixelValues[0]; // there's just one band in this raster`
But what if my image is 4 bands?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with examples/color-scale.html and the linked color-display example, then inspect how pixelValues is read for the single-band case. Clarify the intended mapping for a four-band raster and define the expected displayed result before changing the example or adding coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100