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

Hardcoded interactions interfere with existing interactions in map #594

Open
StefanBrand opened this issue Jan 19, 2024 · 0 comments
Open
Labels
bug Something isn't working drawtools

Comments

@StefanBrand
Copy link
Member

StefanBrand commented Jan 19, 2024

A workaround on application side helps to mitigate the issue:

      // NOTE: workaround for drawtools capturing tooltip
      this.getEoxMap().selectInteractions["selectHover"].setActive(false);
      this.getEoxMap().selectInteractions["selectClick"].setActive(false);

Originally posted by @StefanBrand in #592 (comment)

As demonstrated in #592, the drawn feature captures the tooltip and does not give it back by itself. It has to be persuaded by setting its interactions' active state to false (see above).

Two general issues:

  • There is no way to create drawtools without interactions: In the agri use case I do not want interaction with the drawn feature. The drawn feature serves as a way to select features on a different layer and I want that layer to stay interactive, including its tooltip.
  • The hardcoded IDs are not unique enough: The hardcoded IDs ("selectHover" and "selectClick") are not ideal because they could easily conflict with the id of a manually configured interaction of the map.

Deliverable

  • integration test with map, existing layers, drawtools and tooltip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working drawtools
Projects
None yet
Development

No branches or pull requests

2 participants