-
Notifications
You must be signed in to change notification settings - Fork 2
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
Presence of drawtools breaks tooltips #1358
Comments
After a short look I think the main issue here is that the The conflicting select-interaction of the drawtools removes the overlay here, because there are no features of the drawlayer without drawing them. Without testing it, i think the easiest solution should be to set one of the interactions Selections in the eoxMap are designed to work for one layer only, as they are part of the |
I started experimenting with an approach that allows the tooltip to be applied to a specific layer. This would allow still having multiple interaction layers, but the tooltip could be "attached" to a specific one. By default the tooltip would be attached to the topmost layer: #1399 What do you think? |
There are many places where this could be handled, doing so in the This also means that the drawtools sometimes have a tooltip and sometimes they don't, based on a setting that's not on the drawtools themselves, which might be surprising |
Stefan raised a good point, this proposed solution does not improve on the fact that for drawtools layers, there shouldn't be a tooltip by default in the first place. @RobertOrthofer can you think of a way of just disabling the tooltip for a specific layer (in this case the one created by drawtools), but keeping the Example (schematic):
|
Sure, do you want the tooltip to be On the other hand, that would mean a change in the API :/ |
I think it's great that setting up a tooltip is so easy now - just create a layer with a select interaction and add a tooltip element to the DOM. I would rather say for the specific case where there are multiple select interactions, it should be possible to turn the tooltip off in certain occasions. So I'd propose to leave it |
Steps to reproduce
eox-drawtools
to a mapVersions
Example
CodeSandBox: https://codesandbox.io/p/devbox/2hlkx8
The text was updated successfully, but these errors were encountered: