Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets zoom level.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MapView | 9.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
MapView | The map view reference number. | $$MapView | |
ZoomLevel | The new zoom level. Range 1 to 20. |
5 | |
Animated | Whether to animate. Pass 1 to animate or 0 to not animate. Default is animated. |
1 | Optional |
Returns OK or error.
Zoom one level in:
MBS( "MapView.SetZoomLevel"; $$MapView; MBS( "MapView.GetZoomLevel"; $$MapView ) + 1; 1)
Zoom out:
MBS( "MapView.SetZoomLevel"; $$MapView; 1; 1)
This function is free to use.
Created 20th September 2019, last changed 20th September 2019