LatLngBounds class
Constructors
- LatLngBounds({required double west, required double east, required double south, required double north})
- LatLngBounds.fromJson(String json)
- Build a object from json String.
- LatLngBounds.fromMap(Map data)
- Build a object from Map.
Properties
Methods
-
contains(
LatLng point) → bool -
return true if the given
point
was inside the bounds. -
extend(
LatLng point) → void -
expend this bounds in order to containe the given
point
-
getCenter(
) → LatLng - return the center of this bounds.
-
getNorthEast(
) → LatLng - return the (north,east) as LatLng.
-
getNorthWest(
) → LatLng - return the (north,west) as LatLng.
-
getSouthEast(
) → LatLng - return the (south,west) as LatLng.
-
getSouthWest(
) → LatLng - return the (south,east) as LatLng.
-
intersects(
LatLngBounds bounds) → bool -
Check if the given
bounds
intersect with this bounds in one point or more. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Convert the object to json.
-
toMap(
) → Map< String, double> - Convert the object to Map.
-
toString(
) → String -
A string representation of this object.
override
-
union(
LatLngBounds other) → LatLngBounds -
return a new object from the union of this bounds and the given
bounds
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override