MapView.SetShowsTraffic
-----------------------

Enables or disables traffic.

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

MBS( "MapView.SetShowsTraffic"; MapView; Value ) 

**MBS**( **"MapView.SetShowsTraffic";** /\* Enables or disables traffic. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Value**) /\* The new setting.  
Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Value | The new setting.   Pass 1 to enable or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Enables or disables traffic.  
A Boolean value indicating whether the map displays traffic information.  
### See also

- [MapView.GetShowsTraffic](MapViewGetShowsTraffic.md)
- [MapView.SetShowsScale](MapViewSetShowsScale.md)

### Blog Entries

- [MBS FileMaker Advent calendar - Door 11 - Know Your Way](https://www.mbsplugins.de/archive/2024-12-11/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 20 - MapView](https://www.mbsplugins.de/archive/2023-12-20/MBS_Plugin_Advent_calendar_20_/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2022, Seite 27](https://filemaker-magazin.de/neuigkeit/4172-Appetithappen-FMM_202201)

Created 14th January 2019 , last changed 15th January 2019

  
[MapView.SetShowsScale](MapViewSetShowsScale.md) - [MapView.SetShowsUserLocation](MapViewSetShowsUserLocation.md)

[HTML Version](MapViewSetShowsTraffic.shtml)