MapRectanlge class

a rectangle draws on the map as Polygon

Constructors

MapRectanlge({required LatLngBounds bounds, 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

bound LatLngBounds
no setter
bounds LatLngBounds
the bounds of the rectangle.
no getter
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
onBoundsChanged LatLngBoundsCallBack
an event runs on the user edit the rectangle.
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
onRightClick LatLngCallBack
an event runs on the user click the right mouse button on the element
no getterinherited
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