IndoorRouteStyle

public class IndoorRouteStyle
extension IndoorRouteStyle: NativeBase
extension IndoorRouteStyle: Hashable

Represents a style of the indoor route. Contains information about route colors, widths, and markers. Markers set through this style override the SDK’s built-in defaults. Any marker left unset will automatically use the SDK’s default icon when the route is rendered.

  • 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 }
  • A MapMarker instance representing the start of the route. If not set, the SDK displays a built-in default start marker. 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. If not set, the SDK displays a built-in default destination marker. 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. If not set, the SDK displays a built-in default walk marker. 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. If not set, the SDK displays a built-in default drive marker. 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 direction. If no custom marker has been set for the given feature and direction, returns null. When null, the SDK uses a built-in default icon during route rendering.

    Declaration

    Swift

    public func getIndoorMarkerFor(feature: IndoorLevelChangeFeatures, 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 custom MapMarker if set, or null if the SDK default should be used.

  • Sets custom map markers for the given indoor feature. Pass null for any direction to let the SDK use its built-in default icon for that direction. Each direction (up, down, exit) is resolved independently — you can override only the ones you need.

    Declaration

    Swift

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

    Parameters

    feature

    An indoor feature.

    upMarker

    A MapMarker to go up. Pass null to use SDK default.

    downMarker

    A MapMarker to go down. Pass null to use SDK default.

    exitMarker

    A MapMarker to exit the indoor feature. Pass null to use SDK default.