MelihAltintas / vue3-openlayers

Web map Vue 3.x components with the power of OpenLayers
https://vue3openlayers.netlify.app/
MIT License
629 stars 120 forks source link

Overlays does not display since 9.0.0 #352

Closed ElysaSrc closed 1 month ago

ElysaSrc commented 1 month ago

Describe the bug

Since version 9.0.0 overlay display. We can also see this on the documentation: https://vue3openlayers.netlify.app/componentsguide/overlay/#example-1-overlay-content

Example 1 is empty.

Affected version(s)

All version over 9.0.0

Expected behavior

Overlay items should be displayed.

d-koppenhagen commented 1 month ago

Oh, it seems like the wrong default value is passed for className. Please set it to ol-overlay-container ol-selectable. I will fix this meanwhile and release the fix with the next version

d-koppenhagen commented 1 month ago

Released with 9.0.2: https://github.com/MelihAltintas/vue3-openlayers/releases/tag/v9.0.2

ElysaSrc commented 1 month ago

Thank you very much !

ElysaSrc commented 1 month ago

There is another issue with the current update : events are not propagated when there is an overlay. If you do a scroll with your mousewheel on an overlay, the event does not propagate like it used to, and the zoom is not modified.

d-koppenhagen commented 1 month ago

This could be because stopEvent is set to true by default which was a breaking change and introduced to align with the OpenLayers API.

d-koppenhagen commented 1 month ago

Please raise new Issues if you find more. Thanks! :)