var map = new BMap.Map("allmap"); var start = new BMap.Point(114.02597366,22.54605355); var end = new BMap.Point(114.22597366, 22.59605355); var driving = new BMap.DrivingRoute(map, {
renderOptions: {
map: map,
autoViewport: true,
onMarkersSet:function(routes) {
map.removeOverlay(routes[0].marker); //删除起点
map.removeOverlay(routes[1].marker);//删除终点
}
}
});
driving.search(start, end);\为什么我这边执行了清楚操作没用呢?
添加回答
举报
0/150
提交
取消