ui.Map.GeometryLayer.setLocked

Sets the locked state of the layer. A locked layer disallows adding, removing, or editing the geometries on the layer from the user interface.

Returns this map layer.

UsageReturns
GeometryLayer.setLocked(locked)ui.Map.GeometryLayer
ArgumentTypeDetails
this: ui.map.geometrylayerui.Map.GeometryLayer

The ui.Map.GeometryLayer instance.

lockedBoolean

Whether the layer is locked.