×

View Map

iOS 14 +

Notes

Display a customisable map view.

Syntax

viewMap(location: <#Unknown Parameter#>, mapTitle: <#String (Allows Variables)#>, showPin: <#Boolean#>, pinLabel: <#String (Allows Variables)#>, mapZoom: <#Double#>, showBuildings: <#Boolean#>, showCompass: <#Boolean#>, showZoomControls: <#Boolean#>, showScale: <#Boolean#>, showTraffic: <#Boolean#>, isInteractive: <#Boolean#>, isScrollable: <#Boolean#>, isZoomable: <#Boolean#>)

Example

viewMap(location: Placemark(addressDictionary: AddressDictionary(City: "", Country: "", CountryCode: "", FormattedAddressLines: ["", ""], Name: "", State: "", Street: ""), SubAdministrativeArea: "", SubThoroughfare: "", Thoroughfare: "", ZIP: ""), location: Location(altitude: 0, course: 1, horizontalAccuracy: 0.0, latitude: 0, longitude: 0, speed: 1, timestamp: 2022-02-22t22:22:22Z, verticalAccuracy: 1), region: Region(center: Center(latitude: 0.0, longitude: 0.0), identifier: "", radius: 100.0)), mapTitle: ""My Map"", showPin: true, pinLabel: ""My Pin"", mapZoom: 0.3, showBuildings: true, showCompass: true, showZoomControls: true, showScale: true, showTraffic: true, isInteractive: true, isScrollable: true, isZoomable: true)