Extract nodata values from metadata when possible

This commit is contained in:
Tim Schaub
2021-08-19 10:40:59 -06:00
parent 8954f001fa
commit 42970915ea
6 changed files with 59 additions and 12 deletions

View File

@@ -80,13 +80,11 @@ const map = new Map({
{
// visible red, band 1 in the style expression above
url: 'https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/2020/S2A_36QWD_20200701_0_L2A/B04.tif',
nodata: 0,
max: 10000,
},
{
// near infrared, band 2 in the style expression above
url: 'https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/2020/S2A_36QWD_20200701_0_L2A/B08.tif',
nodata: 0,
max: 10000,
},
],