Skip to content

Commit

Permalink
[Maps] fix fit to data doesn't work in TMS
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Mar 31, 2021
1 parent ceb4c9a commit 5ae543a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/classes/sources/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class AbstractSource implements ISource {
}

async supportsFitToBounds(): Promise<boolean> {
return true;
return false;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ export class AbstractVectorSource extends AbstractSource implements IVectorSourc
return false;
}

async supportsFitToBounds(): Promise<boolean> {
return true;
}

async getBoundsForFilters(
boundsFilters: BoundsFilters,
registerCancelCallback: (callback: () => void) => void
Expand Down

0 comments on commit 5ae543a

Please sign in to comment.