課程
/移動開發(fā)
/Android
/百度地圖在Android中的使用
我的方向傳感器添加完后,箭頭不會跟著動
2016-04-25
源自:百度地圖在Android中的使用 1-3
正在回答
從百度開發(fā)向?qū)蠌?fù)制過來是這樣的
MyLocationData?data?=?new?MyLocationData.Builder()// ????????.direction(mCurrentX)// ????????.accuracy(location.getRadius())// ????????.latitude(location.getLatitude())// ????????//.direction(100).latitude(location.getLatitude()) ????????.longitude(location.getLongitude()).build(); mBaiDuMap.setMyLocationData(data); 去掉.direction(100)就好了
箭頭不會動
確定你的手機(jī)是否具備方向傳感器或者好壞
舉報
在Android應(yīng)用中玩轉(zhuǎn)百度地圖,由淺入深的帶領(lǐng)大家一步步學(xué)習(xí)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-09-15
從百度開發(fā)向?qū)蠌?fù)制過來是這樣的
2017-04-27
箭頭不會動
2016-08-31
確定你的手機(jī)是否具備方向傳感器或者好壞