ui.Map.setLocked

Sets the lock state on the map. A locked map may not zoom or pan.

UsageReturns
Map.setLocked(locked)
ArgumentTypeDetails
this: ui.mapui.Map

The ui.Map instance.

lockedBoolean

Whether the map should be locked or not.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!