标签:awr osi ++ line wro over on() play cti
我工作在离子离子谷歌地图应用程序和使用谷歌提供的本机和方向服务我甲型肝炎多个途径,使用以下代码:calculateAndDisplayRoute() {
var points = [];
this.directionsService.route({
origin: this.start,
destination: this.end,
travelMode: ‘DRIVING‘,
provideRouteAlternatives: true
}, (response, status) => {
if (status === ‘OK‘) {
var step = 1;
for(var j=0;j<response.routes.length;j++){
points=[]
for (var i = 0; i < response.routes[j].overview_path.length; i++) {
points.push(response.routes[j].overview_path[i].toJSON())
}
let position=points[20]
this.drawRoutePolyLine(points,j,position)
step=step+1
}
} else {
window.alert(‘Directions request failed due to ‘ + status);
}
});
} 帮我添加infowindow
如何添加infowindow距离和时间像谷歌地图的折线连接两个点?
标签:awr osi ++ line wro over on() play cti
原文地址:http://blog.51cto.com/14021402/2328556