Showing
2 changed files
with
7 additions
and
9 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-15 22:08:49 | 2 | * @Date: 2024-09-15 22:08:49 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-09-20 11:36:43 | 4 | + * @LastEditTime: 2024-09-20 15:56:20 |
| 5 | * @FilePath: /map-demo/src/views/bieyuan/info.vue | 5 | * @FilePath: /map-demo/src/views/bieyuan/info.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -177,7 +177,7 @@ const goTo = () => { // 打开标记地图显示 | ... | @@ -177,7 +177,7 @@ const goTo = () => { // 打开标记地图显示 |
| 177 | }) | 177 | }) |
| 178 | } else { // 地图页 | 178 | } else { // 地图页 |
| 179 | // | 179 | // |
| 180 | - // emit("closeFloat", false); | 180 | + emit("closeFloat", false); |
| 181 | // | 181 | // |
| 182 | emit("route", 'marker_id'); | 182 | emit("route", 'marker_id'); |
| 183 | } | 183 | } | ... | ... |
| 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-20 11:51:29 | 4 | + * @LastEditTime: 2024-09-20 16:14:21 |
| 5 | * @FilePath: /map-demo/src/views/bieyuan/map.vue | 5 | * @FilePath: /map-demo/src/views/bieyuan/map.vue |
| 6 | * @Description: 公众地图主体页面 | 6 | * @Description: 公众地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -363,11 +363,10 @@ export default { | ... | @@ -363,11 +363,10 @@ export default { |
| 363 | }); | 363 | }); |
| 364 | this.map.add(this.markerSum); | 364 | this.map.add(this.markerSum); |
| 365 | // | 365 | // |
| 366 | - // setTimeout(() => { | 366 | + setTimeout(() => { |
| 367 | - // // 获取定位打标记 | 367 | + // 获取定位打标记 |
| 368 | - // this.setLocation(); | 368 | + this.setLocation(); |
| 369 | - // }, 1000); | 369 | + }, 1000); |
| 370 | - // | ||
| 371 | }, | 370 | }, |
| 372 | isPointInRing() { // 是否在景区范围 | 371 | isPointInRing() { // 是否在景区范围 |
| 373 | let isPointInRing = AMap.GeometryUtil.isPointInRing([this.current_lng, this.current_lat], [ | 372 | let isPointInRing = AMap.GeometryUtil.isPointInRing([this.current_lng, this.current_lat], [ |
| ... | @@ -526,7 +525,6 @@ export default { | ... | @@ -526,7 +525,6 @@ export default { |
| 526 | 525 | ||
| 527 | // 只显示相应区域,移动会回到选定范围 | 526 | // 只显示相应区域,移动会回到选定范围 |
| 528 | this.lockMapBounds() | 527 | this.lockMapBounds() |
| 529 | - | ||
| 530 | }, | 528 | }, |
| 531 | // 限制地图范围 | 529 | // 限制地图范围 |
| 532 | lockMapBounds() { | 530 | lockMapBounds() { | ... | ... |
-
Please register or login to post a comment