IndoorRouteStyle

public class IndoorRouteStyle
extension IndoorRouteStyle: NativeBase
extension IndoorRouteStyle: Hashable

Represents a style of the indoor route. Contains information about route colors and widths. Optionally, this style allows to set MapMarker instances that can be used for specific route elements.

  • Creates a new instance of this class.

    Declaration

    Swift

    public init()
  • The width in pixels of polylines for indoor route sections. The default width is 15 pixels.

    Declaration

    Swift

    public var indoorPolylineWidth: Double { get set }
  • The color of polylines for indoor route sections. The default color is #48DAD0.

    Declaration

    Swift

    public var indoorPolylineColor: UIColor { get set }
  • The width in pixels of polylines for outdoor route sections. The default width is 20 pixels.

    Declaration

    Swift

    public var outdoorPolylineWidth: Double { get set }
  • The color of polylines for outdoor route sections. The default color is #00908A.

    Declaration

    Swift

    public var outdoorPolylineColor: UIColor { get set }
  • The start MapMarker of the resulting route. By default, no map marker is provided.

    Declaration

    Swift

    public var startMarker: MapMarker? { get set }
  • The destination MapMarker of the resulting route. By default, no map marker is provided.

    Declaration

    Swift

    public var destinationMarker: MapMarker? { get set }
  • The walk MapMarker of the resulting route. It signals that a user should leave his transport vehicle and continue on foot. By default, no map marker is provided.

    Declaration

    Swift

    public var walkMarker: MapMarker? { get set }
  • The drive MapMarker of the resulting route. It signals that a user should take a transport vehicle. By default, no map marker is provided.

    Declaration

    Swift

    public var driveMarker: MapMarker? { get set }
  • Returns a MapMarker for a given indoor feature and the number of levels to change. By default, no map markers are provided.

    Declaration

    Swift

    public func getIndoorMarkerFor(feature: IndoorFeatures, deltaZ: Int32) -> MapMarker?

    Parameters

    feature

    An indoor feature.

    deltaZ

    A number of levels to change, positive for up, negative for down. In the case of 0, the method returns an exit map marker.

    Return Value

    The result MapMarker, if it was set.

  • Sets map markers for the given indoor feature.

    Declaration

    Swift

    public func setIndoorMarkersFor(feature: IndoorFeatures, upMarker: MapMarker?, downMarker: MapMarker?, exitMarker: MapMarker?)

    Parameters

    feature

    An indoor feature.

    upMarker

    A MapMarker to go up.

    downMarker

    A MapMarker to go down.

    exitMarker

    A MapMarker to exit the indoor feature.