hookehuyr

fix

1 <!-- 1 <!--
2 * @Date: 2023-05-19 14:54:27 2 * @Date: 2023-05-19 14:54:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-09-12 10:46:54 4 + * @LastEditTime: 2024-09-12 10:49:21
5 * @FilePath: /map-demo/src/views/index.vue 5 * @FilePath: /map-demo/src/views/index.vue
6 * @Description: 公众地图主体页面 6 * @Description: 公众地图主体页面
7 --> 7 -->
...@@ -1107,6 +1107,7 @@ export default { ...@@ -1107,6 +1107,7 @@ export default {
1107 // } 1107 // }
1108 // 测试 1108 // 测试
1109 this.closeInfoWindow(); // 关闭弹框 1109 this.closeInfoWindow(); // 关闭弹框
1110 + this.onClose(); // 关闭弹框
1110 // this.setWalkRoute({ lng: 120.59014, lat: 31.310306 }, { lng: position[0], lat: position[1] }); 1111 // this.setWalkRoute({ lng: 120.59014, lat: 31.310306 }, { lng: position[0], lat: position[1] });
1111 if (this.current_route) { // 清除前一条步行导航 1112 if (this.current_route) { // 清除前一条步行导航
1112 this.map.remove([this.current_route]); // 删除地图折线 1113 this.map.remove([this.current_route]); // 删除地图折线
......