from

fun from(@FloatRange(from = -90.0, to = 90.0) latNorth: Double, lonEast: Double, @FloatRange(from = -90.0, to = 90.0) latSouth: Double, lonWest: Double): LatLngBounds

Constructs a LatLngBounds from doubles representing a LatLng pair.

This values of latNorth and latSouth should be in the range of -90, 90, see GeometryConstants.MIN_LATITUDE and GeometryConstants.MAX_LATITUDE, otherwise IllegalArgumentException will be thrown. latNorth should be greater or equal latSouth, otherwise IllegalArgumentException will be thrown.

This method doesn't recalculate most east or most west boundaries. Note @since 7.0.0 lonEast and lonWest will NOT be wrapped to be in the range of -180, 180, see GeometryConstants.MIN_LONGITUDE and GeometryConstants.MAX_LONGITUDE lonEast should be greater or equal lonWest, otherwise IllegalArgumentException will be thrown.


Constructs a LatLngBounds from a Tile identifier.

Returned bounds will have latitude in the range of Mercator projection.

Parameters

z

Tile zoom level.

x

Tile X coordinate.

y

Tile Y coordinate.

See also