PolylineOptions | iOS SDK | Urbi Documentation
iOS SDK

PolylineOptions

Polyline parameters.

public init(
    points: [GeoPoint],
    width: LogicalPixel = LogicalPixel(value: 1),
    color: Color = Color(),
    erasedPart: Double = 0,
    dashedPolylineOptions: DashedPolylineOptions? = nil,
    gradientPolylineOptions: GradientPolylineOptions? = nil,
    visible: Bool = true,
    userData: Any = (),
    zIndex: ZIndex = ZIndex(value: 0),
    levelId: LevelId? = nil
)
Parameters
points
width
color
erasedPart
dashedPolylineOptions
gradientPolylineOptions
visible
zIndex
levelId
Properties

Polyline points.

Polyline width.

Main color of the polyline.

Proportion of erased part of the polyline, must be in the [0; 1] range.

Dashed polyline options.
Dashed gradient line is not currently supported, so if both dashed_polyline_options and gradient_polyline_options are present in PolylineOptions, the dashed_polyline_options will be ignored when creating a polyline.

Gradient polyline options.
Dashed gradient line is not currently supported, so if both dashed_polyline_options and gradient_polyline_options are present in PolylineOptions, the dashed_polyline_options will be ignored when creating a polyline.

Visibility of a polyline.

Any

User data.

Object drawing level.

Binding to the floor plan of the building.