24 lines
420 B
TypeScript
24 lines
420 B
TypeScript
export type BaseStylesFile = {
|
|
version: number
|
|
sources: {
|
|
[key: string]: MapSource
|
|
}
|
|
layers: MapLayer[]
|
|
sprite: string
|
|
glyphs: string
|
|
}
|
|
|
|
export type MapSource = {
|
|
type: 'vector' | 'raster' | 'raster-dem' | 'geojson' | 'image' | 'video'
|
|
attribution?: string
|
|
url: string
|
|
}
|
|
|
|
export type MapLayer = {
|
|
'id': string
|
|
'type': string
|
|
'source'?: string
|
|
'source-layer'?: string
|
|
[key: string]: any
|
|
}
|