Java – Android – disable the mylocation button on Google Maps
•
Java
See the English answer > disable center button in mylocation at Google map API V23
I want to delete the mylocation button (blue dot / arrow) with out to disable the mylocation layer
If I use this Code:
googleMap.getUiSettings().setMyLocationButtonEnabled(false);
It won't work unless I add:
googleMap().setMyLocationEnabled(false);
But I want to stay the same Any suggestions?
Solution
Google map doc says you can disable the display of this button by calling
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码