diff --git a/panels/map/module.js b/panels/map/module.js index ca1146d831eef..806302e69f444 100644 --- a/panels/map/module.js +++ b/panels/map/module.js @@ -140,7 +140,9 @@ angular.module('kibana.map', []) onRegionOut: function(event, code) { }, onRegionClick: function(event, code) { - scope.build_search(scope.panel.field,code) + var count = _.isUndefined(scope.data[code]) ? 0 : scope.data[code]; + if (count != 0) + scope.build_search(scope.panel.field,code) } }); })