Skip to content

Commit

Permalink
feat(landing): Add off for the dem/dsm layer dropdown in debug page. B…
Browse files Browse the repository at this point in the history
…M-1019 (#3240)

#### Motivation

It would be helpful to view a DEM/DSM as just the hillshade, can we turn
off the color-ramp and terrain-rgb visualisations with a “layer: off”?

#### Modification

Add a off option after the sourceIds, which make it not as default.

#### Checklist

_If not applicable, provide explanation of why._

- [ ] Tests updated
- [ ] Docs updated
- [ ] Issue linked in Title
  • Loading branch information
Wentao-Kuang authored Apr 21, 2024
1 parent c5340d0 commit 0f81ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/landing/src/components/debug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export class Debug extends Component<{ map: maplibregl.Map }, DebugState> {
label: 'Layer',
onChange: this.selectRasterSource,
value: selectedSource,
options: sourceIds,
options: [...sourceIds, 'off'],
});
}

Expand Down

0 comments on commit 0f81ac3

Please sign in to comment.