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-19 16:36:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7b8b636b4e8aa95eee9d3aca6228be354db1ec86
7b8b636b
1 parent
45b20416
调整建筑导航功能
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
9 deletions
src/common/members.js
src/common/my_router.js
src/common/yard.js
src/components/InfoWindow.vue
src/components/InfoWindowLite.vue
src/components/InfoWindowYard.vue
src/views/index.vue
src/views/inner.vue
src/common/members.js
View file @
7b8b636
/*
* @Date: 2023-07-10 16:14:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-07-1
8 16:33:08
* @LastEditTime: 2023-07-1
9 14:35:12
* @FilePath: /map-demo/src/common/members.js
* @Description: 文件描述
*/
...
...
@@ -16,7 +16,7 @@ const testInfo = {
{
name
:
'义工'
,
position
:
[
120.587721
,
31.31423
],
icon
:
'https://cdn.ipadbiz.cn/xys/map/icon/%E4%B9%89%E5%B7%A5@2x.png'
,
icon
:
'https://cdn.ipadbiz.cn/xys/map/icon/%E4%B9%89%E5%B7%A5
1%20
@2x.png'
,
details
:
[
{
id
:
'0'
,
...
...
src/common/my_router.js
0 → 100644
View file @
7b8b636
const
testInfo
=
[
{
id
:
0
,
path
:
[
[
120.587882
,
31.312884
],
[
120.588164
,
31.31305
],
[
120.587823
,
31.313276
],
[
120.587811
,
31.313508
],
[
120.5875
,
31.31407
],
[
120.587103
,
31.314234
],
[
120.586912
,
31.314195
],
[
120.586812
,
31.314049
],
],
distance
:
''
,
},
{
id
:
1
,
path
:
[
[
120.587882
,
31.312884
],
[
120.588164
,
31.31305
],
[
120.587823
,
31.313276
],
[
120.587811
,
31.313508
],
[
120.5875
,
31.31407
],
[
120.58769
,
31.314535
],
[
120.587352
,
31.314496
],
[
120.587176
,
31.314839
],
[
120.587113
,
31.314473
],
[
120.586966
,
31.314526
],
[
120.58681
,
31.314981
],
[
120.58653
,
31.315118
],
[
120.586157
,
31.315011
],
],
distance
:
''
,
},
{
id
:
2
,
path
:
[
[
120.587882
,
31.312884
],
[
120.588164
,
31.31305
],
[
120.587823
,
31.313276
],
[
120.587811
,
31.313508
],
[
120.587985
,
31.31411
],
[
120.58769
,
31.314535
],
[
120.58798
,
31.314679
],
[
120.58791
,
31.314799
],
[
120.587295
,
31.315548
],
[
120.587574
,
31.315582
],
[
120.587853
,
31.315603
],
],
distance
:
''
,
},
];
// 照壁[120.587882,31.312884]-双桥[120.588164,31.31305]-牌坊[120.587823,31.313276]-山门[120.587811,31.313508]-鼓楼[120.5875,31.31407]-公共厕所[120.587103,31.314234]-包子铺[120.586912,31.314195]-开水房[120.586812,31.314049];
// 照壁[120.587882,31.312884]-双桥[120.588164,31.31305]-牌坊[120.587823,31.313276]-山门[120.587811,31.313508]-鼓楼[120.5875,31.31407]-天王殿[120.58769,31.314535]-素食馆[120.587352,31.314496]-罗汉堂[120.587176,31.314839]-集云轩[120.587113,31.314473]-般若堂[120.586966,31.314526]-茶室[120.58681,31.314981]-湖心亭[120.58653,31.315118]-神鼋[120.586157,31.315011];
// 照壁[120.587882,31.312884]-双桥[120.588164,31.31305]-牌坊[120.587823,31.313276]-山门[120.587811,31.313508]-钟楼[120.587985,31.31411]-天王殿[120.58769,31.314535]-客堂、行政办公室[120.58798,31.314679]-观音殿[120.58791,31.314799]-大雄宝殿[,]-老念佛堂[120.587295,31.315548]-挂单寮[120.587574,31.315582]-地藏殿[120.587853,31.315603];
export
default
testInfo
;
src/common/yard.js
View file @
7b8b636
/*
* @Date: 2023-07-1
0 16:14:10
* @Date: 2023-07-1
8 09:57:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-07-19 1
1:01:52
* @LastEditTime: 2023-07-19 1
4:57:03
* @FilePath: /map-demo/src/common/yard.js
* @Description: 文件描述
*/
...
...
@@ -9,8 +9,8 @@ const testInfo = {
id
:
'yard'
,
name
:
'场地'
,
icon
:
[
'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B002@2x.png'
,
'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B001@2x.png'
,
'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B002
1
@2x.png'
,
'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B001
1
@2x.png'
,
],
list
:
[
{
...
...
src/components/InfoWindow.vue
View file @
7b8b636
...
...
@@ -254,7 +254,7 @@ export default {
},
goToLocation () {
// this.$emit('onLocation', this.info.position)
this.$emit('onLocation', this.info.p
ath
)
this.$emit('onLocation', this.info.p
osition
)
}
}
}
...
...
src/components/InfoWindowLite.vue
View file @
7b8b636
...
...
@@ -98,7 +98,7 @@ export default {
},
goToLocation() {
// this.$emit('onLocation', this.info.position)
this.$emit('onLocation', this.info.p
ath
)
this.$emit('onLocation', this.info.p
osition
)
}
}
}
...
...
src/components/InfoWindowYard.vue
View file @
7b8b636
...
...
@@ -163,7 +163,9 @@ export default {
console.warn(this.yard_info);
},
goToOrder () {},
goToLocation () {},
goToLocation () {
this.$emit('onLocation', this.info.position)
},
onClose () {
window.devicePixelRatio = 1;
},
...
...
src/views/index.vue
View file @
7b8b636
This diff is collapsed. Click to expand it.
src/views/inner.vue
View file @
7b8b636
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment