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) asyncParameters
positionMap position to add the control to.
-
addLogoControl(name:AsynchronouslogoURL: linkURL: position: ) Adds the logo control to the map.
Declaration
Swift
@MainActor func addLogoControl(name: String, logoURL: URL, linkURL: URL, position: MTMapCorner) asyncParameters
logoURLURL of the logo image resource.
linkURLURL of the anchor link.
positionMap position to add the control to.