MLNMapView class

An interactive, customizable map view with an interface similar to the one provided by Apple’s MapKit.

Using MLNMapView, you can embed the map inside a view, allow users to manipulate it with standard gestures, animate the map between different viewpoints, and present information in the form of annotations and overlays.

The map view loads scalable vector tiles that conform to the Mapbox Vector Tile Specification. It styles them with a style that conforms to the MapLibre Style Spec. Such styles can be designed with Maputnik.

Because MLNMapView loads asynchronously, several delegate methods are available for receiving map-related updates. These methods can be used to ensure that certain operations have completed before taking any additional actions. Information on these methods is located in the MLNMapViewDelegate protocol documentation.

Adding your own gesture recognizer to MLNMapView will block the corresponding gesture recognizer built into MLNMapView. To avoid conflicts, define which gesture takes precedence. For example, you can create your own UITapGestureRecognizer that will be invoked only if the default MLNMapView tap gesture fails:

let mapTapGestureRecognizer = UITapGestureRecognizer(target: self, action:
#selector(myCustomFunction)) for recognizer in mapView.gestureRecognizers! where recognizer is
UITapGestureRecognizer { mapTapGestureRecognizer.require(toFail: recognizer)
}
mapView.addGestureRecognizer(mapTapGestureRecognizer)

Note: You are responsible for getting permission to use the map data and for ensuring that your use adheres to the relevant terms of use.

Inheritance
Implemented types
Available extensions

Constructors

MLNMapView()
Returns a new instance of MLNMapView constructed with the default new method.
factory
MLNMapView.castFrom(ObjCObjectBase other)
Constructs a MLNMapView that points to the same underlying object as other.
MLNMapView.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a MLNMapView that wraps the given raw object pointer.

Properties

accessibilityIdentifier ↔ NSString?

Available on UIView, provided by the UIAccessibility$1 extension

accessibilityIdentifier
getter/setter pair
accessibilityIgnoresInvertColors bool

Available on UIView, provided by the UIAccessibilityInvertColors extension

accessibilityIgnoresInvertColors
getter/setter pair
activityItemsConfiguration UIActivityItemsConfigurationReading?

Available on UIResponder, provided by the UIActivityItemsConfiguration extension

activityItemsConfiguration
no setter
activityItemsConfiguration$1 UIActivityItemsConfigurationReading?

Available on UIResponder, provided by the UIActivityItemsConfiguration extension

setActivityItemsConfiguration:
no getter
alignmentRectInsets UIEdgeInsets

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

alignmentRectInsets
no setter
alpha double

Available on UIView, provided by the UIViewRendering extension

alpha
getter/setter pair
anchorPoint ↔ CGPoint

Available on UIView, provided by the UIViewGeometry extension

anchorPoint
getter/setter pair
anchorRotateOrZoomGesturesToCenterCoordinate bool
A Boolean value that determines whether gestures are anchored to the center coordinate of the map while rotating or zooming. Default value is set to NO.
getter/setter pair
annotations → NSArray?
The complete list of annotations associated with the receiver. (read-only)
no setter
appliedContentSizeCategoryLimitsDescription → NSString

Available on UIView, provided by the UIContentSizeCategoryLimit extension

appliedContentSizeCategoryLimitsDescription
no setter
attributionButton UIButton
A view showing legally required copyright notices, positioned at the bottom-right of the map view.
no setter
attributionButtonMargins ↔ CGPoint
A CGPoint indicating the position offset of the attribution.
getter/setter pair
attributionButtonPosition MLNOrnamentPosition
The position of the attribution button. The default value is MLNOrnamentPosition/MLNOrnamentPositionBottomRight.
getter/setter pair
automaticallyAdjustsContentInset bool
A boolean value that indicates if whether the map view should automatically adjust its content insets.
getter/setter pair
autoresizesSubviews bool

Available on UIView, provided by the UIViewGeometry extension

autoresizesSubviews
getter/setter pair
autoresizingMask UIViewAutoresizing

Available on UIView, provided by the UIViewGeometry extension

autoresizingMask
getter/setter pair
backgroundColor UIColor?

Available on UIView, provided by the UIViewRendering extension

backgroundColor
getter/setter pair
bottomAnchor NSLayoutYAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

bottomAnchor
no setter
bounds → CGRect
bounds
no setterinherited
bounds ↔ CGRect

Available on UIView, provided by the UIViewGeometry extension

bounds
getter/setter pair
camera MLNMapCamera
A camera representing the current viewpoint of the map.
getter/setter pair
cameraEdgeInsets UIEdgeInsets
The current edge insets of the current map view’s camera.
no setter
canBecomeFirstResponder bool
canBecomeFirstResponder
no setterinherited
canBecomeFocused bool
canBecomeFocused
no setterinherited
canResignFirstResponder bool
canResignFirstResponder
no setterinherited
center ↔ CGPoint
center
getter/setter pairinherited
center ↔ CGPoint

Available on UIView, provided by the UIViewGeometry extension

center
getter/setter pair
centerCoordinate CLLocationCoordinate2D
The geographic coordinate at the center of the map view.
getter/setter pair
centerXAnchor NSLayoutXAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

centerXAnchor
no setter
centerYAnchor NSLayoutYAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

centerYAnchor
no setter
clearsContextBeforeDrawing bool

Available on UIView, provided by the UIViewRendering extension

clearsContextBeforeDrawing
getter/setter pair
clipsToBounds bool

Available on UIView, provided by the UIViewRendering extension

clipsToBounds
getter/setter pair
collisionBoundingPath UIBezierPath
collisionBoundingPath
no setterinherited
collisionBoundsType UIDynamicItemCollisionBoundsType
collisionBoundsType
no setterinherited
compassView MLNCompassButton
A control indicating the map’s direction and allowing the user to manipulate the direction, positioned in the upper-right corner.
no setter
compassViewMargins ↔ CGPoint
A CGPoint indicating the position offset of the compass.
getter/setter pair
compassViewPosition MLNOrnamentPosition
The position of the compass view. The default value is MLNOrnamentPosition/MLNOrnamentPositionTopRight.
getter/setter pair
constraints → NSArray

Available on UIView, provided by the UIConstraintBasedLayoutInstallingConstraints extension

constraints
no setter
contentInset UIEdgeInsets
The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport.
getter/setter pair
contentMode UIViewContentMode

Available on UIView, provided by the UIViewRendering extension

contentMode
getter/setter pair
contentScaleFactor double

Available on UIView, provided by the UIViewGeometry extension

contentScaleFactor
getter/setter pair
contentStretch ↔ CGRect

Available on UIView, provided by the UIViewRendering extension

contentStretch
getter/setter pair
coordinateSpace UICoordinateSpace
coordinateSpace
no setterinherited
debugDescription$1 → NSString
debugDescription
no setterinherited
debugMask MLNMapDebugMaskOptions
The options that determine which debugging aids are shown on the map.
getter/setter pair
decelerationRate double
A floating-point value that determines the rate of deceleration after the user lifts their finger.
getter/setter pair
delegate MLNMapViewDelegate?
The receiver’s delegate.
getter/setter pair
description$1 → NSString
description
no setterinherited
direction double
The heading of the map, measured in degrees clockwise from true north.
getter/setter pair
directionalLayoutMargins NSDirectionalEdgeInsets

Available on UIView, provided by the UIViewHierarchy extension

directionalLayoutMargins
getter/setter pair
displayHeadingCalibration bool
Whether the map view should display a heading calibration alert when necessary. The default value is YES.
getter/setter pair
dynamicNavigationCameraAnimationDuration bool
A boolean value indicating whether camera animation duration is set based on the time difference between the last location update and the current one or the default animation duration of 1 second.
getter/setter pair
editingInteractionConfiguration UIEditingInteractionConfiguration
editingInteractionConfiguration
no setterinherited
effectiveUserInterfaceLayoutDirection UIUserInterfaceLayoutDirection
effectiveUserInterfaceLayoutDirection
no setterinherited
exclusiveTouch bool

Available on UIView, provided by the UIViewGeometry extension

isExclusiveTouch
getter/setter pair
firstBaselineAnchor NSLayoutYAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

firstBaselineAnchor
no setter
focused bool
isFocused
no setterinherited
focusEffect UIFocusEffect?
focusEffect
getter/setter pairinherited
focusGroupIdentifier ↔ NSString?
focusGroupIdentifier
getter/setter pairinherited
focusGroupPriority int
focusGroupPriority
getter/setter pairinherited
focusItemContainer UIFocusItemContainer?
focusItemContainer
no setterinherited
focusItemDeferralMode UIFocusItemDeferralMode
focusItemDeferralMode
no setterinherited
frame ↔ CGRect

Available on UIView, provided by the UIViewGeometry extension

frame
getter/setter pair
frame → CGRect
frame
no setterinherited
gestureRecognizers ↔ NSArray?

Available on UIView, provided by the UIViewGestureRecognizers extension

gestureRecognizers
getter/setter pair
hapticFeedbackEnabled bool
A Boolean value that determines whether the user will receive haptic feedback for certain interactions with the map.
getter/setter pair
hasAmbiguousLayout bool

Available on UIView, provided by the UIConstraintBasedLayoutDebugging extension

hasAmbiguousLayout
no setter
hash$1 int
hash
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
heightAnchor NSLayoutDimension

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

heightAnchor
no setter
hidden bool

Available on UIView, provided by the UIViewRendering extension

isHidden
getter/setter pair
hoverStyle UIHoverStyle?

Available on UIView, provided by the UIHoverStyle$1 extension

hoverStyle
getter/setter pair
inputAccessoryView UIView?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputAccessoryView
no setter
inputAccessoryViewController UIInputViewController?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputAccessoryViewController
no setter
inputAssistantItem UITextInputAssistantItem

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputAssistantItem
no setter
inputView UIView?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputView
no setter
inputViewController UIInputViewController?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputViewController
no setter
insetsLayoutMarginsFromSafeArea bool

Available on UIView, provided by the UIViewHierarchy extension

insetsLayoutMarginsFromSafeArea
getter/setter pair
interactions ↔ NSArray

Available on UIView, provided by the Interactions extension

interactions
getter/setter pair
intrinsicContentSize → CGSize

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

intrinsicContentSize
no setter
isFirstResponder bool
isFirstResponder
no setterinherited
isProxy bool
isProxy
no setterinherited
isTransparentFocusItem bool
isTransparentFocusItem
no setterinherited
keyboardLayoutGuide UIKeyboardLayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

keyboardLayoutGuide
no setter
keyCommands → NSArray?

Available on UIResponder, provided by the UIResponderKeyCommands extension

keyCommands
no setter
largeContentImage UIImage?

Available on UIView, provided by the UILargeContentViewer extension

largeContentImage
no setter
largeContentImage$1 UIImage?

Available on UIView, provided by the UILargeContentViewer extension

setLargeContentImage:
no getter
largeContentImageInsets UIEdgeInsets

Available on UIView, provided by the UILargeContentViewer extension

largeContentImageInsets
no setter
largeContentImageInsets$1 UIEdgeInsets

Available on UIView, provided by the UILargeContentViewer extension

setLargeContentImageInsets:
no getter
largeContentTitle → NSString?

Available on UIView, provided by the UILargeContentViewer extension

largeContentTitle
no setter
largeContentTitle$1 ← NSString?

Available on UIView, provided by the UILargeContentViewer extension

setLargeContentTitle:
no getter
lastBaselineAnchor NSLayoutYAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

lastBaselineAnchor
no setter
layer CALayer
layer
no setterinherited
layoutGuides → NSArray

Available on UIView, provided by the UILayoutGuideSupport extension

layoutGuides
no setter
layoutMargins UIEdgeInsets

Available on UIView, provided by the UIViewHierarchy extension

layoutMargins
getter/setter pair
layoutMarginsGuide UILayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

layoutMarginsGuide
no setter
leadingAnchor NSLayoutXAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

leadingAnchor
no setter
leftAnchor NSLayoutXAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

leftAnchor
no setter
locationManager MLNLocationManager
The object that this map view uses to start and stop the delivery of location-related updates.
getter/setter pair
logoView UIImageView
A logo, the MapLibre logo by default, positioned in the lower-left corner. You are not required to display this, but some vector-sources may require attribution.
no setter
logoViewMargins ↔ CGPoint
A CGPoint indicating the position offset of the logo.
getter/setter pair
logoViewPosition MLNOrnamentPosition
The position of the logo view. The default value is MLNOrnamentPosition/MLNOrnamentPositionBottomLeft.
getter/setter pair
maskView UIView?

Available on UIView, provided by the UIViewRendering extension

maskView
getter/setter pair
maximumContentSizeCategory ↔ NSString?

Available on UIView, provided by the UIContentSizeCategoryLimit extension

maximumContentSizeCategory
getter/setter pair
maximumPitch double
The maximum pitch of the map’s camera toward the horizon measured in degrees.
getter/setter pair
maximumScreenBounds MLNCoordinateBounds
The maximum bounds of the map that can be shown on screen.
getter/setter pair
maximumZoomLevel double
The maximum zoom level the map can be shown at.
getter/setter pair
minimumContentSizeCategory ↔ NSString?

Available on UIView, provided by the UIContentSizeCategoryLimit extension

minimumContentSizeCategory
getter/setter pair
minimumPitch double
The minimum pitch of the map’s camera toward the horizon measured in degrees.
getter/setter pair
minimumZoomLevel double
The minimum zoom level at which the map can be shown.
getter/setter pair
motionEffects ↔ NSArray

Available on UIView, provided by the UIViewMotionEffects extension

motionEffects
getter/setter pair
multipleTouchEnabled bool

Available on UIView, provided by the UIViewGeometry extension

isMultipleTouchEnabled
getter/setter pair
nextResponder UIResponder?
nextResponder
no setterinherited
opaque bool

Available on UIView, provided by the UIViewRendering extension

isOpaque
getter/setter pair
overlays → NSArray
The complete list of overlays associated with the receiver. (read-only)
no setter
overrideUserInterfaceStyle UIUserInterfaceStyle

Available on UIView, provided by the UserInterfaceStyle extension

overrideUserInterfaceStyle
getter/setter pair
panScrollingMode MLNPanScrollingMode
The scrolling mode the user is allowed to use to interact with the map.
getter/setter pair
parentFocusEnvironment UIFocusEnvironment?
parentFocusEnvironment
no setterinherited
pasteConfiguration UIPasteConfiguration?

Available on UIResponder, provided by the UIPasteConfigurationSupporting$1 extension

pasteConfiguration
getter/setter pair
pitchEnabled bool
A Boolean value that determines whether the user may change the pitch (tilt) of the map.
getter/setter pair
preferredFocusedView UIView?
preferredFocusedView
no setterinherited
preferredFocusEnvironments → NSArray
preferredFocusEnvironments
no setterinherited
preferredFramesPerSecond int
The preferred frame rate at which the map view is rendered.
getter/setter pair
prefetchesTiles bool
A Boolean value indicating whether the map should prefetch tiles.
getter/setter pair
preservesSuperviewLayoutMargins bool

Available on UIView, provided by the UIViewHierarchy extension

preservesSuperviewLayoutMargins
getter/setter pair
quickZoomReversed bool
A boolean value that reverses the direction of the quick zoom gesture.
getter/setter pair
readableContentGuide UILayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

readableContentGuide
no setter
ref → ObjCObjectRef
finalinherited
restorationIdentifier ↔ NSString?

Available on UIView, provided by the UIStateRestoration extension

restorationIdentifier
getter/setter pair
rightAnchor NSLayoutXAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

rightAnchor
no setter
rotateEnabled bool
A Boolean value that determines whether the user may rotate the map, changing the direction.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeAreaInsets UIEdgeInsets

Available on UIView, provided by the UIViewHierarchy extension

safeAreaInsets
no setter
safeAreaLayoutGuide UILayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

safeAreaLayoutGuide
no setter
scaleBar MLNScaleBar
A control indicating the scale of the map. The scale bar is positioned in the upper-left corner. Enable the scale bar via showsScale.
no setter
scaleBarMargins ↔ CGPoint
A CGPoint indicating the position offset of the scale bar.
getter/setter pair
scaleBarPosition MLNOrnamentPosition
The position of the scale bar. The default value is MLNOrnamentPosition/MLNOrnamentPositionTopLeft.
getter/setter pair
scaleBarShouldShowDarkStyles bool
Sets whether the scale uses styles that make it easier to read on a dark styled map
getter/setter pair
scaleBarUsesMetricSystem bool
Sets whether the scale uses metric
getter/setter pair
scalesLargeContentImage bool

Available on UIView, provided by the UILargeContentViewer extension

scalesLargeContentImage
no setter
scalesLargeContentImage$1 bool

Available on UIView, provided by the UILargeContentViewer extension

setScalesLargeContentImage:
no getter
scrollEnabled bool
A Boolean value that determines whether the user may scroll around the map, changing the center coordinate.
getter/setter pair
selectedAnnotations ↔ NSArray
The currently selected annotations.
getter/setter pair
semanticContentAttribute UISemanticContentAttribute
semanticContentAttribute
getter/setter pairinherited
shouldRequestAuthorizationToUseLocationServices bool
A Boolean value indicating whether the map may request authorization to use location services.
getter/setter pair
showsLargeContentViewer bool

Available on UIView, provided by the UILargeContentViewer extension

showsLargeContentViewer
no setter
showsLargeContentViewer$1 bool

Available on UIView, provided by the UILargeContentViewer extension

setShowsLargeContentViewer:
no getter
showsScale bool
A Boolean value indicating whether the map may display scale information.
getter/setter pair
showsUserHeadingIndicator bool
A Boolean value indicating whether the user location annotation may display a permanent heading indicator.
getter/setter pair
showsUserLocation bool
A Boolean value indicating whether the map may display the user location.
getter/setter pair
style MLNStyle?
The style currently displayed in the receiver.
no setter
styleJSON ↔ NSString
The style JSON representation of the map.
getter/setter pair
styleURL ↔ NSURL
URL of the style currently displayed in the receiver.
getter/setter pair
subviews → NSArray

Available on UIView, provided by the UIViewHierarchy extension

subviews
no setter
superclass$1 → ObjCObjectBase
superclass
no setterinherited
superview UIView?

Available on UIView, provided by the UIViewHierarchy extension

superview
no setter
tag int
tag
getter/setter pairinherited
targetCoordinate CLLocationCoordinate2D
The geographic coordinate that is the subject of observation as the user location is being tracked.
getter/setter pair
textInputContextIdentifier → NSString?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

textInputContextIdentifier
no setter
textInputMode UITextInputMode?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

textInputMode
no setter
tileCacheEnabled bool
A Boolean value indicating whether the map may cache tiles for different zoom levels or not.
getter/setter pair
tileLodMinRadius double
Camera based tile level of detail controls
getter/setter pair
tileLodPitchThreshold double
Camera based tile level of detail controls
getter/setter pair
tileLodScale double
Camera based tile level of detail controls
getter/setter pair
tileLodZoomShift double
Camera based tile level of detail controls
getter/setter pair
tintAdjustmentMode UIViewTintAdjustmentMode

Available on UIView, provided by the UIViewRendering extension

tintAdjustmentMode
getter/setter pair
tintColor UIColor

Available on UIView, provided by the UIViewRendering extension

tintColor
getter/setter pair
topAnchor NSLayoutYAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

topAnchor
no setter
trailingAnchor NSLayoutXAxisAnchor

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

trailingAnchor
no setter
traitCollection UITraitCollection
traitCollection
no setterinherited
traitOverrides UITraitOverrides
traitOverrides
no setterinherited
transform CGAffineTransform

Available on UIView, provided by the UIViewGeometry extension

transform
getter/setter pair
transform CGAffineTransform
transform
getter/setter pairinherited
transform3D CATransform3D

Available on UIView, provided by the UIViewGeometry extension

transform3D
getter/setter pair
translatesAutoresizingMaskIntoConstraints bool

Available on UIView, provided by the UIConstraintBasedCompatibility extension

translatesAutoresizingMaskIntoConstraints
getter/setter pair
undoManager NSUndoManager?
undoManager
no setterinherited
userActivity NSUserActivity?

Available on UIResponder, provided by the ActivityContinuation extension

userActivity
getter/setter pair
userInteractionEnabled bool
isUserInteractionEnabled
getter/setter pairinherited
userLocation MLNUserLocation?
Returns the annotation object indicating the user’s current location.
no setter
userLocationVerticalAlignment MLNAnnotationVerticalAlignment
The vertical alignment of the user location annotation within the receiver. The default value is MLNAnnotationVerticalAlignment/MLNAnnotationVerticalAlignmentCenter.
getter/setter pair
userLocationVisible bool
A Boolean value indicating whether the device’s current location is visible in the map view.
no setter
userTrackingMode MLNUserTrackingMode
The mode used to track the user location. The default value is MLNUserTrackingMode/MLNUserTrackingModeNone.
getter/setter pair
viewForFirstBaselineLayout UIView

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

viewForFirstBaselineLayout
no setter
viewForLastBaselineLayout UIView

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

viewForLastBaselineLayout
no setter
visibleAnnotations → NSArray?
The complete list of annotations associated with the receiver that are currently visible.
no setter
visibleCoordinateBounds MLNCoordinateBounds
The coordinate bounds visible in the receiver’s viewport.
getter/setter pair
widthAnchor NSLayoutDimension

Available on UIView, provided by the UIViewLayoutConstraintCreation extension

widthAnchor
no setter
window UIWindow?

Available on UIView, provided by the UIViewHierarchy extension

window
no setter
zoomEnabled bool
A Boolean value that determines whether the user may zoom the map in and out, changing the zoom level.
getter/setter pair
zoomLevel double
The zoom level of the receiver.
getter/setter pair

Methods

actionForLayer(CALayer layer$1, {required NSString forKey}) CAAction?
actionForLayer:forKey:
inherited
addAnnotation(MLNAnnotation annotation) → void
Adds an annotation to the map view.
addAnnotations(NSArray annotations$1) → void
Adds an array of annotations to the map view.
addConstraint(NSLayoutConstraint constraint) → void

Available on UIView, provided by the UIConstraintBasedLayoutInstallingConstraints extension

addConstraint:
addConstraints(NSArray constraints$1) → void

Available on UIView, provided by the UIConstraintBasedLayoutInstallingConstraints extension

addConstraints:
addGestureRecognizer(UIGestureRecognizer gestureRecognizer) → void

Available on UIView, provided by the UIViewGestureRecognizers extension

addGestureRecognizer:
addInteraction(UIInteraction interaction) → void

Available on UIView, provided by the Interactions extension

addInteraction:
addLayoutGuide(UILayoutGuide layoutGuide) → void

Available on UIView, provided by the UILayoutGuideSupport extension

addLayoutGuide:
addMotionEffect(UIMotionEffect effect) → void

Available on UIView, provided by the UIViewMotionEffects extension

addMotionEffect:
addOverlay(MLNOverlay overlay) → void
Adds a single overlay object to the map.
addOverlays(NSArray overlays$1) → void
Adds an array of overlay objects to the map.
addPluginLayerType(ObjCObjectBase pluginLayerClass) → void
Adds a plug-in layer that is external to this library
addSubview(UIView view) → void

Available on UIView, provided by the UIViewHierarchy extension

addSubview:
alignmentRectForFrame(CGRect frame) → CGRect

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

alignmentRectForFrame:
anchorPointForGesture(UIGestureRecognizer gesture) → CGPoint
Returns the point in this view’s coordinate system on which to “anchor” in response to a user-initiated gesture.
autorelease() → NSObject
autorelease
inherited
backendResource() MLNBackendResource
backendResource
becomeFirstResponder() bool
becomeFirstResponder
inherited
bringSubviewToFront(UIView view) → void

Available on UIView, provided by the UIViewHierarchy extension

bringSubviewToFront:
buildMenuWithBuilder(UIMenuBuilder builder) → void
buildMenuWithBuilder:
inherited
camera$1(MLNMapCamera camera$2, {required MLNCoordinateBounds fittingCoordinateBounds, required UIEdgeInsets edgePadding}) MLNMapCamera
Returns the camera that best fits the given coordinate bounds with some additional padding on each side, matching an existing camera as much as possible.
camera$2(MLNMapCamera camera$3, {required MLNShape fittingShape, required UIEdgeInsets edgePadding}) MLNMapCamera
Returns the camera that best fits the given shape with some additional padding on each side, matching an existing camera as much as possible.
cameraThatFitsCoordinateBounds(MLNCoordinateBounds bounds) MLNMapCamera
Returns the camera that best fits the given coordinate bounds.
cameraThatFitsCoordinateBounds$1(MLNCoordinateBounds bounds, {required UIEdgeInsets edgePadding}) MLNMapCamera
Returns the camera that best fits the given coordinate bounds with some additional padding on each side.
cameraThatFitsShape(MLNShape shape, {required double direction$1, required UIEdgeInsets edgePadding}) MLNMapCamera
Returns the camera that best fits the given shape with some additional padding on each side while looking in the specified direction.
canPasteItemProviders(NSArray itemProviders) bool

Available on UIResponder, provided by the UIPasteConfigurationSupporting$1 extension

canPasteItemProviders:
canPerformAction(Pointer<ObjCSelector> action, {ObjCObjectBase? withSender}) bool
canPerformAction:withSender:
inherited
captureTextFromCamera(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UICaptureTextFromCameraSupporting extension

captureTextFromCamera:
class$1() → ObjCObjectBase
class
inherited
clearActionJournalLog() → void
Clear stored action journal events.
conformsToProtocol$1(Protocol aProtocol) bool
conformsToProtocol:
inherited
constraintsAffectingLayoutForAxis(UILayoutConstraintAxis axis) → NSArray

Available on UIView, provided by the UIConstraintBasedLayoutDebugging extension

constraintsAffectingLayoutForAxis:
contentCompressionResistancePriorityForAxis(UILayoutConstraintAxis axis) double

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

contentCompressionResistancePriorityForAxis:
contentHuggingPriorityForAxis(UILayoutConstraintAxis axis) double

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

contentHuggingPriorityForAxis:
convertCoordinate(CLLocationCoordinate2D coordinate, {UIView? toPointToView}) → CGPoint
Converts a geographic coordinate to a point in the given view’s coordinate system.
convertCoordinateBounds(MLNCoordinateBounds bounds, {UIView? toRectToView}) → CGRect
Converts a geographic bounding box to a rectangle in the given view’s coordinate system.
convertPoint(CGPoint point, {UIView? toView}) → CGPoint

Available on UIView, provided by the UIViewGeometry extension

convertPoint:toView:
convertPoint(CGPoint point, {required UICoordinateSpace toCoordinateSpace}) → CGPoint
convertPoint:toCoordinateSpace:
inherited
convertPoint$1(CGPoint point, {required UICoordinateSpace fromCoordinateSpace}) → CGPoint
convertPoint:fromCoordinateSpace:
inherited
convertPoint$1(CGPoint point, {UIView? fromView}) → CGPoint

Available on UIView, provided by the UIViewGeometry extension

convertPoint:fromView:
convertPoint_(CGPoint point, {UIView? view}) CLLocationCoordinate2D
Converts a point in the given view’s coordinate system to a geographic coordinate.
convertRect(CGRect rect, {required UICoordinateSpace toCoordinateSpace}) → CGRect
convertRect:toCoordinateSpace:
inherited
convertRect(CGRect rect, {UIView? toView}) → CGRect

Available on UIView, provided by the UIViewGeometry extension

convertRect:toView:
convertRect$1(CGRect rect, {required UICoordinateSpace fromCoordinateSpace}) → CGRect
convertRect:fromCoordinateSpace:
inherited
convertRect$1(CGRect rect, {UIView? fromView}) → CGRect

Available on UIView, provided by the UIViewGeometry extension

convertRect:fromView:
convertRect_(CGRect rect, {UIView? view}) MLNCoordinateBounds
Converts a rectangle in the given view’s coordinate system to a geographic bounding box.
copy() → ObjCObjectBase
copy
inherited
cut(ObjCObjectBase? sender) → void
cut:
inherited
dealloc() → void
dealloc
inherited
decodeRestorableStateWithCoder(NSCoder coder) → void

Available on UIView, provided by the UIStateRestoration extension

decodeRestorableStateWithCoder:
decreaseSize(ObjCObjectBase? sender) → void
decreaseSize:
inherited
delete(ObjCObjectBase? sender) → void
delete:
inherited
dequeueReusableAnnotationImageWithIdentifier(NSString identifier) MLNAnnotationImage?
Returns a reusable annotation image object associated with its identifier.
dequeueReusableAnnotationViewWithIdentifier(NSString identifier) MLNAnnotationView?
Returns a reusable annotation view object associated with its identifier.
deselectAnnotation(MLNAnnotation? annotation, {required bool animated}) → void
Deselects an annotation and hides its callout view.
didAddSubview(UIView subview) → void

Available on UIView, provided by the UIViewHierarchy extension

didAddSubview:
didHintFocusMovement(UIFocusMovementHint hint) → void
didHintFocusMovement:
inherited
didMoveToSuperview() → void

Available on UIView, provided by the UIViewHierarchy extension

didMoveToSuperview
didMoveToWindow() → void

Available on UIView, provided by the UIViewHierarchy extension

didMoveToWindow
didUpdateFocusInContext(UIFocusUpdateContext context, {required UIFocusAnimationCoordinator withAnimationCoordinator}) → void
didUpdateFocusInContext:withAnimationCoordinator:
inherited
displayLayer(CALayer layer$1) → void
displayLayer:
inherited
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void
doesNotRecognizeSelector:
inherited
drawLayer(CALayer layer$1, {required Pointer<CGContext> inContext}) → void
drawLayer:inContext:
inherited
drawRect(CGRect rect, {required UIViewPrintFormatter forViewPrintFormatter}) → void

Available on UIView, provided by the UIPrintFormatter extension

drawRect:forViewPrintFormatter:
drawRect(CGRect rect) → void

Available on UIView, provided by the UIViewRendering extension

drawRect:
drawViewHierarchyInRect(CGRect rect, {required bool afterScreenUpdates}) bool

Available on UIView, provided by the UISnapshotting extension

drawViewHierarchyInRect:afterScreenUpdates:
duplicate(ObjCObjectBase? sender) → void
duplicate:
inherited
enableRenderingStatsView(bool value) → void
Enable a rendering statistics overlay with MLNRenderingStats values.
encodeRestorableStateWithCoder(NSCoder coder) → void

Available on UIView, provided by the UIStateRestoration extension

encodeRestorableStateWithCoder:
encodeWithCoder(NSCoder coder) → void
encodeWithCoder:
inherited
endEditing(bool force) bool

Available on UIView, provided by the UITextField extension

endEditing:
exchangeSubviewAtIndex(int index1, {required int withSubviewAtIndex}) → void

Available on UIView, provided by the UIViewHierarchy extension

exchangeSubviewAtIndex:withSubviewAtIndex:
exerciseAmbiguityInLayout() → void

Available on UIView, provided by the UIConstraintBasedLayoutDebugging extension

exerciseAmbiguityInLayout
export$(ObjCObjectBase? sender) → void
export:
inherited
find(ObjCObjectBase? sender) → void
find:
inherited
findAndReplace(ObjCObjectBase? sender) → void
findAndReplace:
inherited
findNext(ObjCObjectBase? sender) → void
findNext:
inherited
findPrevious(ObjCObjectBase? sender) → void
findPrevious:
inherited
flyToCamera(MLNMapCamera camera$1, {ObjCBlock<Void Function()>? completionHandler}) → void
Moves the viewpoint to a different location using a transition animation that evokes powered flight and a default duration based on the length of the flight path.
flyToCamera$1(MLNMapCamera camera$1, {required double withDuration, ObjCBlock<Void Function()>? completionHandler}) → void
Moves the viewpoint to a different location using a transition animation that evokes powered flight and an optional transition duration.
flyToCamera$2(MLNMapCamera camera$1, {required double withDuration, required double peakAltitude, ObjCBlock<Void Function()>? completionHandler}) → void
Moves the viewpoint to a different location using a transition animation that evokes powered flight and an optional transition duration and peak altitude.
flyToCamera$3(MLNMapCamera camera$1, {required UIEdgeInsets edgePadding, required double withDuration, ObjCBlock<Void Function()>? completionHandler}) → void
Moves the viewpoint to a different location using a transition animation that evokes powered flight.
focusItemsInRect(CGRect rect) → NSArray
focusItemsInRect:
inherited
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) → ObjCObjectBase
forwardingTargetForSelector:
inherited
forwardInvocation(NSInvocation anInvocation) → void
forwardInvocation:
inherited
frameForAlignmentRect(CGRect alignmentRect) → CGRect

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

frameForAlignmentRect:
frameInView(UIView referenceView) → CGRect

Available on UIView, provided by the UIPopoverPresentationControllerSourceItem$1 extension

frameInView:
gestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer) bool

Available on UIView, provided by the UIViewGestureRecognizers extension

gestureRecognizerShouldBegin:
getActionJournalLog() → NSArray
Get the action journal events from oldest to newest.
getActionJournalLogFiles() → NSArray
Get the list of action journal log files from oldest to newest.
hitTest(CGPoint point, {UIEvent? withEvent}) UIView?

Available on UIView, provided by the UIViewGeometry extension

hitTest:withEvent:
increaseSize(ObjCObjectBase? sender) → void
increaseSize:
inherited
init() MLNMapView
init
override
initWithCoder(NSCoder coder) MLNMapView?
initWithCoder:
override
initWithFrame(CGRect frame, {NSURL? styleURL}) MLNMapView
Initializes and returns a newly allocated map view with the specified frame and style URL.
override
initWithFrame$1(CGRect frame, {required NSString styleJSON}) MLNMapView
Initializes and returns a newly allocated map view with the specified frame and style JSON.
initWithFrame$2(CGRect frame, {required MLNMapOptions options}) MLNMapView
Initializes and returns a newly allocated map view with the specified frame and the default style.
insertSubview(UIView view, {required int atIndex}) → void

Available on UIView, provided by the UIViewHierarchy extension

insertSubview:atIndex:
insertSubview$1(UIView view, {required UIView belowSubview}) → void

Available on UIView, provided by the UIViewHierarchy extension

insertSubview:belowSubview:
insertSubview$2(UIView view, {required UIView aboveSubview}) → void

Available on UIView, provided by the UIViewHierarchy extension

insertSubview:aboveSubview:
invalidateIntrinsicContentSize() → void

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

invalidateIntrinsicContentSize
isDescendantOfView(UIView view) bool

Available on UIView, provided by the UIViewHierarchy extension

isDescendantOfView:
isEqual(ObjCObjectBase object) bool
isEqual:
inherited
isKindOfClass(ObjCObjectBase aClass) bool
isKindOfClass:
inherited
isMemberOfClass(ObjCObjectBase aClass) bool
isMemberOfClass:
inherited
isRenderingStatsViewEnabled() bool
Returns the status of the rendering statistics overlay.
layerWillDraw(CALayer layer$1) → void
layerWillDraw:
inherited
layoutIfNeeded() → void

Available on UIView, provided by the UIViewHierarchy extension

layoutIfNeeded
layoutMarginsDidChange() → void

Available on UIView, provided by the UIViewHierarchy extension

layoutMarginsDidChange
layoutSublayersOfLayer(CALayer layer$1) → void
layoutSublayersOfLayer:
inherited
layoutSubviews() → void

Available on UIView, provided by the UIViewHierarchy extension

layoutSubviews
makeTextWritingDirectionLeftToRight(ObjCObjectBase? sender) → void
makeTextWritingDirectionLeftToRight:
inherited
makeTextWritingDirectionRightToLeft(ObjCObjectBase? sender) → void
makeTextWritingDirectionRightToLeft:
inherited
mapProjection() MLNMapProjection
Returns the new map projection instance initialized with the map view, i.e. with the current camera state.
metersPerPointAtLatitude(double latitude) double
Returns the distance spanned by one point in the map view’s coordinate system at the given latitude and current zoom level.
methodForSelector(Pointer<ObjCSelector> aSelector) Pointer<NativeFunction<Void Function()>>
methodForSelector:
inherited
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) → NSMethodSignature
methodSignatureForSelector:
inherited
motionBegan(UIEventSubtype motion, {UIEvent? withEvent}) → void
motionBegan:withEvent:
inherited
motionCancelled(UIEventSubtype motion, {UIEvent? withEvent}) → void
motionCancelled:withEvent:
inherited
motionEnded(UIEventSubtype motion, {UIEvent? withEvent}) → void
motionEnded:withEvent:
inherited
move(ObjCObjectBase? sender) → void
move:
inherited
mutableCopy() → ObjCObjectBase
mutableCopy
inherited
needsUpdateConstraints() bool

Available on UIView, provided by the UIConstraintBasedLayoutCoreMethods extension

needsUpdateConstraints
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paste(ObjCObjectBase? sender) → void
paste:
inherited
pasteAndGo(ObjCObjectBase? sender) → void
pasteAndGo:
inherited
pasteAndMatchStyle(ObjCObjectBase? sender) → void
pasteAndMatchStyle:
inherited
pasteAndSearch(ObjCObjectBase? sender) → void
pasteAndSearch:
inherited
pasteItemProviders(NSArray itemProviders) → void

Available on UIResponder, provided by the UIPasteConfigurationSupporting$1 extension

pasteItemProviders:
performSelector(Pointer<ObjCSelector> aSelector) → ObjCObjectBase
performSelector:
inherited
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject}) → ObjCObjectBase
performSelector:withObject:
inherited
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject, required ObjCObjectBase withObject$1}) → ObjCObjectBase
performSelector:withObject:withObject:
inherited
pointInside(CGPoint point, {UIEvent? withEvent}) bool

Available on UIView, provided by the UIViewGeometry extension

pointInside:withEvent:
pressesBegan(NSSet presses, {UIPressesEvent? withEvent}) → void
pressesBegan:withEvent:
inherited
pressesCancelled(NSSet presses, {UIPressesEvent? withEvent}) → void
pressesCancelled:withEvent:
inherited
pressesChanged(NSSet presses, {UIPressesEvent? withEvent}) → void
pressesChanged:withEvent:
inherited
pressesEnded(NSSet presses, {UIPressesEvent? withEvent}) → void
pressesEnded:withEvent:
inherited
print(ObjCObjectBase? sender) → void
print:
inherited
registerForTraitChanges(NSArray traits, {required ObjCBlock<Void Function(Pointer<ObjCObject>, UITraitCollection)> withHandler}) UITraitChangeRegistration
registerForTraitChanges:withHandler:
inherited
registerForTraitChanges$1(NSArray traits, {required ObjCObjectBase withTarget, required Pointer<ObjCSelector> action}) UITraitChangeRegistration
registerForTraitChanges:withTarget:action:
inherited
registerForTraitChanges$2(NSArray traits, {required Pointer<ObjCSelector> withAction}) UITraitChangeRegistration
registerForTraitChanges:withAction:
inherited
release() → void
release
inherited
reloadInputViews() → void

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

reloadInputViews
reloadStyle(ObjCObjectBase? sender) → void
Reloads the style.
remoteControlReceivedWithEvent(UIEvent? event) → void
remoteControlReceivedWithEvent:
inherited
removeAnnotation(MLNAnnotation annotation) → void
Removes an annotation from the map view, deselecting it if it is selected.
removeAnnotations(NSArray annotations$1) → void
Removes an array of annotations from the map view, deselecting any selected annotations in the array.
removeConstraint(NSLayoutConstraint constraint) → void

Available on UIView, provided by the UIConstraintBasedLayoutInstallingConstraints extension

removeConstraint:
removeConstraints(NSArray constraints$1) → void

Available on UIView, provided by the UIConstraintBasedLayoutInstallingConstraints extension

removeConstraints:
removeFromSuperview() → void

Available on UIView, provided by the UIViewHierarchy extension

removeFromSuperview
removeGestureRecognizer(UIGestureRecognizer gestureRecognizer) → void

Available on UIView, provided by the UIViewGestureRecognizers extension

removeGestureRecognizer:
removeInteraction(UIInteraction interaction) → void

Available on UIView, provided by the Interactions extension

removeInteraction:
removeLayoutGuide(UILayoutGuide layoutGuide) → void

Available on UIView, provided by the UILayoutGuideSupport extension

removeLayoutGuide:
removeMotionEffect(UIMotionEffect effect) → void

Available on UIView, provided by the UIViewMotionEffects extension

removeMotionEffect:
removeOverlay(MLNOverlay overlay) → void
Removes a single overlay object from the map.
removeOverlays(NSArray overlays$1) → void
Removes one or more overlay objects from the map.
rename(ObjCObjectBase? sender) → void
rename:
inherited
resetNorth() → void
Resets the map rotation to a northern heading — a direction of 0 degrees.
resetPosition() → void
Resets the map to the current style’s default viewport.
resignFirstResponder() bool
resignFirstResponder
inherited
resizableSnapshotViewFromRect(CGRect rect, {required bool afterScreenUpdates, required UIEdgeInsets withCapInsets}) UIView?

Available on UIView, provided by the UISnapshotting extension

resizableSnapshotViewFromRect:afterScreenUpdates:withCapInsets:
respondsToSelector(Pointer<ObjCSelector> aSelector) bool
respondsToSelector:
inherited
restoreUserActivityState(NSUserActivity userActivity$1) → void

Available on UIResponder, provided by the ActivityContinuation extension

restoreUserActivityState:
retain() → NSObject
retain
inherited
retainCount() int
retainCount
inherited
safeAreaInsetsDidChange() → void

Available on UIView, provided by the UIViewHierarchy extension

safeAreaInsetsDidChange
select(ObjCObjectBase? sender) → void
select:
inherited
selectAll(ObjCObjectBase? sender) → void
selectAll:
inherited
selectAnnotation(MLNAnnotation annotation, {required bool animated}) → void
Deprecated. Selects an annotation and displays its callout view.
selectAnnotation$1(MLNAnnotation annotation, {required bool animated, ObjCBlock<Void Function()>? completionHandler}) → void
Selects an annotation and displays its callout view with an optional completion handler.
selectAnnotation$2(MLNAnnotation annotation, {required bool moveIntoView, required bool animateSelection, ObjCBlock<Void Function()>? completionHandler}) → void
:nodoc: Selects an annotation and displays its callout view with an optional completion handler. This method should be considered "alpha" and as such is subject to change.
self$1() → NSObject
self
inherited
sendSubviewToBack(UIView view) → void

Available on UIView, provided by the UIViewHierarchy extension

sendSubviewToBack:
setCamera(MLNMapCamera camera$1, {required bool animated}) → void
Moves the viewpoint to a different location with respect to the map with an optional transition animation. For animated changes, wait until the map view has finished loading before calling this method.
setCamera$1(MLNMapCamera camera$1, {required double withDuration, CAMediaTimingFunction? animationTimingFunction}) → void
Moves the viewpoint to a different location with respect to the map with an optional transition duration and timing function. For animated changes, wait until the map view has finished loading before calling this method.
setCamera$2(MLNMapCamera camera$1, {required double withDuration, CAMediaTimingFunction? animationTimingFunction, ObjCBlock<Void Function()>? completionHandler}) → void
Moves the viewpoint to a different location with respect to the map with an optional transition duration and timing function. For animated changes, wait until the map view has finished loading before calling this method.
setCamera$3(MLNMapCamera camera$1, {required double withDuration, CAMediaTimingFunction? animationTimingFunction, required UIEdgeInsets edgePadding, ObjCBlock<Void Function()>? completionHandler}) → void
Moves the viewpoint to a different location with respect to the map with an optional transition duration and timing function, and optionally some additional padding on each side. For animated changes, wait until the map view has finished loading before calling this method.
setCenterCoordinate(CLLocationCoordinate2D coordinate, {required bool animated}) → void
Changes the center coordinate of the map and optionally animates the change.
setCenterCoordinate$1(CLLocationCoordinate2D centerCoordinate$1, {required double zoomLevel, required bool animated}) → void
Changes the center coordinate and zoom level of the map and optionally animates the change. For animated changes, wait until the map view has finished loading before calling this method.
setCenterCoordinate$2(CLLocationCoordinate2D centerCoordinate$1, {required double zoomLevel, required double direction, required bool animated}) → void
Changes the center coordinate, zoom level, and direction of the map and optionally animates the change. For animated changes, wait until the map view has finished loading before calling this method.
setCenterCoordinate$3(CLLocationCoordinate2D centerCoordinate$1, {required double zoomLevel, required double direction, required bool animated, ObjCBlock<Void Function()>? completionHandler}) → void
Changes the center coordinate, zoom level, and direction of the map, calling a completion handler at the end of an optional animation. For animated changes, wait until the map view has finished loading before calling this method.
setContentCompressionResistancePriority(double priority, {required UILayoutConstraintAxis forAxis}) → void

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

setContentCompressionResistancePriority:forAxis:
setContentHuggingPriority(double priority, {required UILayoutConstraintAxis forAxis}) → void

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

setContentHuggingPriority:forAxis:
setContentInset(UIEdgeInsets contentInset$1, {required bool animated}) → void
Deprecated. Sets the distance from the edges of the map view’s frame to the edges of the map view’s logical viewport with an optional transition animation.
setContentInset$1(UIEdgeInsets contentInset$1, {required bool animated, ObjCBlock<Void Function()>? completionHandler}) → void
Sets the distance from the edges of the map view’s frame to the edges of the map view’s logical viewport with an optional transition animation and completion handler.
setDirection(double direction$1, {required bool animated}) → void
Changes the heading of the map and optionally animates the change.
setNeedsDisplay() → void

Available on UIView, provided by the UIViewRendering extension

setNeedsDisplay
setNeedsDisplayInRect(CGRect rect) → void

Available on UIView, provided by the UIViewRendering extension

setNeedsDisplayInRect:
setNeedsFocusUpdate() → void
setNeedsFocusUpdate
inherited
setNeedsLayout() → void

Available on UIView, provided by the UIViewHierarchy extension

setNeedsLayout
setNeedsUpdateConstraints() → void

Available on UIView, provided by the UIConstraintBasedLayoutCoreMethods extension

setNeedsUpdateConstraints
setTargetCoordinate(CLLocationCoordinate2D targetCoordinate$1, {required bool animated}) → void
Deprecated. Sets the geographic coordinate that is the subject of observation as the user location is being tracked, with an optional transition animation.
setTargetCoordinate$1(CLLocationCoordinate2D targetCoordinate$1, {required bool animated, ObjCBlock<Void Function()>? completionHandler}) → void
Sets the geographic coordinate that is the subject of observation as the user location is being tracked, with an optional transition animation and completion handler.
setUserLocationVerticalAlignment(MLNAnnotationVerticalAlignment alignment, {required bool animated}) → void
Sets the vertical alignment of the user location annotation within the receiver, with an optional transition.
setUserTrackingMode(MLNUserTrackingMode mode, {required bool animated}) → void
Deprecated. Sets the mode used to track the user location, with an optional transition.
setUserTrackingMode$1(MLNUserTrackingMode mode, {required bool animated, ObjCBlock<Void Function()>? completionHandler}) → void
Sets the mode used to track the user location, with an optional transition and completion handler.
setVisibleCoordinateBounds(MLNCoordinateBounds bounds, {required bool animated}) → void
Changes the receiver’s viewport to fit the given coordinate bounds, optionally animating the change.
setVisibleCoordinateBounds$1(MLNCoordinateBounds bounds, {required UIEdgeInsets edgePadding, required bool animated}) → void
Deprecated. Changes the receiver’s viewport to fit the given coordinate bounds with some additional padding on each side.
setVisibleCoordinateBounds$2(MLNCoordinateBounds bounds, {required UIEdgeInsets edgePadding, required bool animated, ObjCBlock<Void Function()>? completionHandler}) → void
Changes the receiver’s viewport to fit the given coordinate bounds with some additional padding on each side, optionally calling a completion handler.
setVisibleCoordinates(Pointer<CLLocationCoordinate2D> coordinates, {required int count, required UIEdgeInsets edgePadding, required bool animated}) → void
Changes the receiver’s viewport to fit all of the given coordinates with some additional padding on each side.
setVisibleCoordinates$1(Pointer<CLLocationCoordinate2D> coordinates, {required int count, required UIEdgeInsets edgePadding, required double direction$1, required double duration, CAMediaTimingFunction? animationTimingFunction, ObjCBlock<Void Function()>? completionHandler}) → void
Changes the receiver’s viewport to fit all of the given coordinates with some additional padding on each side, optionally calling a completion handler.
setZoomLevel(double zoomLevel$1, {required bool animated}) → void
Changes the zoom level of the map and optionally animates the change.
shouldUpdateFocusInContext(UIFocusUpdateContext context) bool
shouldUpdateFocusInContext:
inherited
showAnnotations(NSArray annotations, {required bool animated}) → void
Sets the visible region so that the map displays the specified annotations.
showAnnotations$1(NSArray annotations, {required UIEdgeInsets edgePadding, required bool animated}) → void
Deprecated. Sets the visible region so that the map displays the specified annotations with the specified amount of padding on each side.
showAnnotations$2(NSArray annotations, {required UIEdgeInsets edgePadding, required bool animated, ObjCBlock<Void Function()>? completionHandler}) → void
Sets the visible region so that the map displays the specified annotations with the specified amount of padding on each side and an optional completion handler.
showAttribution(ObjCObjectBase sender) → void
Show the attribution action sheet.
showWritingTools(ObjCObjectBase sender) → void
showWritingTools:
inherited
sizeThatFits(CGSize size) → CGSize

Available on UIView, provided by the UIViewGeometry extension

sizeThatFits:
sizeToFit() → void

Available on UIView, provided by the UIViewGeometry extension

sizeToFit
snapshotViewAfterScreenUpdates(bool afterUpdates) UIView?

Available on UIView, provided by the UISnapshotting extension

snapshotViewAfterScreenUpdates:
soundIdentifierForFocusUpdateInContext(UIFocusUpdateContext context) → NSString?
soundIdentifierForFocusUpdateInContext:
inherited
systemLayoutSizeFittingSize(CGSize targetSize) → CGSize

Available on UIView, provided by the UIConstraintBasedLayoutFittingSize extension

systemLayoutSizeFittingSize:
systemLayoutSizeFittingSize$1(CGSize targetSize, {required double withHorizontalFittingPriority, required double verticalFittingPriority}) → CGSize

Available on UIView, provided by the UIConstraintBasedLayoutFittingSize extension

systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:
targetForAction(Pointer<ObjCSelector> action, {ObjCObjectBase? withSender}) → ObjCObjectBase?
targetForAction:withSender:
inherited
tintColorDidChange() → void

Available on UIView, provided by the UIViewRendering extension

tintColorDidChange
toggleBoldface(ObjCObjectBase? sender) → void
toggleBoldface:
inherited
toggleItalics(ObjCObjectBase? sender) → void
toggleItalics:
inherited
toggleUnderline(ObjCObjectBase? sender) → void
toggleUnderline:
inherited
toString() String
A string representation of this object.
inherited
touchesBegan(NSSet touches, {UIEvent? withEvent}) → void
touchesBegan:withEvent:
inherited
touchesCancelled(NSSet touches, {UIEvent? withEvent}) → void
touchesCancelled:withEvent:
inherited
touchesEnded(NSSet touches, {UIEvent? withEvent}) → void
touchesEnded:withEvent:
inherited
touchesEstimatedPropertiesUpdated(NSSet touches) → void
touchesEstimatedPropertiesUpdated:
inherited
touchesMoved(NSSet touches, {UIEvent? withEvent}) → void
touchesMoved:withEvent:
inherited
traitCollectionDidChange(UITraitCollection? previousTraitCollection) → void
traitCollectionDidChange:
inherited
triggerRepaint() → void
Triggers a repaint of the map.
unregisterForTraitChanges(UITraitChangeRegistration registration) → void
unregisterForTraitChanges:
inherited
updateConstraints() → void

Available on UIView, provided by the UIConstraintBasedLayoutCoreMethods extension

updateConstraints
updateConstraintsIfNeeded() → void

Available on UIView, provided by the UIConstraintBasedLayoutCoreMethods extension

updateConstraintsIfNeeded
updateFocusIfNeeded() → void
updateFocusIfNeeded
inherited
updateTextAttributesWithConversionHandler(ObjCBlock<NSDictionary Function(NSDictionary)> conversionHandler) → void
updateTextAttributesWithConversionHandler:
inherited
updateTraitsIfNeeded() → void
updateTraitsIfNeeded
inherited
updateUserActivityState(NSUserActivity activity) → void

Available on UIResponder, provided by the ActivityContinuation extension

updateUserActivityState:
updateUserLocationAnnotationView() → void
Updates the position of the user location annotation view by retreiving the user's last known location.
updateUserLocationAnnotationViewAnimatedWithDuration(double duration) → void
Updates the position of the user location annotation view by retreiving the user's last known location with a specified duration. @param duration The duration to animate the change in seconds.
useSelectionForFind(ObjCObjectBase? sender) → void
useSelectionForFind:
inherited
validateCommand(UICommand command) → void
validateCommand:
inherited
viewForAnnotation(MLNAnnotation annotation) MLNAnnotationView?
Returns an MLNAnnotationView if the given annotation is currently associated with a view, otherwise nil.
viewForBaselineLayout() UIView

Available on UIView, provided by the UIConstraintBasedLayoutLayering extension

viewForBaselineLayout
viewPrintFormatter() UIViewPrintFormatter

Available on UIView, provided by the UIPrintFormatter extension

viewPrintFormatter
viewWithTag(int tag) UIView?

Available on UIView, provided by the UIViewHierarchy extension

viewWithTag:
visibleAnnotationsInRect(CGRect rect) → NSArray?
Returns the list of annotations associated with the receiver that intersect with the given rectangle.
visibleFeaturesAtPoint(CGPoint point) → NSArray
Returns an array of rendered map features that intersect with a given point.
visibleFeaturesAtPoint$1(CGPoint point, {NSSet? inStyleLayersWithIdentifiers}) → NSArray
Returns an array of rendered map features that intersect with a given point, restricted to the given style layers.
visibleFeaturesAtPoint$2(CGPoint point, {NSSet? inStyleLayersWithIdentifiers, NSPredicate? predicate}) → NSArray
Returns an array of rendered map features that intersect with a given point, restricted to the given style layers and filtered by the given predicate.
visibleFeaturesInRect(CGRect rect) → NSArray
Returns an array of rendered map features that intersect with the given rectangle.
visibleFeaturesInRect$1(CGRect rect, {NSSet? inStyleLayersWithIdentifiers}) → NSArray
Returns an array of rendered map features that intersect with the given rectangle, restricted to the given style layers.
visibleFeaturesInRect$2(CGRect rect, {NSSet? inStyleLayersWithIdentifiers, NSPredicate? predicate}) → NSArray
Returns an array of rendered map features that intersect with the given rectangle, restricted to the given style layers and filtered by the given predicate.
willMoveToSuperview(UIView? newSuperview) → void

Available on UIView, provided by the UIViewHierarchy extension

willMoveToSuperview:
willMoveToWindow(UIWindow? newWindow) → void

Available on UIView, provided by the UIViewHierarchy extension

willMoveToWindow:
willRemoveSubview(UIView subview) → void

Available on UIView, provided by the UIViewHierarchy extension

willRemoveSubview:
zone() Pointer<NSZone>
zone
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() MLNMapView
alloc
override
allocWithZone(Pointer<NSZone> zone) MLNMapView
allocWithZone:
override
appearance() MLNMapView
appearance
override
appearanceForTraitCollection(UITraitCollection trait) MLNMapView
appearanceForTraitCollection:
override
appearanceForTraitCollection$1(UITraitCollection trait, {UIAppearanceContainer? whenContainedIn}) MLNMapView
appearanceForTraitCollection:whenContainedIn:
override
appearanceForTraitCollection$2(UITraitCollection trait, {required NSArray whenContainedInInstancesOfClasses}) MLNMapView
appearanceForTraitCollection:whenContainedInInstancesOfClasses:
override
appearanceWhenContainedIn(UIAppearanceContainer? ContainerClass) MLNMapView
appearanceWhenContainedIn:
override
appearanceWhenContainedInInstancesOfClasses(NSArray containerTypes) MLNMapView
appearanceWhenContainedInInstancesOfClasses:
override
getLayerClass() → ObjCObjectBase
layerClass
override
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of MLNMapView.
override
new$() MLNMapView
new
override
userInterfaceLayoutDirectionForSemanticContentAttribute(UISemanticContentAttribute attribute) UIUserInterfaceLayoutDirection
userInterfaceLayoutDirectionForSemanticContentAttribute:
override
userInterfaceLayoutDirectionForSemanticContentAttribute$1(UISemanticContentAttribute semanticContentAttribute$1, {required UIUserInterfaceLayoutDirection relativeToLayoutDirection}) UIUserInterfaceLayoutDirection
userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:
override