LatLngBounds class
A latitude/longitude aligned rectangle.
The rectangle conceptually includes all points (lat, lng) where
- lat ∈
`southwest.latitude`, `northeast.latitude` - lng ∈
`southwest.longitude`, `northeast.longitude`, ifsouthwest.longitude≤northeast.longitude, - lng ∈
-180, `northeast.longitude`∪ [southwest.longitude, 180[, ifnortheast.longitude<southwest.longitude
- Annotations
Constructors
- LatLngBounds({required LatLng southwest, required LatLng northeast})
- Creates geographical bounding box with the specified corners.
Properties
Methods
-
contains(
LatLng point) → bool -
Determines whether a given geographical point (
LatLng) is within the bounds defined by two other geographical points:southwest(lower-left corner) andnortheast(upper-right corner). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toList(
) → dynamic -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromList(
dynamic json) → LatLngBounds?