Merge pull request #52 from oliverkirsch/main

Attempt to fix closeclick issue in InfoWindow
This commit is contained in:
Nathan A. Paludo
2023-02-24 09:04:05 -03:00
committed by GitHub

View File

@@ -67,14 +67,16 @@ export default buildComponent({
this.$infoWindowObject.close()
if (this.opened) {
this.$infoWindowObject.open(this.$map, this.$markerObject)
} else {
this.$emit('closeclick')
}
},
},
afterCreate() {
this._openInfoWindow()
this.$infoWindowObject.addListener('closeclick', () => {
this.$emit('closeclick')
this.$infoWindowObject.open(this.$map, this.$markerObject)
})
this.$watch('opened', () => {
this._openInfoWindow()
})