Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-07-04 15:19:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc46f6b8f779a422f5675dc4a40bc42193c2bfbb
fc46f6b8
1 parent
6e901f12
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
src/views/index.vue
src/views/index.vue
View file @
fc46f6b
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-07-04 1
4:50:0
6
* @LastEditTime: 2023-07-04 1
5:09:2
6
* @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() { // 生成瓦片图
...
...
Please
register
or
login
to post a comment