關於com.google.android.maps.MyLocationOverlay 問題
MapView mapview = (MapView) findViewById(R.id.map_mymap);
mapview.setClickable(true);
mapview.setEnabled(true);
mapview.setBuiltInZoomControls(true);
MapController controller = mapview.getController();
controller.setZoom(16);
MyLocationOverlay myoverlay = new MyLocationOverlay(this,mapview);
myoverlay.enableMyLocation();
mapview.getOverlays().add(myoverlay);
這個MyLocationOverlay 加上去一點作用也沒有。
照官方文檔上講應該至少會給我畫一個 藍色的小圓點出來呀,什麼都沒有?
Draw the "my location" dot. By default, draws an animated "blue dot" asset, possibly surrounded by an outlining blue disk to represent accuracy. Also, if the user's position moves near the edge of the screen, and we've been given a MapController in our constructor, we'll scroll to recenter the new reading.
難道要我重寫 MyLocationOverlay 類嗎?
要是這樣的話,那跟 重寫 ItemizedOverlay 有什麼區別啊。鬱悶中。。。。
...全文
相关推荐
android开发培训实现GPS定位服务
看了可以对gps定位有一定了解,但是距离实现功能还不够,还需看更多的资料
android开发培训实现GPS定位服务.docx
android开发培训实现GPS定位服务.docx
《模式识别与数据挖掘》配套PPT课件
《模式识别与数据挖掘》配套PPT课件
科技成果转化项目进场交易前,评估备案环节需要准备哪些材料?_8.docx
科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。
人工智能通识教育(中职版)课程标准+PPT课件+部分素材+电子活页+在线考核
人工智能通识教育(中职版)课程标准+PPT课件+部分素材+电子活页+在线考核


