Sampath Kumar
Sampath Kumar

Reputation: 4463

Android how to remove gps update icon from map?

I am using google map v2 and using this line of code to enable my current location

 googleMap.setMyLocationEnabled(true);

I am getting blue icon to my current location but i unable to hide the locator icon appear on right top of frame, i want to hide this one. Already i am showing filter icons there so this get disturb by locator icon.

Upvotes: 1

Views: 2283

Answers (2)

Emil Adz
Emil Adz

Reputation: 41099

If you are using this method: googleMap.setMyLocationEnabled(true); and basically you are adding the you Google Maps API V2 the functionality that will allow it users to locate them selves by pressing this button in the upper-right corner.

you can disable and remove this button by simply setting it to false, but this will remove the functionality as well and you will have to develop it on your own using a LocationListener.

Upvotes: 0

Renan Bandeira
Renan Bandeira

Reputation: 3268

Try using

map.getUiSettings().setMyLocationButtonEnabled(false);

Upvotes: 8

Related Questions