76.10 Changing the Map Type
The type of map displayed can be modified dynamically by making a call to the setMapType() method of the corresponding GoogleMap object, passing through one of the following values:
·GoogleMap.MAP_TYPE_NONE – An empty grid with no mapping tiles displayed.
·GoogleMap.MAP_TYPE_NORMAL – The standard view consisting of the classic road map.
·GoogleMap.MAP_TYPE_SATELLITE – Displays the satellite imagery of the map region.
·GoogleMap.MAP_TYPE_HYBRID – Displays satellite imagery with the road map superimposed.
·GoogleMap.MAP_TYPE_TERRAIN – Displays topographical information such as contour lines and colors.
The following code change to the onMapReady() method, for example, switches a map to Satellite mode:
.
.
if (mMap != null) {
int permission = ContextCompat.checkSelfPermission(
...