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] Fit only on visible features #42020

Merged
merged 2 commits into from Jul 26, 2019

Conversation

thomasneirynck
Copy link
Contributor

Closes #41492

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

const searchFilters = this._getSearchFilters(dataFilters);
return await this._source.getBoundsForFilters(searchFilters);

const isStaticLayer = !this._source.isBoundsAware() || !this._source.isFilterByMapBounds();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this now will only ignore visibility of features for sources that are bounds aware (ie. we can actually query for the entire bounds), and which are filtered based on extent.

E.g. Fit will take into account visibility for an es-doc source layer with all data in the view

@thomasneirynck thomasneirynck assigned kindsun and unassigned kindsun Jul 25, 2019
@thomasneirynck thomasneirynck changed the title [Maps] Fit only on visible features only [Maps] Fit only on visible features Jul 25, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

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.

I like this solution. Its really nice and simple

lgtm
code review

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@thomasneirynck thomasneirynck merged commit ec82c13 into elastic:master Jul 26, 2019
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request Jul 26, 2019
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maps] Fit to data should take into account joins
4 participants