Commit 82dfa03a authored by 黄奎's avatar 黄奎

页面修改

parent 8d4f1161
......@@ -143,7 +143,8 @@
}
var poly = new google.maps.Polyline(polyOptions);
poly.setMap(_this.map); // 装载
_this.map.setCenter(new google.maps.LatLng(lat,lng));
_this.map.setZoom(9);
console.log(waypoints,'waypoints');
/* 循环标出所有坐标 */
for (var i = 0; i < waypoints.length; i++) {
......@@ -182,6 +183,7 @@
scaledSize: new google.maps.Size(35, 45),
}
}
let marker = new MarkerWithLabel({
position: new google.maps.LatLng(loc[0], loc[1]),
icon: image, //标记自定义图标
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment