2023-04-21 16:47:25 +02:00
|
|
|
export type EliCategory =
|
|
|
|
| "photo"
|
|
|
|
| "map"
|
|
|
|
| "historicmap"
|
|
|
|
| "osmbasedmap"
|
|
|
|
| "historicphoto"
|
|
|
|
| "qa"
|
|
|
|
| "elevation"
|
|
|
|
| "other"
|
2024-03-21 12:16:00 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This class has grown beyond the point of only containing Raster Layers
|
|
|
|
*/
|
2023-04-21 16:19:36 +02:00
|
|
|
export interface RasterLayerProperties {
|
|
|
|
/**
|
|
|
|
* The name of the imagery source
|
|
|
|
*/
|
|
|
|
readonly name: string | Record<string, string>
|
|
|
|
|
|
|
|
readonly isOverlay?: boolean
|
|
|
|
|
|
|
|
readonly id: string
|
|
|
|
|
|
|
|
readonly url: string
|
2023-04-21 16:47:25 +02:00
|
|
|
readonly category?: string | EliCategory
|
2024-03-21 12:16:00 +01:00
|
|
|
readonly type?: "vector" | "raster" | string
|
|
|
|
readonly style?: string,
|
2023-04-21 16:19:36 +02:00
|
|
|
|
|
|
|
readonly attribution?: {
|
|
|
|
readonly url?: string
|
|
|
|
readonly text?: string
|
|
|
|
readonly html?: string
|
|
|
|
readonly required?: boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
readonly min_zoom?: number
|
|
|
|
readonly max_zoom?: number
|
|
|
|
|
|
|
|
readonly best?: boolean
|
|
|
|
}
|