setCenter

fun setCenter(center: LatLng)

Set the center. Longitude and latitude MUST be within the specified bounds. Implementations can use this value to set the default location. If the value is null, implementations may use their own algorithm for determining a default location.

Parameters

center

the LatLng value to use a the center


fun setCenter(@Size(value = 2) vararg center: Float)

Deprecated

This function is not type safe

Replace with

setCenter(center:LatLng)

The first value is the longitude, the second is latitude (both in WGS:84 values), Longitude and latitude MUST be within the specified bounds. Implementations can use this value to set the default location. If the value is null, implementations may use their own algorithm for determining a default location.

Parameters

center

the Float array to set as lattitude, longitude