Showing
1 changed file
with
6 additions
and
2 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: 2024-03-21 17:37:22 | 4 | + * @LastEditTime: 2024-03-21 17:45:05 |
| 5 | * @FilePath: /map-demo/src/views/tools.vue | 5 | * @FilePath: /map-demo/src/views/tools.vue |
| 6 | * @Description: 公众地图主体页面 | 6 | * @Description: 公众地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -11,7 +11,8 @@ | ... | @@ -11,7 +11,8 @@ |
| 11 | <div style="position: fixed; display: flex;background-color: #FFF; align-items: center; padding: 0.5rem 1rem;"> | 11 | <div style="position: fixed; display: flex;background-color: #FFF; align-items: center; padding: 0.5rem 1rem;"> |
| 12 | <van-field v-model="filter_lng" label="经度" placeholder="请输入经度" /> | 12 | <van-field v-model="filter_lng" label="经度" placeholder="请输入经度" /> |
| 13 | <van-field v-model="filter_lat" label="纬度" placeholder="请输入纬度" /> | 13 | <van-field v-model="filter_lat" label="纬度" placeholder="请输入纬度" /> |
| 14 | - <van-button @click="handleQuery" type="primary" block size="small" style="width: 10rem;">查询</van-button> | 14 | + <van-button @click="queryLngLat" type="primary" block size="small" style="width: 10rem;">坐标查询</van-button> |
| 15 | + <van-button @click="handleQuery" type="primary" block size="small" style="width: 10rem; margin-left: 1rem;">快速定位</van-button> | ||
| 15 | </div> | 16 | </div> |
| 16 | <!-- <div class="nav-bar-wrapper"> | 17 | <!-- <div class="nav-bar-wrapper"> |
| 17 | <div class="hideScrollBar nav-bar-content"> | 18 | <div class="hideScrollBar nav-bar-content"> |
| ... | @@ -1171,6 +1172,9 @@ export default { | ... | @@ -1171,6 +1172,9 @@ export default { |
| 1171 | handleQuery () { | 1172 | handleQuery () { |
| 1172 | this.map.setZoomAndCenter(this.zoom, [this.filter_lng, this.filter_lat]); | 1173 | this.map.setZoomAndCenter(this.zoom, [this.filter_lng, this.filter_lat]); |
| 1173 | }, | 1174 | }, |
| 1175 | + queryLngLat () { | ||
| 1176 | + window.open('https://lbs.amap.com/tools/picker') | ||
| 1177 | + } | ||
| 1174 | } | 1178 | } |
| 1175 | } | 1179 | } |
| 1176 | </script> | 1180 | </script> | ... | ... |
-
Please register or login to post a comment