RectangleRegion class
A geographically rectangular region based off coordinate bounds
Rectangles do not support skewing into parallelograms.
It can be converted to a:
- DownloadableRegion for downloading: toDownloadable
- Widget layer to be placed in a map: toDrawable
- list of
LatLng
s forming the outline: toOutline
- Inheritance
-
- Object
- BaseRegion
- RectangleRegion
Constructors
- RectangleRegion(LatLngBounds bounds)
-
A geographically rectangular region based off coordinate bounds
const
Properties
- bounds → LatLngBounds
-
The coordinate bounds
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDownloadable(
{required int minZoom, required int maxZoom, required TileLayer options, int start = 1, int? end, Crs crs = const Epsg3857()}) → DownloadableRegion< RectangleRegion> -
Generate the DownloadableRegion ready for bulk downloading
override
-
toDrawable(
{Color? fillColor, Color borderColor = const Color(0x00000000), double borderStrokeWidth = 3.0, bool isDotted = false, String? label, TextStyle labelStyle = const TextStyle(), PolygonLabelPlacement labelPlacement = PolygonLabelPlacement.polylabel}) → PolygonLayer -
Generate a graphical layer to be placed in a
FlutterMap
override -
toOutline(
) → List< LatLng> -
Generate the list of all the
LatLng
s forming the outline of this regionoverride -
toString(
) → String -
A string representation of this object.
inherited
-
when<
T> ({required T rectangle(RectangleRegion rectangle), required T circle(CircleRegion circle), required T line(LineRegion line), required T customPolygon(CustomPolygonRegion customPolygon)}) → T -
Output a value of type
T
dependent onthis
and its typeinherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override