diegoazh / gmap-vue

A wrapper component for consuming Google Maps API built on top of Vue. Fork of the popular vue-google-maps plugin.
https://diegoazh.github.io/gmap-vue/
172 stars 51 forks source link

Bug: GvmInfoWindow components are not removed from the map (repeat) #327

Open Tuhtarov opened 4 months ago

Tuhtarov commented 4 months ago

Hi @diegoazh, I appreciate your work and look forward to your response. I made an example based on your project on stackblitz where you can clearly see that InfoWindow components are not deleted after they are removed from the data source. After clicking on the text in InfoWindow, check the log in the console. In theory, the marker and window should be deleted on the map together, but only the marker is deleted.

Originally posted by @Tuhtarov in https://github.com/diegoazh/gmap-vue/issues/323#issuecomment-2097371502

Describe the bug

GvmInfoWindow components are not deleted (not closed) in a vue template when the object responsible for rendering this component is deleted in a reactive variable.

Expected behavior

The marker and window should be removed from the map if the element responsible for drawing the marker and window was deleted in the data source.

Current behavior

Only the marker is removed, the window remains.

Desktop

OS: windows 10 Browser chrome (123.0.6312.123)

Versions

Node: v20.11.1 NPM: 10.2.4 VUE: 3.4.21 VITE: 5.2.0

Package manager

NPM

Plugin version

2.1.1

create-issue-branch[bot] commented 3 months ago

Branch issue-327-Bug_GvmInfoWindow_components_are_not_removed_from_the_map_repeat created!

DartVadius commented 2 months ago

Any progress?