Reputation: 33573
I am using a Google Map in my Android app, but it has some unwanted behaviour. When I tap the map, it shows two icons, that you can use to switch to the web-version.
When I first create the map, it looks like this:
When I tap it, it shows these two buttons:
I want to disable that, how can I do that?
Upvotes: 0
Views: 47
Reputation: 38243
getMapAsync(new OnMapReadyCallback() {
@Override
public void onMapReady(GoogleMap map) {
UiSettings ui = map.getUiSettings();
ui.setMapToolbarEnabled(false);
}
});
Upvotes: 1
Reputation: 11759
You need to call UiSettings.setMapToolbarEnabled(false)
to disable that.
More info here: https://developers.google.com/maps/documentation/android-api/interactivity#toolbar
Upvotes: 1