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

Underlying Overlay object does not have correct default values #346

Closed max172-hqt closed 1 month ago

max172-hqt commented 2 months ago

Describe the bug

Hi,

It looks like the underlying Overlay object (access through the ref of ol-overlay component) does not have correct default properties such as stopEvent or insertFirst (should be true instead of false by default).

Please take a look at this demo here. I can pan the map even when the cursor is on top of the overlay. This is because, stopEvent is set to false when it's supposed to be true by default, according to Openlayer API (https://openlayers.org/en/latest/apidoc/module-ol_Overlay-Overlay.html)

Affected version(s)

Please run npm list --depth=0 vue vue3-openlayers ol ol-ext ol-contextmenu and paste the output below:

├── ol-ext@4.0.18
├── ol@9.1.0
├── vue@3.4.26
└── vue3-openlayers@8.1.0

To Reproduce Steps to reproduce the behavior:

  1. Go to the demo above
  2. Click on the map
  3. Check the output for overlayRef.value.overlay.getOptions()

Expected behavior stopEvent or insertFirst should be true

Actual behavior stopEvent and insertFirst are false

Thanks!