Refactoring: add hotkeys to switch backgrounds

This commit is contained in:
Pieter Vander Vennet 2023-04-21 16:47:25 +02:00
parent 3c0a19ebc6
commit ee4b0fd238
8 changed files with 63 additions and 20 deletions

View file

@ -1,3 +1,12 @@
export type EliCategory =
| "photo"
| "map"
| "historicmap"
| "osmbasedmap"
| "historicphoto"
| "qa"
| "elevation"
| "other"
export interface RasterLayerProperties {
/**
* The name of the imagery source
@ -9,16 +18,7 @@ export interface RasterLayerProperties {
readonly id: string
readonly url: string
readonly category?:
| string
| "photo"
| "map"
| "historicmap"
| "osmbasedmap"
| "historicphoto"
| "qa"
| "elevation"
| "other"
readonly category?: string | EliCategory
readonly attribution?: {
readonly url?: string