aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Neirynck <thomas@elastic.co>2018-06-01 13:12:35 -0400
committerGitHub <noreply@github.com>2018-06-01 13:12:35 -0400
commit9b796133c1b28e214b1376ac3ed5729e6035c784 (patch)
treee206359a1b1cc0c47fd8ee3441432dea8c301a94
parentbc5f05ef2f144f5204191e54c7f31e18cc466185 (diff)
Show tooltip when mixing string and integer fields for joining region maps to ES results (#19447)
-rw-r--r--src/core_plugins/region_map/public/choropleth_layer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core_plugins/region_map/public/choropleth_layer.js b/src/core_plugins/region_map/public/choropleth_layer.js
index dcc55bc60..620d2a6a9 100644
--- a/src/core_plugins/region_map/public/choropleth_layer.js
+++ b/src/core_plugins/region_map/public/choropleth_layer.js
@@ -219,7 +219,7 @@ CORS configuration of the server permits requests from the Kibana application on
return '';
}
const match = this._metrics.find((bucket) => {
- return bucket.term === geojsonFeature.properties[this._joinField];
+ return compareLexographically(bucket.term, geojsonFeature.properties[this._joinField]) === 0;
});
return tooltipFormatter(metricsAgg, match, fieldName);
};