hookehuyr

fix

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: 2023-07-04 14:50:06 4 + * @LastEditTime: 2023-07-04 15:09:26
5 * @FilePath: /map-demo/src/views/index.vue 5 * @FilePath: /map-demo/src/views/index.vue
6 * @Description: 地图主体页面 6 * @Description: 地图主体页面
7 --> 7 -->
...@@ -190,10 +190,7 @@ export default { ...@@ -190,10 +190,7 @@ export default {
190 show_popup: false, 190 show_popup: false,
191 dialog_show: false, 191 dialog_show: false,
192 dialog_text: '', 192 dialog_text: '',
193 - xys_lng: 120.587334,
194 - xys_lat: 31.314823,
195 walk_route: '', 193 walk_route: '',
196 - toolBar: '',
197 isActive: 0, 194 isActive: 0,
198 route_marker: [], 195 route_marker: [],
199 open_safe_route: true, 196 open_safe_route: true,
...@@ -237,7 +234,7 @@ export default { ...@@ -237,7 +234,7 @@ export default {
237 // this.setMapBoundary(); 234 // this.setMapBoundary();
238 // 使用之前都要再获取一下地址 235 // 使用之前都要再获取一下地址
239 this.getLocation() 236 this.getLocation()
240 - // 打开贴片地图 237 + // 设置贴片地图
241 this.setTitleLayer() 238 this.setTitleLayer()
242 }, 239 },
243 watch: { 240 watch: {
...@@ -566,6 +563,7 @@ export default { ...@@ -566,6 +563,7 @@ export default {
566 this.show_walk_route = true; 563 this.show_walk_route = true;
567 }, 564 },
568 computedMapSource(x, y, z) { // 根据图层信息生成图层实际地址 565 computedMapSource(x, y, z) { // 根据图层信息生成图层实际地址
566 + // TODO:等待正式映射图层真实的地址
569 return `images/tiles/${z}/${x}_${y}.png` 567 return `images/tiles/${z}/${x}_${y}.png`
570 }, 568 },
571 setTitleLayer() { // 生成瓦片图 569 setTitleLayer() { // 生成瓦片图
......