Circle

data class Circle(val center: LatLng, val radius: Float, val strokeColor: Color = Color.Black, val strokeWidth: Float = 10.0f, val strokePattern: PathEffect? = null, val strokeCap: StrokeCap = StrokeCap.Round, val strokeJoin: StrokeJoin = StrokeJoin.Round, val fillColor: Color = Color(red = 128, green = 128, blue = 128, alpha = 128), val visible: Boolean = true, val clickable: Boolean = false, val zIndex: Float = 0.0f, val tag: Any? = null)(source)

Represents a circle on the map with a center point and radius in meters.

Constructors

Link copied to clipboard
constructor(center: LatLng, radius: Float, strokeColor: Color = Color.Black, strokeWidth: Float = 10.0f, strokePattern: PathEffect? = null, strokeCap: StrokeCap = StrokeCap.Round, strokeJoin: StrokeJoin = StrokeJoin.Round, fillColor: Color = Color(red = 128, green = 128, blue = 128, alpha = 128), visible: Boolean = true, clickable: Boolean = false, zIndex: Float = 0.0f, tag: Any? = null)

Properties

Link copied to clipboard

Geographic coordinate of the circle center

Link copied to clipboard

Whether the circle is clickable. Default is false

Link copied to clipboard

Fill color for the circle interior (default: semi-transparent gray)

Link copied to clipboard

Radius of the circle in meters

Link copied to clipboard

Shape of line endpoints (default: Round)

Link copied to clipboard

Color of the circle outline (default: black)

Link copied to clipboard

Shape of line corners (default: Round)

Link copied to clipboard

Pattern for the stroke (dashed, dotted, etc.). Null means solid line (default: null)

Link copied to clipboard

Width of the outline in pixels (default: 10f)

Link copied to clipboard
val tag: Any?

Optional user data associated with the circle

Link copied to clipboard

Whether the circle is visible. Default is true

Link copied to clipboard

Draw order. Circles with higher zIndex are drawn on top. Default is 0.0

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int