MapComplete/src/Models/RasterLayerProperties.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
912 B
TypeScript
Raw Normal View History

export const eliCategory = ["photo"
, "map"
, "historicmap"
, "osmbasedmap"
, "historicphoto"
, "qa"
, "elevation"
, "other"] as const
export type EliCategory = (typeof eliCategory)[number]
/**
* This class has grown beyond the point of only containing Raster Layers
*/
export interface RasterLayerProperties {
/**
* The name of the imagery source
*/
readonly name: string | Record<string, string>
readonly isOverlay?: boolean
readonly id: string
readonly url: string
readonly category?: string | EliCategory
readonly type?: "vector" | "raster" | string
2024-04-13 02:40:21 +02:00
readonly style?: string
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
}