MapView.GetRegion
-----------------

Queries current region visible.

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

MBS( "MapView.GetRegion"; MapView ) 

**MBS**( **"MapView.GetRegion";** /\* Queries current region visible. \*/  
**$MapView**) /\* The map view reference number.e.g. $$MapView \*/ 

### Parameters

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

### Result

Returns JSON or error.

### Description

Queries current region visible.  
### Examples

Query region:

 MBS ( "MapView.GetRegion"; $$MapView )  
<small>  
Example result:   
{ "longitude" : 9.3726796999999955 , "longitudeDelta" : 2.0140728459134323 , "latitude" : 53.679886299999907 , "latitudeDelta" : 0.63485953767546732 } </small>### See also

- [MapView.GetHeight](MapViewGetHeight.md)
- [MapView.GetWindow](MapViewGetWindow.md)
- [MapView.SetRegion](MapViewSetRegion.md)

This function is free to use.

Created 14th January 2019 , last changed 9th November 2021

  
[MapView.GetPitchEnabled](MapViewGetPitchEnabled.md) - [MapView.GetRegionLatitude](MapViewGetRegionLatitude.md)

[HTML Version](MapViewGetRegion.shtml)