Showing
1 changed file
with
6 additions
and
5 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:45:05 | 4 | + * @LastEditTime: 2024-03-22 15:25:02 |
| 5 | * @FilePath: /map-demo/src/views/tools.vue | 5 | * @FilePath: /map-demo/src/views/tools.vue |
| 6 | * @Description: 公众地图主体页面 | 6 | * @Description: 公众地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -11,8 +11,8 @@ | ... | @@ -11,8 +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="queryLngLat" type="primary" block size="small" style="width: 10rem;">坐标查询</van-button> | 14 | + <van-button @click="handleQuery" 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 | + <van-button @click="queryLngLat" type="warning" block size="small" style="width: 10rem; margin-left: 1rem;">坐标查询</van-button> |
| 16 | </div> | 16 | </div> |
| 17 | <!-- <div class="nav-bar-wrapper"> | 17 | <!-- <div class="nav-bar-wrapper"> |
| 18 | <div class="hideScrollBar nav-bar-content"> | 18 | <div class="hideScrollBar nav-bar-content"> |
| ... | @@ -328,6 +328,7 @@ export default { | ... | @@ -328,6 +328,7 @@ export default { |
| 328 | // rotateEnable: true, | 328 | // rotateEnable: true, |
| 329 | layers: [ | 329 | layers: [ |
| 330 | // new AMap.TileLayer.RoadNet(), | 330 | // new AMap.TileLayer.RoadNet(), |
| 331 | + new AMap.TileLayer.Satellite(), | ||
| 331 | ], | 332 | ], |
| 332 | features: ['bg', 'road'], // 设置地图上显示的元素种类 | 333 | features: ['bg', 'road'], // 设置地图上显示的元素种类 |
| 333 | animateEnable: false, // 地图平移过程中是否使用动画 | 334 | animateEnable: false, // 地图平移过程中是否使用动画 |
| ... | @@ -886,8 +887,8 @@ export default { | ... | @@ -886,8 +887,8 @@ export default { |
| 886 | 887 | ||
| 887 | var cxt = c.getContext("2d"); | 888 | var cxt = c.getContext("2d"); |
| 888 | cxt.font = "15px Verdana"; | 889 | cxt.font = "15px Verdana"; |
| 889 | - cxt.fillStyle = "#ff0000"; | 890 | + cxt.fillStyle = "#ff976a"; |
| 890 | - cxt.strokeStyle = "#FF0000"; | 891 | + cxt.strokeStyle = "#ff976a"; |
| 891 | cxt.strokeRect(0, 0, 256, 256); | 892 | cxt.strokeRect(0, 0, 256, 256); |
| 892 | cxt.fillText('(' + [x, y, z].join(',') + ')', 10, 30); | 893 | cxt.fillText('(' + [x, y, z].join(',') + ')', 10, 30); |
| 893 | 894 | ... | ... |
-
Please register or login to post a comment