Android google maps marker disable navigation option Android google maps marker disable navigation option android android

Android google maps marker disable navigation option


This thing is called Map Toolbar. You can disable it by calling UiSettings.setMapToolbarEnabled(false):

GoogleMap map;....... //init mapmap.getUiSettings().setMapToolbarEnabled(false);


You can also define setMapToolbarEnabled() from the XML using the following property:

map:uiMapToolbar="false"


In kotlin you can do:

map.apply {   uiSettings.isMapToolbarEnabled = false}