The value you need to pass to LayersController.updateLayer
id:
string
The id of the layer to update.
optionalshownInLegend:boolean
Changes whether the layer is shown in the legend.
optionallegendDisplay:"default"|"nameOnly"
Changes the layer's legend display mode.
See for more details.
optionalname:string
Changes the name of the layer.
optionalcaption:string
Changes the caption of the layer.
optionaldescription:string
Changes the description of the layer.
optionalbounds: [number,number,number,number]
Changes the bounds of the layer.
optionalstyle:object
The style of the layer.
optionalsource: | |
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.