hookehuyr

fix

<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-07-04 14:50:06
* @LastEditTime: 2023-07-04 15:09:26
* @FilePath: /map-demo/src/views/index.vue
* @Description: 地图主体页面
-->
......@@ -190,10 +190,7 @@ export default {
show_popup: false,
dialog_show: false,
dialog_text: '',
xys_lng: 120.587334,
xys_lat: 31.314823,
walk_route: '',
toolBar: '',
isActive: 0,
route_marker: [],
open_safe_route: true,
......@@ -237,7 +234,7 @@ export default {
// this.setMapBoundary();
// 使用之前都要再获取一下地址
this.getLocation()
// 打开贴片地图
// 设置贴片地图
this.setTitleLayer()
},
watch: {
......@@ -566,6 +563,7 @@ export default {
this.show_walk_route = true;
},
computedMapSource(x, y, z) { // 根据图层信息生成图层实际地址
// TODO:等待正式映射图层真实的地址
return `images/tiles/${z}/${x}_${y}.png`
},
setTitleLayer() { // 生成瓦片图
......