wegue-oss / wegue

Template and components for webmapping applications with OpenLayers and Vue.js
BSD 2-Clause "Simplified" License
97 stars 42 forks source link

InfoClickWin: Unregistering of listeners not working #285

Closed JakobMiksch closed 2 days ago

JakobMiksch commented 2 years ago

The listeners of the InfoClickWin are not unregistered. See here: https://github.com/meggsimum/wegue/blob/master/src/components/infoclick/InfoClickWin.vue#L146-L154 I can probably fixed with:

 if (visible) {
        me.registerMapClick();
      } else {
        me.registerMapClick(true); // <-- THIS IS THE FIX
    [...]
}

Normally, this bug is not noticed, but can have effects in special situations.