MapView.SetColor
----------------

Sets color of a Pin.

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

MBS( "MapView.SetColor"; MapView; Annotation Identifier; Color ) 

**MBS**( **"MapView.SetColor";** /\* Sets color of a Pin. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Annotation Identifier**; /\* The identifier for the annotation.e.g. "82001" \*/   
**$Color**) /\* The color to use.   
Can be a color name or hex notation like in HTML.e.g. "#FF0000" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Annotation Identifier | The identifier for the annotation. | "82001" |
| Color | The color to use.    Can be a color name or hex notation like in HTML. | "#FF0000" |

### Result

Returns OK or error.

### Description

Sets color of a Pin.  
### Examples

Changes color to blue:

 MBS ( "MapView.SetColor"; "78001"; "82001"; "#0000FF" )  
### 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)

This function is free to use.

Created 7th September 2019 , last changed 9th September 2019

  
[MapView.SetAutoResizingMask](MapViewSetAutoResizingMask.md) - [MapView.SetCoordinate](MapViewSetCoordinate.md)

[HTML Version](MapViewSetColor.shtml)