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. Default value is 15 pixels The width in pixels of polylines for indoor route sections.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    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.