MapView.SetOverlayFillColor
---------------------------

Sets fill color for an overlay.

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

MBS( "MapView.SetOverlayFillColor"; MapView; Overlay Identifier; Color ) 

**MBS**( **"MapView.SetOverlayFillColor";** /\* Sets fill color for an overlay. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Overlay Identifier**; /\* The identifier for the overlay to use.e.g. "82001" \*/   
**$Color**) /\* A color value.   
This can be a common color name or color in hex notation: # followed by 2 digits for red, green, blue and optional alpha, e.g. #FF0000 for full red.e.g. "#FF0000" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Overlay Identifier | The identifier for the overlay to use. | "82001" |
| Color | A color value.    This can be a common color name or color in hex notation: # followed by 2 digits for red, green, blue and optional alpha, e.g. #FF0000 for full red. | "#FF0000" |

### Result

Returns OK or error.

### Description

Sets fill color for an overlay.  
### Examples

Change color to red:

 MBS ( "MapView.SetOverlayFillColor"; $$MapView ; "82001"; "#FF0000" )  
### See also

- [MapView.GetOverlayFillColor](MapViewGetOverlayFillColor.md)
- [MapView.GetOverlayStrokeColor](MapViewGetOverlayStrokeColor.md)
- [MapView.SetOverlayLineWidth](MapViewSetOverlayLineWidth.md)
- [MapView.SetOverlayStrokeColor](MapViewSetOverlayStrokeColor.md)

### Release notes

- **Version 9.5**
    - Added [MapView.GetOverlayFillColor](http://www.mbsplugins.eu/MapViewGetOverlayFillColor.shtml), [MapView.GetOverlayLineWidth](http://www.mbsplugins.eu/MapViewGetOverlayLineWidth.shtml), [MapView.GetOverlayStrokeColor](http://www.mbsplugins.eu/MapViewGetOverlayStrokeColor.shtml), [MapView.SetOverlayFillColor](http://www.mbsplugins.eu/MapViewSetOverlayFillColor.shtml), [MapView.SetOverlayLineWidth](http://www.mbsplugins.eu/MapViewSetOverlayLineWidth.shtml) and [MapView.SetOverlayStrokeColor](http://www.mbsplugins.eu/MapViewSetOverlayStrokeColor.shtml).

### Example Databases

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

### Blog Entries

- [New functions of the MBS Plugin Version 9.5](https://www.mbsplugins.de/archive/2019-11-21/New_functions_of_the_MBS_Plugi/monkeybreadsoftware_blog_filemaker)
- [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 19th September 2019 , last changed 19th September 2019

  
[MapView.SetMapType](MapViewSetMapType.md) - [MapView.SetOverlayLineWidth](MapViewSetOverlayLineWidth.md)

[HTML Version](MapViewSetOverlayFillColor.shtml)