guanqb
2023-03-31 ac19ae903dd740bdaf1499ae40ef4039fdb4e6ad
src/components/mapSearchBox/index.vue
@@ -94,6 +94,8 @@
        },
        clearSearchValue () {
            this.$store.commit('SET_MAPSEARCHPOPUP', false)
            this.$EventBus.$emit('mapRemoveLayer', {
                layerName: 'searchLayer',
                type: 'VectorLayer'
@@ -120,6 +122,7 @@
        },
        searchExtensivelyVlaClick (item) {
            this.$store.commit('SET_MAPSEARCHPOPUP', false)
            this.searchExtensivelyValBoxShow = false
            this.isClickValBox = true
@@ -133,17 +136,26 @@
                layerName: 'searchLayer',
                type: 'VectorLayer'
            })
            this.$EventBus.$emit('layerPointAdd', {
                layerName: 'searchLayer',
                type: 'label',
                params: {
                    lng: `${item.location.lng}`,
                    lat: `${item.location.lat}`,
                    alt: 1,
                    text: item.name,
                    fontColor: global.DC.Color.ORANGE,
                }
            this.$store.commit('SET_MAPSEARCHPOPUP', true)
            this.$store.commit('SET_MAPSEARCHPOPUPDATA', {
                ...item
            })
            var popup = new global.DC.DivForms(global.viewer, {
                domId: 'mapSearchPopup',
                position: [
                    global.DC.Transform.transformWGS84ToCartesian(
                        new global.DC.Position(
                            Number(item.location.lng),
                            Number(item.location.lat),
                            0
                        )
                    )
                ]
            })
            this.$EventBus.$emit('layerPointAdd', {
                layerName: 'searchLayer',
                type: "billboard",
@@ -158,6 +170,8 @@
    },
    destroyed () {
        this.$store.commit('SET_MAPSEARCHPOPUP', false)
        this.$EventBus.$emit('mapRemoveLayer', {
            layerName: 'searchLayer',
            type: 'VectorLayer'