2024-09-02 12:48:15 +02:00
|
|
|
export const eliCategory = [
|
|
|
|
"photo",
|
|
|
|
"map",
|
|
|
|
"historicmap",
|
|
|
|
"osmbasedmap",
|
|
|
|
"historicphoto",
|
|
|
|
"qa",
|
|
|
|
"elevation",
|
|
|
|
"other",
|
|
|
|
] as const
|
2024-08-25 01:43:08 +02:00
|
|
|
export type EliCategory = (typeof eliCategory)[number]
|
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
|
2024-04-13 02:40:21 +02:00
|
|
|
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
|
|
|
|
}
|