setBounds

fun setBounds(@Size(value = 4) vararg bounds: Float)

Default: -180, -90, 180, 90. The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, in the order left, bottom, right, top. Values may be integers or floating point numbers.

Parameters

bounds

the Float array to set


fun setBounds(left: Float, bottom: Float, right: Float, top: Float)

Default: -180, -90, 180, 90. The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, in the order left, bottom, right, top. Values are floating point numbers.

Parameters

left

the Float left bound

bottom

the Float bottom bound

right

the Float right bound

top

the Float top bound


fun setBounds(bounds: LatLngBounds)

Default: -180, -90, 180, 90. The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84

Parameters

bounds

The LatLngBounds instance containing bounds


fun setBounds(@Size(value = 4) bounds: FloatArray)

Deprecated

Not strongly typed

Replace with

setBounds(bounds: LatLngBounds

Default: -180, -90, 180, 90. The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, as a Float array of exactly four elements in the order left, bottom, right, top. They are all floating point numbers.

Parameters

bounds

The Array of floats containing bounds in the order left, bottom, right, top