MTControllable
@MainActor
public protocol MTControllable
Defines methods for adding the map controls.
-
addMapTilerLogoControl(position:
Asynchronous) Adds the MapTiler logo control to the map.
Declaration
Swift
@MainActor func addMapTilerLogoControl(position: MTMapCorner) async
Parameters
position
Map position to add the control to.
-
addLogoControl(logoURL:
AsynchronouslinkURL: position: ) Adds the logo control to the map.
Declaration
Swift
@MainActor func addLogoControl(logoURL: URL, linkURL: URL, position: MTMapCorner) async
Parameters
logoURL
URL of the logo image resource.
linkURL
URL of the anchor link.
position
Map position to add the control to.