How to display my location on Google Maps for Android API v2

前端 未结 6 2019
抹茶落季
抹茶落季 2020-12-07 15:03

I\'ve looked high and low for an answer on this, and no one, in any forum question has been able to help. I\'ve searched through the tutorials. The API Guide says:

6条回答
  •  鱼传尺愫
    2020-12-07 15:30

    To show the "My Location" button you have to call

    map.getUiSettings().setMyLocationButtonEnabled(true);
    

    on your GoogleMap object.

提交回复
热议问题