亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

道路數據主要指的是 xxxxx道、xxxx路、xxxx街 ?請問該怎么實現?

道路數據主要指的是 xxxxx道、xxxx路、xxxx街 ?請問該怎么實現?

慕少森 2022-12-16 17:13:01
Android中,也就是說java實現,在百度地圖定位位置后,怎么根據定位位置(可以有經緯度)獲取附近的道路數據
查看完整描述

1 回答

?
蕭十郎

TA貢獻1815條經驗 獲得超13個贊

要先設置代理的

self.mapView.delegate = self;
[self.mapView setShowsUserLocation:YES];

這樣以后你再看就可以在 - (void)mapViewDidStopLocatingUser:(BMKMapView *)mapView{} 監聽了

比如移動到當前位置:

//定位完成后,移動到當前位置
- (void)mapView:(BMKMapView *)mapView didUpdateUserLocation:(BMKUserLocation *)userLocation{
CLLocationCoordinate2Dcoor;
coor.latitude = self.mapView.userLocation.coordinate.latitude;
coor.longitude = self.mapView.userLocation.coordinate.longitude;
[self.mapViewsetCenterCoordinate:coor animated:YES];
}

查看完整回答
反對 回復 2022-12-18
  • 1 回答
  • 0 關注
  • 175 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號