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

[Maps] Prevent console error by not querying for features in non-existing mapbox layers #34321

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

thomasneirynck
Copy link
Contributor

Closes #34166

@thomasneirynck thomasneirynck added [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.2.0 labels Apr 1, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

@thomasneirynck thomasneirynck requested review from nreese and kindsun April 1, 2019 21:35
@@ -527,7 +527,7 @@ export class VectorLayer extends AbstractLayer {
}

canShowTooltip() {
return this._source.canFormatFeatureProperties();
return this.isVisible() && this._source.canFormatFeatureProperties();
Copy link
Contributor Author

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.

Copy link
Contributor

@nreese nreese left a 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

@thomasneirynck thomasneirynck added the release_note:skip Skip the PR/issue when compiling release notes label Apr 1, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:skip Skip the PR/issue when compiling release notes v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants