찾다

 >  Q&A  >  본문

android 百度地图怎么重定位

首次打开地图定位成功后,用户把地图滑倒了别的地方,怎么能让地图重新回到用户所在的位置呢?百度地图官方App可以做到,在左下角。但是没有找到相关API。

阿神阿神2852일 전908

모든 응답(2)나는 대답할 것이다

  • ringa_lee

    ringa_lee2017-04-17 16:03:59

    LatLng point = new LatLng(myLatitude, myLongitude);//BDLocation을 통해 위도와 경도를 얻을 수 있습니다
    mBaiduMap.setMapStatus(MapStatusUpdateFactory.newLatLng(point));

    회신하다
    0
  • PHPz

    PHPz2017-04-17 16:03:59

    Positioning API는 사용자의 현재 위치 좌표 지점인 mapView.getController().animateTo(point)를 가져옵니다.

    회신하다
    0
  • 취소회신하다