DiffOperationsMap
DiffOperationsMap:
object
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.
Type declaration
addLayer
addLayer: [
LayerSpecification,string|null]
addSource
addSource: [
string,SourceSpecification]
removeLayer
removeLayer: [
string]
removeSource
removeSource: [
string]
setBearing
setBearing: [
number]
setCenter
setCenter: [
number[]]
setFilter
setFilter: [
string,unknown]
setGeoJSONSourceData
setGeoJSONSourceData: [
string,unknown]
setGlyphs
setGlyphs: [
string]
setLayerProperty
setLayerProperty: [
string,string,unknown]
setLayerZoomRange
setLayerZoomRange: [
string,number,number]
setLayoutProperty
setLayoutProperty: [
string,string,unknown,string|null]
setLight
setLight: [
LightSpecification]
setPaintProperty
setPaintProperty: [
string,string,unknown,string|null]
setPitch
setPitch: [
number]
setProjection
setProjection: [
ProjectionSpecification]
setSky
setSky: [
SkySpecification]
setSprite
setSprite: [
SpriteSpecification]
setStyle
setStyle: [
StyleSpecification]
setTerrain
setTerrain: [
TerrainSpecification]
setTransition
setTransition: [
TransitionSpecification]
setZoom
setZoom: [
number]