ui.Map.GeometryLayer.setLocked

Stay organized with collections Save and categorize content based on your preferences.

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.GeometryLayerThe ui.Map.GeometryLayer instance.
lockedBooleanWhether the layer is locked.