Repository navigation
Commit d6b395d
fix(docs): show the no-data part of Sentinel-2 previews as transparent
STAC Browser draws an item's `preview` COG, the asset with the
`overview` role. Earth Search's preview declares no no-data value, so the
empty part of a partially covered tile came out black (97% of it on
S2B_T39QWD_20250413T071904_L2A).
- Notebook 02 marks 0 as the preview's no-data value before loading the
items. ol-stac passes it to OpenLayers, which draws those pixels
transparent.
- STAC Browser gets SB_displayOverviewsForChildren=true in the chart and
in both compose files. Collection and search pages, such as the one
notebook 02 embeds, then draw the preview COG instead of the JPEG
thumbnail, which can't be transparent.
Verified against stac-browser 5.1.0 in Chrome and Firefox: the black
share of the no-data area dropped from 0.97 to 0. The field survives
pypgstac upsert, stac-fastapi and stac-auth-proxy unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 5fc7fa5 commit d6b395d
4 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
0 commit comments