-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Maps] Move tooltips to store #32333
[Maps] Move tooltips to store #32333
Conversation
tmp commit tmp commit remove usage from vector layer
Pinging @elastic/kibana-gis |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
💔 Build Failed |
jenkins, test this |
💔 Build Failed |
wrt. #32560 . I'd like to do this in separate PR. I don't want to clutter this too much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really nice change. It feels very logical to move the mapbox tooltip stuff out of vector_layer and into mb/view
} | ||
|
||
const targetFeature = features[0]; | ||
if (this.props.tooltipState) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this check. Should we update the tooltip lat/lon as the user continues to move inside of large features?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't. It's not doing that now either.
It's getting to video-game-ish when it does move with pointer imho. When we do the on-click handling, we might want to put the tooltip at the place of click/center of feature,...
💚 Build Succeeded |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
code review, tested in chrome
💚 Build Succeeded |
This is an internal refactor: - move tooltip management out of layers, and to the mapbox-component - use global handler iso of multiple handlers on individual layers (this did remove the cursor-pointer change, since we no longer are explicitly handling on-enter/leave events). - put tooltip state in store Fixes bugs: - when layer is removed, any corresponding tooltip should be removed as well - when layer is made invisible, any corresponding tooltip should be removed as well
This is an internal refactor: - move tooltip management out of layers, and to the mapbox-component - use global handler iso of multiple handlers on individual layers (this did remove the cursor-pointer change, since we no longer are explicitly handling on-enter/leave events). - put tooltip state in store Fixes bugs: - when layer is removed, any corresponding tooltip should be removed as well - when layer is made invisible, any corresponding tooltip should be removed as well
This is an internal refactor: - move tooltip management out of layers, and to the mapbox-component - use global handler iso of multiple handlers on individual layers (this did remove the cursor-pointer change, since we no longer are explicitly handling on-enter/leave events). - put tooltip state in store Fixes bugs: - when layer is removed, any corresponding tooltip should be removed as well - when layer is made invisible, any corresponding tooltip should be removed as well
This is an internal refactor:
This needs to fix some bugs
Separate PRs will be submitted to extend tooltip functionality, which should include: