-
-
The
gestures
object will be responsible for all gestures on the map. -
The
ornaments
object will be responsible for all ornaments on the map. -
The
camera
object manages a camera’s view lifecycle. -
The
location
object 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.
-
Viewport
is 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
CAMetalLayer
of theMapView
presents its content using a CoreAnimation transactionBy default, this is
false
resulting in the output of a rendering pass being displayed on theCAMetalLayer
as quickly as possible (and asynchronously). This typically results in the fastest rendering performance.If, however, the
MapView
is overlaid with aUIKit
element which must be pinned to a particular lat-long, then setting this totrue
will 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.