ru.dgis.sdk.map.PolylineOptions | Android SDK | 2GIS Documentation

PolylineOptions

Polyline options.

PolylineOptions(
	points: List<GeoPoint>,
	width: LogicalPixel = LogicalPixel(value = 1.0f),
	color: Color = Color(),
	erasedPart: Double = 0.0,
	dashedPolylineOptions: DashedPolylineOptions? = null,
	gradientPolylineOptions: GradientPolylineOptions? = null,
	visible: Boolean = true,
	userData: Any? = null,
	zIndex: ZIndex = ZIndex(value = 0),
	levelId: LevelId? = null
)

Polyline options.

Parameters
points
width
color
erasedPart
dashedPolylineOptions
gradientPolylineOptions
visible
userData
zIndex
levelId
Returns
Properties

Points of a polyline.

Polyline width.

Primary color of the polyline.

The proportion of the erased part of the polyline must be in the range 0;1.

Dashed polyline options.

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

Gradient polyline options.

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

Polyline visibility.

User data.

Object drawing level.

Link to the floor plan of the building.