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
MapMarkerinstance 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 } -
Returns a
MapMarkerfor 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
featureAn indoor feature.
deltaZA 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
MapMarkerif 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?)