开发者

MyLocationOverlay change the marker to the Google Maps default

I'm investigating MapActivities, and what I'm attempting to do is to change the default marker of MyLocationOverlay from the default circle to the marker that google maps uses (the blue arrow head) Is there any easy way of doing that? thanks in advance Here is an image with the current default maker http://blogs.conchango.com/photos/conchango_bloggers/images/138开发者_开发知识库78/original.aspx


You have to draw the circle by yourself using onDraw() method of subclass of Overlay. Here is a Draw A Circle On Android MapView post how to do that.

And when talking about blue arrow head There is a list of drawable which are packaged in Android.jar. You can access the using their ids, (if they are public) something like:

android.R.any_id

Have a look at this page. specifically at ic_maps_indicator_current_position

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜