hookehuyr

调整建筑导航功能

1 /* 1 /*
2 * @Date: 2023-07-10 16:14:10 2 * @Date: 2023-07-10 16:14:10
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-07-18 16:33:08 4 + * @LastEditTime: 2023-07-19 14:35:12
5 * @FilePath: /map-demo/src/common/members.js 5 * @FilePath: /map-demo/src/common/members.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -16,7 +16,7 @@ const testInfo = { ...@@ -16,7 +16,7 @@ const testInfo = {
16 { 16 {
17 name: '义工', 17 name: '义工',
18 position: [120.587721, 31.31423], 18 position: [120.587721, 31.31423],
19 - icon: 'https://cdn.ipadbiz.cn/xys/map/icon/%E4%B9%89%E5%B7%A5@2x.png', 19 + icon: 'https://cdn.ipadbiz.cn/xys/map/icon/%E4%B9%89%E5%B7%A51%20@2x.png',
20 details: [ 20 details: [
21 { 21 {
22 id: '0', 22 id: '0',
......
1 +const testInfo = [
2 + {
3 + id: 0,
4 + path: [
5 + [120.587882, 31.312884],
6 + [120.588164, 31.31305],
7 + [120.587823, 31.313276],
8 + [120.587811, 31.313508],
9 + [120.5875, 31.31407],
10 + [120.587103, 31.314234],
11 + [120.586912, 31.314195],
12 + [120.586812, 31.314049],
13 + ],
14 + distance: '',
15 + },
16 + {
17 + id: 1,
18 + path: [
19 + [120.587882, 31.312884],
20 + [120.588164, 31.31305],
21 + [120.587823, 31.313276],
22 + [120.587811, 31.313508],
23 + [120.5875, 31.31407],
24 + [120.58769, 31.314535],
25 + [120.587352, 31.314496],
26 + [120.587176, 31.314839],
27 + [120.587113, 31.314473],
28 + [120.586966, 31.314526],
29 + [120.58681, 31.314981],
30 + [120.58653, 31.315118],
31 + [120.586157, 31.315011],
32 + ],
33 + distance: '',
34 + },
35 + {
36 + id: 2,
37 + path: [
38 + [120.587882, 31.312884],
39 + [120.588164, 31.31305],
40 + [120.587823, 31.313276],
41 + [120.587811, 31.313508],
42 + [120.587985, 31.31411],
43 + [120.58769, 31.314535],
44 + [120.58798, 31.314679],
45 + [120.58791, 31.314799],
46 + [120.587295, 31.315548],
47 + [120.587574, 31.315582],
48 + [120.587853, 31.315603],
49 + ],
50 + distance: '',
51 + },
52 +];
53 +
54 +// 照壁[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];
55 +// 照壁[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];
56 +// 照壁[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];
57 +export default testInfo;
1 /* 1 /*
2 - * @Date: 2023-07-10 16:14:10 2 + * @Date: 2023-07-18 09:57:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-07-19 11:01:52 4 + * @LastEditTime: 2023-07-19 14:57:03
5 * @FilePath: /map-demo/src/common/yard.js 5 * @FilePath: /map-demo/src/common/yard.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -9,8 +9,8 @@ const testInfo = { ...@@ -9,8 +9,8 @@ const testInfo = {
9 id: 'yard', 9 id: 'yard',
10 name: '场地', 10 name: '场地',
11 icon: [ 11 icon: [
12 - 'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B002@2x.png', 12 + 'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B0021@2x.png',
13 - 'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B001@2x.png', 13 + 'https://cdn.ipadbiz.cn/xys/map/icon/%E5%9C%BA%E5%9C%B0011@2x.png',
14 ], 14 ],
15 list: [ 15 list: [
16 { 16 {
......
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
254 }, 254 },
255 goToLocation () { 255 goToLocation () {
256 // this.$emit('onLocation', this.info.position) 256 // this.$emit('onLocation', this.info.position)
257 - this.$emit('onLocation', this.info.path) 257 + this.$emit('onLocation', this.info.position)
258 } 258 }
259 } 259 }
260 } 260 }
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
98 }, 98 },
99 goToLocation() { 99 goToLocation() {
100 // this.$emit('onLocation', this.info.position) 100 // this.$emit('onLocation', this.info.position)
101 - this.$emit('onLocation', this.info.path) 101 + this.$emit('onLocation', this.info.position)
102 } 102 }
103 } 103 }
104 } 104 }
......
...@@ -163,7 +163,9 @@ export default { ...@@ -163,7 +163,9 @@ export default {
163 console.warn(this.yard_info); 163 console.warn(this.yard_info);
164 }, 164 },
165 goToOrder () {}, 165 goToOrder () {},
166 - goToLocation () {}, 166 + goToLocation () {
167 + this.$emit('onLocation', this.info.position)
168 + },
167 onClose () { 169 onClose () {
168 window.devicePixelRatio = 1; 170 window.devicePixelRatio = 1;
169 }, 171 },
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.