-
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] Prevent console error by not querying for features in non-existing mapbox layers #34321
[Maps] Prevent console error by not querying for features in non-existing mapbox layers #34321
Conversation
Pinging @elastic/kibana-gis |
@@ -527,7 +527,7 @@ export class VectorLayer extends AbstractLayer { | |||
} | |||
|
|||
canShowTooltip() { | |||
return this._source.canFormatFeatureProperties(); | |||
return this.isVisible() && this._source.canFormatFeatureProperties(); |
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.
small optimization and unrelated to this bug fix.
This doesn't change the behavior in practice because the corresponding mapbox-layers are turned invisible as well, which would not return any results to begin with.
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.
Don't forget to add a release_note label to the PR
lgtm
code review, tested in chrome
💚 Build Succeeded |
…ting mapbox layers (elastic#34321)
Closes #34166