MapView
@MainActor
public class MapView : MLNMapView
-
Declaration
Swift
@MainActor public private(set) var isLoaded: Bool { get } -
Declaration
Swift
@MainActor public weak var mapDelegate: MapViewDelegate? -
Declaration
Swift
@MainActor public var pointOfInterestManager: MapPointOfInterestManaging! { get } -
Declaration
Swift
@MainActor public var navigationManager: MapNavigationManaging! { get } -
The zoom level that will be applied when changing
userTrackingModeto.follow,.followWithHeading,.followWithCourseDefault value is
18Declaration
Swift
@MainActor public var zoomWhileFollowing: Double -
Declaration
Swift
@MainActor public private(set) var buildingManager: BuildingManager! { get } -
Declaration
Swift
@MainActor public private(set) var itineraryManager: ItineraryManager! { get } -
Declaration
Swift
@MainActor public private(set) var userLocationManager: UserLocationManager! { get } -
Declaration
Swift
@MainActor public var mapData: MapData? { get set } -
Declaration
Swift
@MainActor public var cameraBounds: MLNCoordinateBounds? { get set } -
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
Show the attribution action sheet.
This action is performed when the user taps on the attribution button provided by default via the
attributionButtonproperty. If you implement a custom attribution button, you should add this action to the button.Declaration
Swift
@MainActor override func showAttribution(_ sender: Any) -
Changes the center coordinate and zoom level of the map with some additional padding on each side and animates the change. For animated changes, wait until the map view has finished loading before calling this method.
Note
The behavior of this method is undefined if called in response to
UIApplicationWillTerminateNotification.Declaration
Swift
@MainActor func setCenter(_ coordinate: CLLocationCoordinate2D, zoomLevel: Double, edgePadding: UIEdgeInsets, direction: CLLocationDirection? = nil, animated: Bool = true)Parameters
coordinateThe new center coordinate for the map.
zoomLevelThe new zoom level for the map.
edgePaddingThe minimum padding (in screen points) that will be visible around the given coordinate.
directionThe new direction for the map, measured in degrees relative to true north. A negative value as well as
nilleaves the map’s direction unchanged. Default isnilanimatedSpecify
trueif you want the map view to animate scrolling and zooming to the new location orfalseif you want the map to display the new location immediately. Default istrue
View on GitHub