MapView.SetOverlayPoints
------------------------

Sets new 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.SetOverlayPoints"; MapView; Overlay Identifier; JSON ) 

**MBS**( **"MapView.SetOverlayPoints";** /\* Sets new overlay points. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Overlay Identifier**; /\* The identifier for the overlay.e.g. "82001" \*/   
**$JSON**) /\* The JSON array with points.  
Can be given with objects for the coordinates.   
Each entry can contain either longitude &amp; latitude pair, x and y pair or address value.e.g. "\[ { \\"latitude\\" : 50.4, \\"longitude\\" : 7.3 }, { \\"latitude\\" : 50.5, \\"longitude\\" : 7.3 }, { \\"latitude\\" : 50.49, \\"longitude\\" : 7.4 }, { \\"latitude\\" : 50.4, \\"longitude\\" : 7.4 }\]" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Overlay Identifier | The identifier for the overlay. | "82001" |
| JSON | The JSON array with points.   Can be given with objects for the coordinates.    Each entry can contain either longitude &amp; latitude pair, x and y pair or address value. | "\[ { \\"latitude\\" : 50.4, \\"longitude\\" : 7.3 }, { \\"latitude\\" : 50.5, \\"longitude\\" : 7.3 }, { \\"latitude\\" : 50.49, \\"longitude\\" : 7.4 }, { \\"latitude\\" : 50.4, \\"longitude\\" : 7.4 }\]" |

### Result

Returns OK or error.

### Description

Sets new overlay points.  
Only for polygon and poly line overlays.  
### Examples

Change coordiantes for a polygon:

 MBS ( "MapView.SetOverlayPoints"; $$MapView ; 82002; $NewCoordinates )  
### See also

- [MapView.GetOverlayPoints](MapViewGetOverlayPoints.md)
- [MapView.SetOverlayLineWidth](MapViewSetOverlayLineWidth.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.SetOverlayLineWidth](MapViewSetOverlayLineWidth.md) - [MapView.SetOverlayStrokeColor](MapViewSetOverlayStrokeColor.md)

[HTML Version](MapViewSetOverlayPoints.shtml)