Commit 8bc0f040 authored by zhengke's avatar zhengke

parent 61cf8e61
...@@ -170,15 +170,15 @@ ...@@ -170,15 +170,15 @@
} }
}); });
let infowindow = new google.maps.InfoWindow({ // let infowindow = new google.maps.InfoWindow({
content: '<div>' + waypoints[i].name + '</div>', // content: '<div>' + waypoints[i].name + '</div>',
size: new google.maps.Size(50, 50) // size: new google.maps.Size(50, 50)
}); // });
infowindow.open(_this.map, marker); // infowindow.open(_this.map, marker);
marker.addListener('click', function () { // marker.addListener('click', function () {
infowindow.close(); // infowindow.close();
}) // })
if (type == 3 || type == 2) { if (type == 3 || type == 2) {
marker.labelContent = '' marker.labelContent = ''
......
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