Commit 89635b83 authored by 郭铭瑶's avatar 郭铭瑶 🤘

更新地图

parent 13d74aeb
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -44,18 +44,22 @@ export default function useSwitchMap(map: any) {
switch (type) {
case 'work1':
show && showPoints({ gridId: store.state.workArea1.id })
map.value.addBoundary({ name: '第一工作站', color: 'rgba(0,0,0,0)' })
map.value.focus(...store.state.workArea1.center, 8)
break
case 'work2':
show && showPoints({ gridId: store.state.workArea2.id })
map.value.addBoundary({ name: '第二工作站', color: 'rgba(0,0,0,0)' })
map.value.focus(...store.state.workArea2.center, 8)
break
case 'work3':
show && showPoints({ gridId: store.state.workArea3.id })
map.value.addBoundary({ name: '第三工作站', color: 'rgba(0,0,0,0)' })
map.value.focus(...store.state.workArea3.center, 8)
break
case 'street':
show && showPoints()
map.value.addBoundary({ name: '南京东路街道', color: 'rgba(0,0,0,0)' })
map.value.focus(207.9006154792994, 71.67111885454233, 8)
break
default:
......@@ -71,7 +75,6 @@ export default function useSwitchMap(map: any) {
}
const handleMapComplete = async () => {
map.value.addBoundary({ name: '南京东路街道', color: 'rgba(0,0,0,0)' })
setPoints(curViewType.value)
if (curMapType.value === '3D') {
if (curViewType.value === 'work1') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment