Commit 45ee08cc authored by Antonella Giachino's avatar Antonella Giachino
Browse files

Fixed bug about refresh of cluster and heatmap

parent ab31000f
......@@ -273,7 +273,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
// apply (filtered) data
$scope.createLayerWithData(layerName, $scope.values[layerName], false, false);
var tmpLayer = $scope.getLayerByName(layerName);
$scope.createLayerWithData(layerName, $scope.values[layerName], tmpLayer.isCluster, tmpLayer.isHeatmap);
}
$scope.getOptions =function(){
......@@ -363,7 +364,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
var layerID = $scope.ngModel.id + "|" + label;
var layerDef = $scope.configs[layerID];
if (!layerDef) return;
columnsForData = $scope.getColumnSelectedOfDataset(layerDef.dsId) || [];
......@@ -491,7 +491,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
if ($scope.closer){
$scope.closer.onclick = function(){
overlay.setPosition(undefined);
if ($scope.closer) $scope.closer.blur();
if ($scope.closer && $scope.closer.blur) $scope.closer.blur();
return false;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment