MapView.GetVisibleMapRect
-------------------------

Queries area currently displayed by the map view.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MapView](component_MapView.md) | [9.0](newinversion90.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "MapView.GetVisibleMapRect"; MapView ) 

**MBS**( **"MapView.GetVisibleMapRect";** /\* Queries area currently displayed by the map view. \*/  
**$MapView**) /\* The map view reference number.e.g. $$MapView \*/ 

### 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 )  
<small>  
Example result:   
{ "x" : 140455603.74390683 , "height" : 799234.62509903312 , "y" : 86194618.191567183 , "width" : 1501801.5633610785 } </small>### See also

- [MapView.GetVisible](MapViewGetVisible.md)
- [MapView.SetVisibleMapRect](MapViewSetVisibleMapRect.md)

This function is free to use.

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

  
[MapView.GetVisible](MapViewGetVisible.md) - [MapView.GetWidth](MapViewGetWidth.md)

[HTML Version](MapViewGetVisibleMapRect.shtml)