Good day!
MapView
added to MapView
and three buttons to switch the map mode. In Activity
, onCreate
set to the initial view of the map display like this:
mapView.setSatellite(true);
But this is not suitable for changing the display by pressing the buttons, since there is only setTraffic
, setStreet
and setSatellite
.
I found the setMapType(int type)
method in which the type
can be MAP_TYPE_HYBRID
, MAP_TYPE_NORMAL
, MAP_TYPE_SATELLITE`, but I do not understand how to use it.
Tell me how to create your own controls that are responsible for changing the type of cards?