stac-utils / stac-layer

Visualize a STAC Item or Collection on a Leaflet Map
Creative Commons Zero v1.0 Universal
47 stars 11 forks source link

Simpler API for one-band use-cases #57

Closed m-mohr closed 1 year ago

m-mohr commented 1 year ago

I'd suggest making the one-band use case a bit simpler by allowing 1 and 2 elements for the bands option, too.

| `bands`                      | array of numbers | undefined | an array mapping the bands to the output bands. must be of length 1, 2, 3 or 4. |

_Originally posted by @m-mohr in https://github.com/stac-utils/stac-layer/pull/50#discussion_r1121370322_

m-mohr commented 1 year ago

Implemented in the stac-js branch