15

I am using latest Google Maps API. My problem goes like this:

I want to remove the MyLocation button (The blue dot/arrow) WITHOUT disabling MyLocation layer.

if I use this code:

googleMap.getUiSettings().setMyLocationButtonEnabled(false);

It doesn't work, unless I add:

googleMap().setMyLocationEnabled(false);

but I want to keep it true. any suggestions?

Bryce Thomas
  • 10,479
  • 26
  • 77
  • 126
user2745814
  • 259
  • 1
  • 2
  • 9

1 Answers1

12

Google Map Doc says You can disable the button from appearing altogether by calling

UiSettings.setMyLocationButtonEnabled(boolean true/false)

Chintan Khetiya
  • 15,962
  • 9
  • 47
  • 85