-
-
The
gesturesobject will be responsible for all gestures on the map. -
The
ornamentsobject will be responsible for all ornaments on the map. -
The
cameraobject manages a camera’s view lifecycle. -
The
locationobject handles location events of the map. -
Controls the addition/removal of annotations to the map.
-
Manages the configuration of custom view annotations on the map.
-
Viewportis a high-level and extensible API for driving the map camera. It provides built-in states for following the location puck and showing an overview of a GeoJSON geometry, and enables the creation of custom states. Transitions between states can be animated with a built-in default transition and via custom transitions. -
A Boolean value that indicates whether the underlying
CAMetalLayerof theMapViewpresents its content using a CoreAnimation transactionBy default, this is
falseresulting in the output of a rendering pass being displayed on theCAMetalLayeras quickly as possible (and asynchronously). This typically results in the fastest rendering performance.If, however, the
MapViewis overlaid with aUIKitelement which must be pinned to a particular lat-long, then setting this totruewill result in better synchronization and less jitter. -
The map’s current camera
-
The map’s current anchor, calculated after applying padding (if it exists)
-
-
-
-
-
Errors related to rendered snapshots
See more -
Synchronously captures the rendered map as a
UIImage. The image does not include the ornaments (scale bar, compass, attribution, etc.) or any other custom subviews. UsedrawHierarchy(in:afterScreenUpdates:)directly to include the full hierarchy.
MapView Class Reference