| src/components/map/index.vue | ●●●●● patch | view | raw | blame | history |
src/components/map/index.vue
@@ -292,6 +292,14 @@ } // 注册事件 // 使用示例 // this.$EventBus.emit('mapAddLayer', { // layerName: 'housingEstateLayer', // type: 'VectorLayer' // }) this.$EventBus.on('mapAddLayer', (params) => { that.mapAddLayer(params.layerName, params.type) })