diff --git a/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js b/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js index 6542415322d9c..965ed7fd9df78 100644 --- a/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js +++ b/src/legacy/core_plugins/tile_map/public/tile_map_visualization.js @@ -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); };