MapView.SetMapType
------------------

Sets the map type.

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

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

**MBS**( **"MapView.SetMapType";** /\* Sets the map type. \*/  
**$MapView**; /\* The map view reference number.e.g. $$MapView \*/   
**$Value**) /\* The new map type.  
Can be Standard, Satellite, Hybrid, SatelliteFlyover, HybridFlyover or MutedStandard.e.g. "Hybrid" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MapView | The map view reference number. | $$MapView |
| Value | The new map type.   Can be Standard, Satellite, Hybrid, SatelliteFlyover, HybridFlyover or MutedStandard. | "Hybrid" |

### Result

Returns OK or error.

### Description

Sets the map type.  
### Examples

Switch to hybrid flyover:

 MBS ( "MapView.SetMapType"; $$MapView ; "HybridFlyover" )  
### See also

- [MapView.GetMapType](MapViewGetMapType.md)

### Example Databases

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

### FileMaker Magazin

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

This function is free to use.

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

  
[MapView.SetFrameWithControl](MapViewSetFrameWithControl.md) - [MapView.SetOverlayFillColor](MapViewSetOverlayFillColor.md)

[HTML Version](MapViewSetMapType.shtml)