Merge pull request #52 from oliverkirsch/main
Attempt to fix closeclick issue in InfoWindow
This commit is contained in:
@@ -67,14 +67,16 @@ export default buildComponent({
|
|||||||
this.$infoWindowObject.close()
|
this.$infoWindowObject.close()
|
||||||
if (this.opened) {
|
if (this.opened) {
|
||||||
this.$infoWindowObject.open(this.$map, this.$markerObject)
|
this.$infoWindowObject.open(this.$map, this.$markerObject)
|
||||||
} else {
|
|
||||||
this.$emit('closeclick')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
afterCreate() {
|
afterCreate() {
|
||||||
this._openInfoWindow()
|
this._openInfoWindow()
|
||||||
|
this.$infoWindowObject.addListener('closeclick', () => {
|
||||||
|
this.$emit('closeclick')
|
||||||
|
this.$infoWindowObject.open(this.$map, this.$markerObject)
|
||||||
|
})
|
||||||
this.$watch('opened', () => {
|
this.$watch('opened', () => {
|
||||||
this._openInfoWindow()
|
this._openInfoWindow()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user