Polyline
A polyline on the map: connected line segments.
The polyline is a live handle, as returned by OpenMapView.addPolyline: setting a property, e.g. polyline.strokeWidth = 16f, redraws the map right away, and remove takes it off the map. Java code uses the getters and setters, e.g. polyline.setWidth(16f).
Parameters
the geographic coordinates of the path, at least 2
the line color, used where no spans apply
the line width in pixels
the stroke pattern, e.g. dashed; null for a solid line
the stroke pattern as dots, dashes and gaps, used instead of strokePattern if not null
the shape of the start
the shape of the end
the shape of the corners
whether segments are drawn as great-circle paths instead of straight lines on the Mercator map
style spans for a multi-colored line, overriding strokeColor for their segments
whether the polyline is visible
whether a tap on the polyline is reported to its click listener
draw order: polylines with a higher zIndex are drawn on top
optional user data
Constructors
Properties
The stroke pattern as dots, dashes and gaps, used instead of strokePattern if not null
The line color, used where no spans apply
strokeColor as an ARGB color int, e.g. for Java code.
The shape of the corners
The stroke pattern, e.g. dashed; null for a solid line
The line width in pixels
Functions
Returns a new polyline with the given properties changed, not added to any map.
The shape of the corners as a JointType constant, like getJointType() of the Maps SDK.
The shape of the start, like getStartCap() of the Maps SDK.
The stroke color as an ARGB color int, the same as getColor.
Sets the shape of the corners from a JointType constant, like setJointType(int) of the Maps SDK.
Sets the shape of the start, like setStartCap(Cap) of the Maps SDK.
Sets the stroke color from an ARGB color int, the same as setColor.
Sets strokePattern from an android.graphics.PathEffect, e.g. a DashPathEffect from Java.