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.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem