Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MapView.SetVisibleMapRect

Sets visible map rectangle.

Component Version macOS Windows Linux Server iOS SDK
MapView 9.0 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "MapView.SetVisibleMapRect"; MapView; Rect )   More

Parameters

Parameter Description Example
MapView The map view reference number. $$MapView
Rect The map rectangle.
A JSON with x, y, width and height.

Result

Returns OK or error.

Description

Sets visible map rectangle.
Changes the currently visible portion of the map and optionally animates the change.

Examples

Sets visible rect:

MBS( "MapView.SetVisibleMapRect"; $$MapView; "{ \"x\" : 140455603.74390683, \"height\" : 799234.62509903312, \"y\" : 86194618.191567183, \"width\" : 1501801.5633610785}" )

See also

This function is free to use.

Created 14th January 2019, last changed 15th January 2019


MapView.SetVisible - MapView.SetZoomEnabled