Showing
1 changed file
with
6 additions
and
6 deletions
| 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: 2025-02-20 14:55:41 | 4 | + * @LastEditTime: 2025-03-05 17:52:15 |
| 5 | * @FilePath: /map-demo/src/views/by/map.vue | 5 | * @FilePath: /map-demo/src/views/by/map.vue |
| 6 | * @Description: 公众地图主体页面 | 6 | * @Description: 公众地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -573,10 +573,10 @@ export default { | ... | @@ -573,10 +573,10 @@ export default { |
| 573 | this.current_lng = GPS.gcj_encrypt(latitude, longitude).lon; | 573 | this.current_lng = GPS.gcj_encrypt(latitude, longitude).lon; |
| 574 | this.current_lat = GPS.gcj_encrypt(latitude, longitude).lat; | 574 | this.current_lat = GPS.gcj_encrypt(latitude, longitude).lat; |
| 575 | // 判断是否在范围内 | 575 | // 判断是否在范围内 |
| 576 | - if (!this.isPointInRing()) { | 576 | + // if (!this.isPointInRing()) { |
| 577 | - this.dialog_show = true; | 577 | + // this.dialog_show = true; |
| 578 | - this.dialog_text = '您不在景区范围内'; | 578 | + // this.dialog_text = '您不在景区范围内'; |
| 579 | - } else { | 579 | + // } else { |
| 580 | // 使用纠正偏移后的地址,打一个定位标记 | 580 | // 使用纠正偏移后的地址,打一个定位标记 |
| 581 | this.location_marker = new AMap.LabelMarker({ | 581 | this.location_marker = new AMap.LabelMarker({ |
| 582 | icon: { | 582 | icon: { |
| ... | @@ -589,7 +589,7 @@ export default { | ... | @@ -589,7 +589,7 @@ export default { |
| 589 | this.map.add(this.location_marker); | 589 | this.map.add(this.location_marker); |
| 590 | // 定位到当前位置中心 | 590 | // 定位到当前位置中心 |
| 591 | this.map.setZoomAndCenter(this.zoom, [this.current_lng, this.current_lat]); | 591 | this.map.setZoomAndCenter(this.zoom, [this.current_lng, this.current_lat]); |
| 592 | - } | 592 | + // } |
| 593 | }, | 593 | }, |
| 594 | complete: () => { | 594 | complete: () => { |
| 595 | // 获取失败 | 595 | // 获取失败 | ... | ... |
-
Please register or login to post a comment