MapCircle class

a circle draws on the map as Polygon

Constructors

MapCircle({required LatLng center, required double radius, Color fillColor = Colors.greenAccent, double fillOpacity = 1, bool clickable = true, bool editable = false, bool geodesic = false, Color strokeColor = Colors.blueAccent, double strokeOpacity = 1, double strokeWeight = 1, bool visible = true, int zIndex = 1})

Properties

center LatLng
the center point of the circle.
getter/setter pair
clickable bool
if true the element will be clickable and listen to mouse event. Default true.
getter/setter pairinherited
editable bool
if true the user can edit the polyline or polygon.
getter/setter pairinherited
fillColor Color
getter/setter pairinherited
fillOpacity double
getter/setter pairinherited
geodesic bool
When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. When false, edges of the polygon are rendered as straight lines in screen space.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
the id of the element.
no setterinherited
isAdded → dynamic
Check if the element added to the map.
no setterinherited
onCenterChanged LatLngCallBack
an event run on usee edit the center point of the circle.
no getter
onClick LatLngCallBack
an event runs on the user click the left mouse button on the element
no getterinherited
onDoubleClick LatLngCallBack
an event runs on the user double click the left mouse button on the element
no getterinherited
onMouseDown LatLngCallBack
an event runs on the mouse button down on the element.
no getterinherited
onMouseMove LatLngCallBack
an event runs on the mouse move on the element.
no getterinherited
onMouseUp LatLngCallBack
an event runs on the mouse button up on the element.
no getterinherited
onRadiusChanged CallBackValue
an event run on usee edit the radius of the circle.
no getter
onRightClick LatLngCallBack
an event runs on the user click the right mouse button on the element
no getterinherited
radius double
the radius of the circle in mettrs.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColor Color
getter/setter pairinherited
strokeOpacity double
getter/setter pairinherited
strokeWeight double
getter/setter pairinherited
visible bool
the visibility of the element
getter/setter pairinherited
zIndex int
All elements are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, elements are displayed according to their vertical position on screen, with lower elements appearing in front of markers further up the screen.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited