MapView.CoordinateForPoint
--------------------------

Queries coordinate for a point.

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

MBS( "MapView.CoordinateForPoint"; MapView; X; Y ) 

**MBS**( **"MapView.CoordinateForPoint";** /\* Queries coordinate for a point. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$X**; /\* The x coordinate relative to the map view.e.g. 5 \*/   
**$Y**) /\* The y coordinate relative to the map view.e.g. 5 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| X | The x coordinate relative to the map view. | 5 |
| Y | The y coordinate relative to the map view. | 5 |

### Result

Returns JSON or error.

### Description

Queries coordinate for a point.  
Returns JSON, which contains longitude, latitude, x and y numbers.  
### Examples

Query top left coordinate:

 MBS ( "MapView.CoordinateForPoint"; $$MapView ; 0; 0 )  
<small>  
Example result:   
{ "y" : 0 , "latitude" : 50.562339495914216 , "x" : 0 , "longitude" : 6.4818784225510342 } </small>Query bottom right coordinate:

 MBS ( "MapView.CoordinateForPoint"; $$MapView ; MBS ( "[MapView.GetWidth](MapViewGetWidth.md)"; $$MapView ); MBS ( "[MapView.GetHeight](MapViewGetHeight.md)"; $$MapView ) )  
<small>  
Example result:   
{ "y" : 463 , "latitude" : 50.233777453829191 , "x" : 870 , "longitude" : 7.4504055550006285 } </small>### See also

- [MapView.GetHeight](MapViewGetHeight.md)
- [MapView.GetWidth](MapViewGetWidth.md)

### Release notes

- **Version 11.5**
    - Added [MapView.CoordinateForPoint](https://www.mbsplugins.eu/MapViewCoordinateForPoint.shtml) and [MapView.PointForCoordinate](https://www.mbsplugins.eu/MapViewPointForCoordinate.shtml) functions.

### Blog Entries

- [New in version 11.5 of MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-11-30/New_in_version_115_of_MBS_File/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.5 - Über 6600 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2021-11-16/Neues_MBS_FileMaker_Plugin_115/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.5](https://www.mbsplugins.de/archive/2021-11-16/MBS_FileMaker_Plugin_115/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.5pr3](https://www.mbsplugins.de/archive/2021-10-25/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 13th October 2021 , last changed 13th October 2021

  
[MapView.Annotations](MapViewAnnotations.md) - [MapView.CreateWithControl](MapViewCreateWithControl.md)

[HTML Version](MapViewCoordinateForPoint.shtml)