diff --git a/src/kibana/components/vislib/visualizations/tile_map.js b/src/kibana/components/vislib/visualizations/tile_map.js
index adfffd7fd06fc..57e9aed348546 100644
--- a/src/kibana/components/vislib/visualizations/tile_map.js
+++ b/src/kibana/components/vislib/visualizations/tile_map.js
@@ -323,12 +323,18 @@ define(function (require) {
* return {undefined}
*/
TileMap.prototype.bindPopup = function (feature, layer) {
+ var props = feature.properties;
+ var popup = L.popup({
+ autoPan: false
+ })
+ .setContent(
+ 'Geohash: ' + props.geohash + '
' +
+ 'Center: ' + props.center[1].toFixed(1) + ', ' + props.center[0].toFixed(1) + '
' +
+ 'Count: ' + props.count
+ );
+
// TODO: tooltip-like formatter passed in?
- layer.bindPopup(
- 'Geohash: ' + feature.properties.geohash + '
' +
- 'Center: ' + feature.properties.center[1].toFixed(1) + ', ' + feature.properties.center[0].toFixed(1) + '
' +
- 'Count: ' + feature.properties.count
- )
+ layer.bindPopup(popup)
.on('mouseover', function (e) {
layer.openPopup();
})