For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias DiffOperationsMap
type DiffOperationsMap = {
addLayer: [LayerSpecification, string | undefined];
addSource: [string, SourceSpecification];
removeLayer: [string];
removeSource: [string];
setBearing: [number];
setCenter: [number[]];
setCenterAltitude: [number];
setFilter: [string, FilterSpecification];
setFontFaces: [FontFacesSpecification];
setGeoJSONSourceData: [string, GeoJSONSourceSpecification["data"]];
setGlobalState: [StateSpecification];
setGlyphs: [string];
setLayerProperty: [string, string, unknown];
setLayerZoomRange: [string, number, number];
setLayoutProperty: [
string,
keyof AllLayoutProperties,
AllLayoutProperties[keyof AllLayoutProperties],
];
setLight: [LightSpecification];
setPaintProperty: [
string,
keyof AllPaintProperties,
AllPaintProperties[keyof AllPaintProperties],
];
setPitch: [number];
setProjection: [ProjectionSpecification];
setRoll: [number];
setSky: [SkySpecification];
setSprite: [SpriteSpecification];
setStyle: [StyleSpecification];
setTerrain: [TerrainSpecification];
setTransition: [TransitionSpecification];
setZoom: [number];
}
addLayer: [LayerSpecification, string | undefined];
addSource: [string, SourceSpecification];
removeLayer: [string];
removeSource: [string];
setBearing: [number];
setCenter: [number[]];
setCenterAltitude: [number];
setFilter: [string, FilterSpecification];
setFontFaces: [FontFacesSpecification];
setGeoJSONSourceData: [string, GeoJSONSourceSpecification["data"]];
setGlobalState: [StateSpecification];
setGlyphs: [string];
setLayerProperty: [string, string, unknown];
setLayerZoomRange: [string, number, number];
setLayoutProperty: [
string,
keyof AllLayoutProperties,
AllLayoutProperties[keyof AllLayoutProperties],
];
setLight: [LightSpecification];
setPaintProperty: [
string,
keyof AllPaintProperties,
AllPaintProperties[keyof AllPaintProperties],
];
setPitch: [number];
setProjection: [ProjectionSpecification];
setRoll: [number];
setSky: [SkySpecification];
setSprite: [SpriteSpecification];
setStyle: [StyleSpecification];
setTerrain: [TerrainSpecification];
setTransition: [TransitionSpecification];
setZoom: [number];
}
Index
Properties
addLayer
addSource
removeLayer
removeSource
setBearing
setCenter
setCenterAltitude
setFilter
setFontFaces
setGeoJSONSourceData
setGlobalState
setGlyphs
setLayerProperty
setLayerZoomRange
setLayoutProperty
setLight
setPaintProperty
setPitch
setProjection
setRoll
setSky
setSprite
setStyle
setTerrain
setTransition
setZoom
Properties
addLayer
addSource
removeLayer
removeLayer: [string]
removeSource
removeSource: [string]
setBearing
setBearing: [number]
setCenter
setCenter: [number[]]
setCenterAltitude
setCenterAltitude: [number]
setFilter
setFontFaces
setGeoJSONSourceData
setGlobalState
setGlyphs
setGlyphs: [string]
setLayerProperty
setLayerProperty: [string, string, unknown]
setLayerZoomRange
setLayerZoomRange: [string, number, number]
setLayoutProperty
setLayoutProperty: [
string,
keyof AllLayoutProperties,
AllLayoutProperties[keyof AllLayoutProperties],
]
string,
keyof AllLayoutProperties,
AllLayoutProperties[keyof AllLayoutProperties],
]
setLight
setPaintProperty
setPaintProperty: [
string,
keyof AllPaintProperties,
AllPaintProperties[keyof AllPaintProperties],
]
string,
keyof AllPaintProperties,
AllPaintProperties[keyof AllPaintProperties],
]
setPitch
setPitch: [number]
setProjection
setRoll
setRoll: [number]
setSky
setSprite
setStyle
setTerrain
setTransition
setZoom
setZoom: [number]
Operations that can be performed by the diff. Below are the operations and their arguments, the arguments should be aligned with the style methods in maplibre-gl-js.