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

MapView.GetVisibleMapRect

Queries area currently displayed by the map view.

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

Parameters

Parameter Description Example
MapView The map view reference number. $$MapView

Result

Returns map rect as JSON or error.

Description

Queries area currently displayed by the map view.
This property represents the same basic information as the region property but specified as a map rectangle instead of a region.

Examples

Queries map rect:

MBS( "MapView.GetVisibleMapRect"; $$MapView )

Example result:
{ "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.GetVisible - MapView.GetWidth