Skip to content

Commit

Permalink
fix min and max scale having wrong values
Browse files Browse the repository at this point in the history
  • Loading branch information
stackTom committed Jul 24, 2022
1 parent 69618ed commit 7346553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/mainMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@ function MapController(loadJSONFunc) {

this.doNowOrOnceRendered(function() {
this.colorScale.setMinMax(posLimit, negLimit);
appendOrReplaceUrlVar(/&minScale=-?\d*\.?\d*/, "&minScale=" + posLimit);
appendOrReplaceUrlVar(/&maxScale=-?\d*\.?\d*/, "&maxScale=" + negLimit);
appendOrReplaceUrlVar(/&minScale=-?\d*\.?\d*/, "&minScale=" + negLimit);
appendOrReplaceUrlVar(/&maxScale=-?\d*\.?\d*/, "&maxScale=" + posLimit);

var dates = this.selector.getCurrentStartEndDateFromArea(currentArea);
this.refreshDataset(dates.startDate, dates.endDate);
Expand Down

0 comments on commit 7346553

Please sign in to comment.