object.isScrollEnabled

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

Overview

A Boolean that determines whether users can scroll the map by hand. Default is true. Set to false to prevent users from scrolling the map. Note that a map can still be scrolled/panned via the object:setCenter() and object:setRegion() functions, even if this property is false. This is useful if you want map movement to be controlled by the program, not the user.

Example

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