Circle
A circle on the map with a center and a radius in meters.
The circle is a live handle, as returned by OpenMapView.addCircle: setting a property, e.g. circle.strokeWidth = 16f, redraws the map right away, and remove takes it off the map. Java code uses the getters and setters, e.g. circle.setRadius(500f).
Parameters
the geographic coordinate of the center
the radius in meters, greater than 0
the outline color
the outline 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 line ends
the shape of the corners
the color of the interior
whether the circle is visible
whether a tap on the circle is reported to its click listener
draw order: circles with a higher zIndex are drawn on top
optional user data
Constructors
Properties
fillColor as an ARGB color int, e.g. for Java code.
The stroke pattern as dots, dashes and gaps, used instead of strokePattern if not null
The outline color
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 outline width in pixels
Functions
Returns a new circle with the given properties changed, not added to any map.
The fill color as an ARGB color int, like getFillColor() of the Maps SDK.
The shape of line ends as a Cap, e.g. for Java code.
The stroke color as an ARGB color int, like getStrokeColor() of the Maps SDK.
The shape of the corners as a JointType constant, like getStrokeJointType() of the Maps SDK.
Sets the fill color from an ARGB color int, like setFillColor(int) of the Maps SDK.
Sets the shape of line ends, e.g. setStrokeCap(new RoundCap()) from Java.
Sets the stroke color from an ARGB color int, like setStrokeColor(int) of the Maps SDK.
Sets the shape of the corners from a JointType constant, like setStrokeJointType(int) of the Maps SDK.
Sets strokePattern from an android.graphics.PathEffect, e.g. a DashPathEffect from Java.
Sets pattern from dots, dashes and gaps, like setStrokePattern(List) of the Maps SDK.