2
guanqb
2022-11-07 8eb05512019795e56747c4d29f58839444db2cce
2
2 files modified
4 ■■■■ changed files
src/components/map/index.vue 2 ●●● patch | view | raw | blame | history
src/views/home/index.vue 2 ●●● patch | view | raw | blame | history
src/components/map/index.vue
@@ -357,7 +357,7 @@
         * @param {*} type 图层类型
         */
        mapRemoveLayer (layerName, type) {
            if (type == 'VectorLayer') {
            if (type == 'VectorLayer' || type == 'ClusterLayer') {
                if (layersObjcect[layerName] && layersObjcect[layerName] != null) {
                    layersObjcect[layerName].remove()
                    layersObjcect[layerName] = null
src/views/home/index.vue
@@ -1498,7 +1498,7 @@
        this.$EventBus.$emit('mapRemoveLayer', {
            layerName: 'activityLayers',
            type: 'VectorLayer'
            type: 'ClusterLayer'
        })