Skip to content

Commit

Permalink
fix tslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Jul 17, 2020
1 parent 37e821b commit 4052774
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/actions/map_actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function setQuery({
// setQuery can be triggered before async data fetching completes
// Only continue execution path if setQuery has not been re-triggered.
if (localSetQueryCallId === lastSetQueryCallId) {
dispatch(fitToDataBounds());
dispatch<any>(fitToDataBounds());
}
} else {
await dispatch<any>(syncDataForAllLayers());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ export class BlendedVectorLayer extends VectorLayer implements IVectorLayer {
return [];
}

hasJoins() {
return false;
}

getSource() {
return this._isClustered ? this._clusterSource : this._documentSource;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ export class VectorLayer extends AbstractLayer implements IVectorLayer {
getStyle(): IVectorStyle;
getFeatureById(id: string | number): Feature | null;
getPropertiesForTooltip(properties: GeoJsonProperties): Promise<ITooltipProperty[]>;
hasJoins(): boolean;
}
9 changes: 9 additions & 0 deletions x-pack/plugins/maps/public/elasticsearch_geo_utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { MapExtent } from '../common/descriptor_types';

export function scaleBounds(bounds: MapExtent, scaleFactor: number): MapExtent;

0 comments on commit 4052774

Please sign in to comment.