Customize marker of myLocation Google Maps v2 Android

对着背影说爱祢 提交于 2019-12-01 07:54:16

问题


I'm developing an android application that uses google maps v2. But i have a problem. I want to customize blue dot point(marker) of myLocation that google map gives us. Somebody can tell me how to customize this?? I want to change blue marker for an image and put a info window associated to marker.

Thanks. Regards.


回答1:


As of version 3.1.36 of the API v2, the blue dot cannot be changed.

I suggest not enabling the blue dot and instead using LocationClient and the location data to display normal Marker (optionally with a Circle for accuracy). Every time you get a Location object, just update Marker position.



来源:https://stackoverflow.com/questions/17003362/customize-marker-of-mylocation-google-maps-v2-android

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