LineRegion class
A geographically line/locus region based off a list of coords and a radius
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: LineRegion.toOutlines
- Inheritance
-
- Object
- BaseRegion
- LineRegion
Constructors
-
LineRegion(List<
LatLng> line, double radius, {String? name}) - A geographically line/locus region based off a list of coords and a radius
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
line
→ List<
LatLng> -
The center line defined by a list of coordinates
final
- name → String?
-
The user friendly name for the region
finalinherited
- radius → double
-
The offset of the outline from the line in all directions (in meters)
final
- 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(
int minZoom, int maxZoom, TileLayer options, {int parallelThreads = 10, bool preventRedownload = false, bool seaTileRemoval = false, int start = 0, int? end, Crs crs = const Epsg3857(), void errorHandler(Object?)?}) → DownloadableRegion< List< Object> > -
Generate the DownloadableRegion ready for bulk downloading
override
-
toDrawable(
{Color? fillColor, Color? borderColor, double borderStrokeWidth = 3, bool isDotted = false, bool prettyPaint = true, StrokeCap strokeCap = StrokeCap.round, StrokeJoin strokeJoin = StrokeJoin.round, List< Color> ? gradientColors, List<double> ? colorsStop}) → Widget -
Generate a graphical layer to be placed in a
FlutterMap
override -
toOutline(
[int overlap = 1]) → List< LatLng> -
Flattens the result of toOutlines - its documentation is quoted below
override
-
toOutlines(
[int overlap = 0]) → List< List< LatLng> > - Generate the list of rectangle segments formed from the locus of this line
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited