How to hide current location in google map? [closed]

对着背影说爱祢 提交于 2019-12-06 17:12:36

问题


I have implemented google map in my project and i want to hide my current location marker and i need to show the button which allow to go my current location.

As the google provides current location button but i want to hide current location marker. I am attaching image the will more helps you in understanding the problem.


回答1:


You can disable it from with your Google Map instance (here called "map")

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


来源:https://stackoverflow.com/questions/29008384/how-to-hide-current-location-in-google-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!