Circle

fun Circle(center: LatLng, clickable: Boolean = false, fillColor: Color = Color.Transparent, radius: Double = 0.0, strokeColor: Color = Color.Black, strokePattern: List<PatternItem>? = null, strokeWidth: Float = 10.0f, tag: Any? = null, visible: Boolean = true, zIndex: Float = 0.0f, onClick: (Circle) -> Unit = {})

A composable for a circle on the map.

Parameters

center

the LatLng to use for the center of this circle

clickable

boolean indicating if the circle is clickable or not

fillColor

the fill color of the circle

radius

the radius of the circle in meters.

strokeColor

the stroke color of the circle

strokePattern

a sequence of PatternItem to be repeated along the circle's outline (null represents a solid line)

tag

optional tag to be associated with the circle

strokeWidth

the width of the circle's outline in screen pixels

visible

the visibility of the circle

zIndex

the z-index of the circle

onClick

a lambda invoked when the circle is clicked