如何在谷歌地图等Android应用中显示蓝色箭头?

时间:2013-06-11 14:45:24

标签: google-maps google-maps-android-api-2 android-location compass-geolocation

如何为我自己的应用程序(包含地图)实现Android版Google地图应用程序(下图)?

更新

看来我可以根据this使用MyLocationOverlay + MapView实现我的目标。但是,在我的搜索之后,如何使MyLotionOverlay与MapFragment和Google Maps Android API v2(我正在使用)配合使用还不是很清楚。

此外,似乎我可以获得GoogleMap类的蓝色气泡setMyLocationEnabled(true)。
箭怎么样?

更新

我确实只在很长一段时间内看到了箭头,并且在我的应用程序实际上它根本没有响应我的目标变化。现在我更加困惑的是发生了什么。 任何想法,任何人?

我现在有什么:
enter image description here

我想要达到的蓝色箭头如下:
enter image description here

0 个答案:

没有答案