NavigationView
@IBDesignable
open class NavigationView : UIView
A view that represents the root view of the MapboxNavigation drop-in UI.
Components
- InstructionsBannerView
- InformationStackView
- BottomBannerView
- ResumeButton
- WayNameLabel
- FloatingStackView
- NavigationMapView
- SpeedLimitView
+--------------------+
| 1 |
+--------------------+
| 2 |
+---+------------+---+
| 8 | | |
+---+ | 6 |
| | |
| 7 +---+
| |
| |
| |
+------------+ |
| 4 || 5 | |
+------------+-------+
| 3 |
+--------------------+
-
NavigationMapView
that is displayed inside theNavigationView
.Declaration
Swift
public var navigationMapView: NavigationMapView { get set }
-
Stack view that contains floating buttons.
Declaration
Swift
public lazy var floatingStackView: UIStackView { get set }
-
The buttons to show floating on the map inside
floatingStackView
.Declaration
Swift
public var floatingButtons: [UIButton]? { get set }
-
A host view for
WayNameLabel
that shows a road name and a shield icon.Declaration
Swift
public lazy var wayNameView: WayNameView { get set }
-
A view that displays a speed limit.
Declaration
Swift
public lazy var speedLimitView: SpeedLimitView { get set }
-
View that is used as a container for top banners. By default, for turn-by-turn navigation
NavigationViewController
presentsTopBannerViewController
in this banner container.Declaration
Swift
public lazy var topBannerContainerView: BannerContainerView { get set }
-
View that is used as a container for bottom banners. By default, for turn-by-turn navigation
NavigationViewController
presentsBottomBannerViewController
in this banner container.Declaration
Swift
public lazy var bottomBannerContainerView: BannerContainerView { get set }
-
Initializes a
NavigationView
instance with the specified parameters.Declaration
Swift
public init(frame: CGRect, tileStoreLocation: TileStoreConfiguration.Location? = NavigationSettings.shared.tileStoreConfiguration.mapLocation , navigationMapView: NavigationMapView? = nil)
Parameters
frame
The frame rectangle for the
NavigationView
.tileStoreLocation
Configuration of the
TileStore
location, where map tiles are stored. Value is ignored if customNavigationMapView
instance was provided. Usenil
to disable onboard tile storage.navigationMapView
Custom
NavigationMapView
instance to supersede the default one.