diff --git a/src/app/app.js b/src/app/app.js index 542e8aba..1f1c3fb1 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -180,7 +180,7 @@ angular.module("baw", controller: "VisualizeController", title: "Visualize audio distribution", fullWidth: true, - reloadOnSearch: false + reloadOnSearch: false }). // missing route page diff --git a/src/app/visualize/visualize.js b/src/app/visualize/visualize.js index 8f88c4bb..0a0e19be 100644 --- a/src/app/visualize/visualize.js +++ b/src/app/visualize/visualize.js @@ -31,10 +31,12 @@ angular var updateLocationSearch = _.throttle(function (newExtent) { //console.debug(...newExtent); + + $location.replace(); $location.search({ - [$scope.filterType]: $routeParams[$scope.filterType], - [extent0Key]: +newExtent[0], - [extent1Key]: +newExtent[1] + [$scope.filterType]: $routeParams[$scope.filterType], + [extent0Key]: +newExtent[0], + [extent1Key]: +newExtent[1] }); }, 250);