shuishen
2022-04-29 4f55f7d94198eca8eba9ae6b85af19a07cac2f79
src/components/leftNav/index.vue
@@ -40,7 +40,8 @@
        ...mapGetters([
            'closeMapClick', // 关闭地图点击,防止新增标签误触
            'addIconsLayerIconPopup', // 传送关闭编辑窗口,刷新标签数据
            'calenderShow'
            'calenderShow',
            'twoOrThree'
        ])
    },
    data () {
@@ -137,6 +138,28 @@
                }
            },
            immediate: true
        },
        twoOrThree: {
            handler (newData, oldData) {
                if (newData == '三 维') {
                    for (const key in LeftNavLayer) {
                        if (LeftNavLayer[key] != null) {
                            LeftNavLayer[key].eachOverlay((item) => {
                                item.position = new global.DC.Position(Number(item.position.lng), Number(item.position.lat), 0)
                            })
                        }
                    }
                } else {
                    for (const key in LeftNavLayer) {
                        if (LeftNavLayer[key] != null) {
                            LeftNavLayer[key].eachOverlay((item) => {
                                item.position = new global.DC.Position(Number(item.position.lng), Number(item.position.lat), 150)
                            })
                        }
                    }
                }
            },
            immediate: true
        }
    },
    methods: {
@@ -155,7 +178,7 @@
                                ${item.mechanismname}
                            </div>
                            <div class="tag-angle-content">
                                <img src="https://map.hit.edu.cn/images/tarrow_xq.png">
                                <img src="/img/icon/tarrow_xq.png">
                            </div>
                        </div>
                    `
@@ -259,7 +282,7 @@
                                ${item.mechanismname}
                            </div>
                            <div class="tag-angle-content">
                                <img src="https://map.hit.edu.cn/images/tarrow_xq.png">
                                <img src="/img/icon/tarrow_xq.png">
                            </div>
                        </div>
                    `
@@ -291,7 +314,7 @@
                                 ${item.roadname}
                            </div>
                            <div  class="way-sign-box">
                                <img src="https://map.hit.edu.cn/images/roadsign3.png">
                                <img src="/img/icon/roadsign3.png">
                            </div>
                        </div>
                    `
@@ -449,10 +472,10 @@
                            </div>
                            <div class="park-sign-box">
                                <div>
                                    <img src="https://map.hit.edu.cn/images/p-biao.png" width="14" height="14" alt="${item.mechanismname}" title="${item.mechanismname}">
                                    <img src="/img/icon/p-biao.png" width="14" height="14" alt="${item.mechanismname}" title="${item.mechanismname}">
                                </div>
                                <div>
                                    <img src="https://map.hit.edu.cn/images/roadsign.png" width="5" height="21">
                                    <img src="/img/icon/roadsign.png" width="5" height="21">
                                </div>
                            </div>
                        </div>