求教高德地图JS api 拖拽导航如何获得路径信息
不是小77 2014-10-09 04:24:09 不知道怎么去获得路径的信息
var path = [];
path.push(new AMap.LngLat(120.125973,30.30392));
path.push(new AMap.LngLat(120.108656,30.330712));
path.push(new AMap.LngLat(120.107164,30.332901));
mapObj.plugin("AMap.DragRoute",function(){
route = new AMap.DragRoute(mapObj, path, AMap.DrivingPolicy.LEAST_FEE); //构造拖拽导航类
//AMap.event.addListener(MDrive,"complete",driving_routeCallBack);
//MDrive.search(start_xy,end_xy);
route.search(); //查询导航路径并开启拖拽导航