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?
Google Map Doc says You can disable the button from appearing altogether by calling
UiSettings.setMyLocationButtonEnabled(boolean true/false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With