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
[Maps] Fit only on visible features #42020
Conversation
Pinging @elastic/kibana-gis |
const searchFilters = this._getSearchFilters(dataFilters); | ||
return await this._source.getBoundsForFilters(searchFilters); | ||
|
||
const isStaticLayer = !this._source.isBoundsAware() || !this._source.isFilterByMapBounds(); |
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 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
💔 Build Failed |
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 like this solution. Its really nice and simple
lgtm
code review
💚 Build Succeeded |
Closes #41492