hookehuyr

fix

<!--
* @Date: 2024-09-15 22:08:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-20 11:36:43
* @LastEditTime: 2024-09-20 15:56:20
* @FilePath: /map-demo/src/views/bieyuan/info.vue
* @Description: 文件描述
-->
......@@ -177,7 +177,7 @@ const goTo = () => { // 打开标记地图显示
})
} else { // 地图页
//
// emit("closeFloat", false);
emit("closeFloat", false);
//
emit("route", 'marker_id');
}
......
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-20 11:51:29
* @LastEditTime: 2024-09-20 16:14:21
* @FilePath: /map-demo/src/views/bieyuan/map.vue
* @Description: 公众地图主体页面
-->
......@@ -363,11 +363,10 @@ export default {
});
this.map.add(this.markerSum);
//
// setTimeout(() => {
// // 获取定位打标记
// this.setLocation();
// }, 1000);
//
setTimeout(() => {
// 获取定位打标记
this.setLocation();
}, 1000);
},
isPointInRing() { // 是否在景区范围
let isPointInRing = AMap.GeometryUtil.isPointInRing([this.current_lng, this.current_lat], [
......@@ -526,7 +525,6 @@ export default {
// 只显示相应区域,移动会回到选定范围
this.lockMapBounds()
},
// 限制地图范围
lockMapBounds() {
......