from

fun from(latNorth: Double, lonEast: Double, latSouth: Double, lonWest: Double): LngLatBounds

Constructs a LngLatBounds 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 LngLatBounds from a Tile identifier.

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

Parameters

z

Tile 줌레벨

x

Tile X 좌표

y

Tile Y 좌표

See also

GeometryConstants.MIN_MERCATOR_LATITUDE
GeometryConstants.MAX_MERCATOR_LATITUDE