NavigationCamera

public class NavigationCamera : NSObject, ViewportDataSourceDelegate

NavigationCamera class provides functionality, which allows to manage camera related states and transitions in a typical navigation scenarios. It’s fed with CameraOptions via the ViewportDataSource protocol and executes transitions using CameraStateTransition protocol.

  • Initializer of NavigationCamera object.

    Declaration

    Swift

    public required init(_ mapView: MapView, navigationCameraType: NavigationCameraType = .mobile)

    Parameters

    mapView

    Instance of MapView, on which camera related transitions will be executed.

    navigationCameraType

    Type of camera, which is used to perform camera transition (either iOS or CarPlay).