自myLocation谷歌地图Android版V2的标志 [英] Customize marker of myLocation Google Maps v2 Android

查看:192
本文介绍了自myLocation谷歌地图Android版V2的标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用谷歌地图V2 Android应用程序。但我有一个问题。我想自定义myLocation的蓝色圆点点(标志),谷歌地图给我们。有人能告诉我如何自定义此?我想改变的蓝色标记的图像,并把相关联的标记的信息窗口。

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.

推荐答案

作为的API V2的3.1.36版本,蓝点不能改变。

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

我建议不要使蓝点,而是使用 LocationClient 和位置数据显示正常标记(可选以圆形的准确性)。每当你收到了位置对象,只需更新标记位置。

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.

这篇关于自myLocation谷歌地图Android版V2的标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆