updateLayer() ​
updateLayer(
layer,updates):MapContextLayer
Applies the updates partial to the given layer. The layer will also be adjusted depending on the presence of the id and version fields. Note: any property set to undefined in updates will be removed from the resulting layer.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
layer | MapContextLayer | |
updates | Partial<MapContextLayer> |