MapView.GetOverlayPoints
------------------------

Queries overlay points.

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

MBS( "MapView.GetOverlayPoints"; MapView; Overlay Identifier ) 

**MBS**( **"MapView.GetOverlayPoints";** /\* Queries overlay points. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Overlay Identifier**) /\* The identifier for the overlay.e.g. "82001" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Overlay Identifier | The identifier for the overlay. | "82001" |

### Result

Returns JSON or error.

### Description

Queries overlay points.  
Only for polygon and poly line overlays.  
Returns JSON with points (x/y) and coordinates (longitude/latitude).  
### Examples

Queries points for an overlay:

 MBS ( "MapView.GetOverlayPoints"; $$MapView ; 82002 )  
<small>  
Example result:   
{ "points" : \[ { "y" : 90572524.642136484 , "latitude" : 50.399999999999984 , "x" : 139661002.52444446 , "longitude" : 7.3000000000000114 }, { "y" : 90455421.722824365 , "latitude" : 50.499999999999993 , "x" : 139661002.52444446 , "longitude" : 7.3000000000000114 }, { "y" : 90455421.722824365 , "latitude" : 50.499999999999993 , "x" : 139735567.92888889 , "longitude" : 7.4000000000000057 }, { "y" : 90572524.642136484 , "latitude" : 50.399999999999984 , "x" : 139735567.92888889 , "longitude" : 7.4000000000000057 } \], "pointCount" : 4 } </small>### See also

- [MapView.GetOverlayLineWidth](MapViewGetOverlayLineWidth.md)
- [MapView.SetOverlayPoints](MapViewSetOverlayPoints.md)

### Release notes

- **Version 9.5**
    - Added [MapView.GetAnnotationImage](http://www.mbsplugins.eu/MapViewGetAnnotationImage.shtml), [MapView.GetOverlayPoints](http://www.mbsplugins.eu/MapViewGetOverlayPoints.shtml), [MapView.SetAnnotationImage](http://www.mbsplugins.eu/MapViewSetAnnotationImage.shtml) and [MapView.SetOverlayPoints](http://www.mbsplugins.eu/MapViewSetOverlayPoints.shtml) functions.

### Example Databases

- [Mac and iOS/MapKit/MapView Click Polygons](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/MapKit/MapView%20Click%20Polygons.shtml#12ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 9.5pr1](https://www.mbsplugins.de/archive/2019-10-02/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 20th September 2019 , last changed 20th September 2019

  
[MapView.GetOverlayLineWidth](MapViewGetOverlayLineWidth.md) - [MapView.GetOverlayStrokeColor](MapViewGetOverlayStrokeColor.md)

[HTML Version](MapViewGetOverlayPoints.shtml)