如何让谷歌默认的地图标记来重新present用户的当前位置 [英] how to get default google map marker to represent user's current location

查看:189
本文介绍了如何让谷歌默认的地图标记来重新present用户的当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一个图形页面在我的Andr​​oid应用程序,并重新present用户的当前位置我使用了一个自定义图像。但现在我想以取代谷歌默认的地图标记的自定义图像(如:蓝色脉冲点或蓝色箭头/ beackon)。

i am using a mapview in my android application and to represent user's current location i have used a custom image. But now i want to replace that custom image by google default map marker(for eg. a blue pulsing dot or blue arrowhead/beackon).

凸轮有人请帮助我....!

cam somebody please help me....!!

推荐答案

使用enableMyLocation()在MyLocationOverlay类:

use enableMyLocation() in MyLocationOverlay class:

MyLocationOverlay mMyLocationOverlay = new MyLocationOverlay(this,mapView); 
mMyLocationOverlay.enableMyLocation(); 
mapView.getOverlays().add(mMyLocationOverlay); 

这篇关于如何让谷歌默认的地图标记来重新present用户的当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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