object.isZoomEnabled

Type Boolean
Object Map
Library native.*
Revision Release 2024.3703
Keywords isZoomEnabled

Overview

A boolean that determines whether users may use pinch/zoom gestures to zoom the map. Default is true. Set to false to prevent users from zooming the map. Note that a map can still be zoomed via the object:setRegion() function, even when this property is set to false.

Example

-- Do not allow the user to scroll and zoom the map.
myMap.isScrollEnabled = false
myMap.isZoomEnabled = false