-
See moreNavigationCamera
class provides functionality, which allows to manage camera related states and transitions in a typical navigation scenarios. It’s fed withCameraOptions
via theViewportDataSource
protocol and executes transitions usingCameraStateTransition
protocol.Declaration
Swift
public class NavigationCamera : NSObject, ViewportDataSourceDelegate
-
Possible types of
See moreNavigationCamera
.Declaration
Swift
public enum NavigationCameraType
-
Possible states which
See moreNavigationCamera
can have.Declaration
Swift
public enum NavigationCameraState
-
Protocol, which is used to execute camera related transitions, based on data provided via
CameraOptions
inViewportDataSource
.By default Navigation SDK for iOS provides default implementation of
See moreCameraStateTransition
inNavigationCameraStateTransition
.Declaration
Swift
public protocol CameraStateTransition : AnyObject
-
Class, which conforms to
See moreCameraStateTransition
protocol and provides default implementation of camera related transitions by usingCameraAnimator
functionality provided by Mapbox Maps SDK.Declaration
Swift
public class NavigationCameraStateTransition : CameraStateTransition
-
Protocol, which is used to fill and store
CameraOptions
which will be used byNavigationCamera
for execution of transitions and continuous updates.By default Navigation SDK for iOS provides default implementation of
See moreViewportDataSource
inNavigationViewportDataSource
.Declaration
Swift
public protocol ViewportDataSource : AnyObject
-
Class, which conforms to
See moreViewportDataSource
protocol and provides default implementation of it.Declaration
Swift
public class NavigationViewportDataSource : ViewportDataSource
extension NavigationViewportDataSource: LocationConsumer
-
Possible types of location related updates
See moreNavigationViewportDataSource
can track.ViewportDataSourceType
can also be used in custom implementations of classes, which conform toViewportDataSource
.Declaration
Swift
public enum ViewportDataSourceType
-
Delegate, which is used to notify
See moreNavigationCamera
regarding upcomingCameraOptions
related changes.Declaration
Swift
public protocol ViewportDataSourceDelegate : AnyObject
-
Options, which are used to control what
See moreCameraOptions
parameters will be modified byNavigationViewportDataSource
inNavigationCameraState.following
state.Declaration
Swift
public struct FollowingCameraOptions : Equatable
-
Options, which allow to modify the framed route geometries based on the intersection density.
By default the whole remainder of the step is framed, while
See moreIntersectionDensity
options shrink that geometry to increase the zoom level.Declaration
Swift
public struct IntersectionDensity : Equatable
-
Options, which allow to modify
See moreCameraOptions.bearing
property based on information about bearing of an upcoming maneuver.Declaration
Swift
public struct BearingSmoothing : Equatable
-
Options, which allow to modify framed route geometries by appending additional coordinates after maneuver to extend the view.
See moreDeclaration
Swift
public struct GeometryFramingAfterManeuver : Equatable
-
Options, which allow to modify the framed route geometries when approaching a maneuver.
See moreDeclaration
Swift
public struct PitchNearManeuver : Equatable
-
Options, which are used to control what
See moreCameraOptions
parameters will be modified byNavigationViewportDataSource
inNavigationCameraState.overview
state.Declaration
Swift
public struct OverviewCameraOptions : Equatable
-
Options, which give the ability to control whether certain
See moreCameraOptions
will be generated byNavigationViewportDataSource
or can be provided by user directly.Declaration
Swift
public struct NavigationViewportDataSourceOptions : Equatable
-
Declaration
Swift
extension CameraOptions