Skip to content

Commit

Permalink
[7.9] [maps] fix fit to bounds for ES document layers with joins (#73985
Browse files Browse the repository at this point in the history
) (#74041)

* [maps] fix fit to bounds for ES document layers with joins (#73985)

# Conflicts:
#	x-pack/plugins/maps/public/classes/layers/vector_layer/vector_layer.js
#	x-pack/test/functional/apps/maps/auto_fit_to_bounds.js

* rename hasJoins to _hasJoins
  • Loading branch information
nreese authored Aug 1, 2020
1 parent 1093800 commit 7aea62b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class VectorLayer extends AbstractLayer {

async getBounds({ startLoading, stopLoading, registerCancelCallback, dataFilters }) {
const isStaticLayer = !this.getSource().isBoundsAware();
if (isStaticLayer) {
if (isStaticLayer || this._hasJoins()) {
return getFeatureCollectionBounds(this._getSourceFeatureCollection(), this._hasJoins());
}

Expand Down

0 comments on commit 7aea62b

Please sign in to comment.