Skip to content

Commit

Permalink
fixing precision bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Feb 12, 2020
1 parent b0934e0 commit 09fd301
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const createTileMapVisualization = ({ serviceSettings, $injector }) => {
// todo: autoPrecision should be vis parameter, not aggConfig one
updateVarsObject.precision = geohashAgg.aggConfigParams.autoPrecision
? zoomPrecision[this.vis.getUiState().get('mapZoom')]
: getPrecision(this._kibanaMap.getGeohashPrecision());
: getPrecision(geohashAgg.aggConfigParams.precision);

this.vis.eventsSubject.next(updateVarsObject);
};
Expand Down

0 comments on commit 09fd301

Please sign in to comment.