# add test positions
This commit is contained in:
parent
db00d3e054
commit
15dced5e76
|
@ -32,16 +32,36 @@ export default {
|
||||||
flag: false,
|
flag: false,
|
||||||
defaultPositions: [
|
defaultPositions: [
|
||||||
{
|
{
|
||||||
name: '上海',
|
name: '海洋公园',
|
||||||
position: [121.59996, 31.197646]
|
position: [114.186739, 22.250872]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '古镇',
|
name: '香港大学',
|
||||||
position: [113.203698459202, 22.649173177084]
|
position: [114.143472, 22.284105]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '南丫北容村',
|
||||||
|
position: [114.126261, 22.22863]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '大帽山',
|
||||||
|
position: [114.124105, 22.401088]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '恒生管理学院',
|
||||||
|
position: [114.223565, 22.380771]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '盐田',
|
||||||
|
position: [114.223565, 22.380771]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '清水',
|
||||||
|
position: [114.312821, 22.301076]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
zoom: 16,
|
zoom: 16,
|
||||||
center: [113.203698459202, 22.649173177084],
|
center: [114.186739, 22.250872],
|
||||||
markers: [],
|
markers: [],
|
||||||
plugin: ['ToolBar', {
|
plugin: ['ToolBar', {
|
||||||
pName: 'MapType',
|
pName: 'MapType',
|
||||||
|
@ -74,11 +94,6 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
'$route'(to, from) {
|
|
||||||
console.log(from)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
created() {
|
||||||
const mapClick = this.$store.getters.mapClick
|
const mapClick = this.$store.getters.mapClick
|
||||||
if (mapClick) {
|
if (mapClick) {
|
||||||
|
@ -94,6 +109,7 @@ export default {
|
||||||
entry.draggable = false
|
entry.draggable = false
|
||||||
this.markers.push(entry)
|
this.markers.push(entry)
|
||||||
})
|
})
|
||||||
|
this.zoom = 11
|
||||||
this.flag = true
|
this.flag = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +118,7 @@ export default {
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.amap-wrapper {
|
.amap-wrapper {
|
||||||
width: 100%;
|
width: 90%;
|
||||||
height: 80%;
|
height: 80%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in New Issue