New Features
onMapReady()
callback which you can set by calling MapView.getMapAsync()
or MapFragment.getMapAsync()
. The onMapReady()
method is called when the map is ready to be used, and provides a non-null instance of GoogleMap
. This means that you no longer need to check for a non-null map before using the map. See the guide to adding a map.StreetViewPanoramaView.getStreetViewPanoramaAsync()
orStreetViewPanoramaFragment.getStreetViewPanoramaAsync()
to get a ready-to-use Street View panorama. See the documentation.Resolved Issues
GoogleMap.CancelableCallback()
now behaves correctly when animating/moving the camera. (Issue 5208)LatLngBounds
are now calculated correctly in landscape mode. (Issue 5285)Notes
getMap()
is deprecated in favour of the new getMapAsync()
, described above. Similarly, getStreetViewPanorama()
is deprecated in favor of the new getStreetViewPanoramaAsync()
.UiSettings.setZoomControlsEnabled()
.