Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underlying Overlay object does not have correct default values #346

Closed
max172-hqt opened this issue May 9, 2024 · 0 comments
Closed

Underlying Overlay object does not have correct default values #346

max172-hqt opened this issue May 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@max172-hqt
Copy link

max172-hqt commented May 9, 2024

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:

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!

@max172-hqt max172-hqt added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant