MapView.SetAnnotationCoordinate
-------------------------------

Sets the coordinate for the annotation (or overlay).

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

MBS( "MapView.SetAnnotationCoordinate"; MapView; Annotation Identifier; JSON ) 

**MBS**( **"MapView.SetAnnotationCoordinate";** /\* Sets the coordinate for the annotation (or overlay). \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Annotation Identifier**; /\* The identifier for the annotation to remove.e.g. "82001" \*/   
**$JSON**) /\* The JSON to describe the coordinate.  
Can include keys longitude and latitude with values or a key address with address string.e.g. "{ \\"address\\": \\"Restaurant Waldfrieden, Nickenich\\" }" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Annotation Identifier | The identifier for the annotation to remove. | "82001" |
| JSON | The JSON to describe the coordinate.   Can include keys longitude and latitude with values or a key address with address string. | "{ \\"address\\": \\"Restaurant Waldfrieden, Nickenich\\" }" |

### Result

Returns OK or error.

### Description

Sets the coordinate for the annotation (or overlay).  
### Examples

Changes position of Pin:

 Set Variable \[ $json ; Value: "{ \\"address\\": \\"Restaurant Waldfrieden, Nickenich\\" }" \]   
Set Variable \[ $r ; Value: MBS ( "MapView.SetAnnotationCoordinate"; $$MapView ; "82001"; $JSON ) \]  
### See also

- [MapView.GetAnnotationCoordinate](MapViewGetAnnotationCoordinate.md)
- [MapView.SetAnnotationDragImage](MapViewSetAnnotationDragImage.md)

### Release notes

- **Version 9.4**
    - Added [MapView.SetAnnotationCoordinate](http://www.mbsplugins.eu/MapViewSetAnnotationCoordinate.shtml) and [MapView.GetAnnotationCoordinate](http://www.mbsplugins.eu/MapViewGetAnnotationCoordinate.shtml).

### Blog Entries

- [Neue Funktionen des MBS FileMaker Plugin 9.4](https://www.mbsplugins.de/archive/2019-10-05/Neue_Funktionen_des_MBS_FileMa/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.4pr7](https://www.mbsplugins.de/archive/2019-09-12/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 3/2022, Seite 26](https://filemaker-magazin.de/neuigkeit/4187-Appetithappen-FMM_202203)

This function is free to use.

Created 12nd September 2019 , last changed 12nd September 2019

  
[MapView.SelectedAnnotations](MapViewSelectedAnnotations.md) - [MapView.SetAnnotationDragImage](MapViewSetAnnotationDragImage.md)

[HTML Version](MapViewSetAnnotationCoordinate.shtml)