Android: Google Map - Show Map Toolbar Always On Download Map

enter image description here

Is it always possible to show MapToolbar on a map? In fact, when I click on the marker info window, I can see the direction and map button. But I want both of these buttons to display by default when the map loads.

To enable the map toolbar, I do:

myMap.getUiSettings().setMapToolbarEnabled(true); 
+5
source share
1 answer

your code is correct, but you need to change a little if you want to display the google map toolbar in your mapview, you should use a light map ** use this in your java class

  googleMap.getUiSettings().setMapToolbarEnabled(true); 

** use this in your xml

  map:mapType="normal" map:liteMode="true" 
0
source

Source: https://habr.com/ru/post/1259802/


All Articles