UpdateLayerParams
Last updated
Was this helpful?
Last updated
Was this helpful?
The value you need to pass to
id:
string
The id of the layer to update.
optional
shownInLegend:boolean
Changes whether the layer is shown in the legend.
optional
name:string
Changes the name of the layer.
optional
caption:string
Changes the caption of the layer.
optional
description:string
Changes the description of the layer.
optional
bounds: [number
,number
,number
,number
]
Changes the bounds of the layer.
optional
style:object
The style of the layer.
Updates the source of the layer.
Only layers that have a GeoJSON source can have their source udpated.
For URL sources, if you pass the same URL again it will cause the data to be refreshed.
optional
source: | |