Disable center button in MyLocation at Google Map API V2

后端 未结 3 1748
忘掉有多难
忘掉有多难 2020-12-14 01:05

I searched a lot on the web, but I haven\'t found anything which answered my question. When I enable MyLocation with

gmap.setMyLocationEnabled(true)<

3条回答
  •  天命终不由人
    2020-12-14 01:32

    After calling the following methods on your GoogleMap object:

    map.setMyLocationEnabled(true);
    map.getUiSettings().setMyLocationButtonEnabled(false);
    

    you should see the current location indicator (the blue circle), but no control to center the map on that location.

提交回复
热议问题