Skip to content

Commit

Permalink
fix(visualise): Fixes minor bug in tile cacher
Browse files Browse the repository at this point in the history
The current resolution wasn't being properly passed to the imageCheck function which means the 60.0s/px scale tiles weren't loading
  • Loading branch information
atruskie committed Feb 20, 2018
1 parent 1736d85 commit 246850e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/d3Bindings/eventDistribution/distributionCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ angular
return filtered;
},
imageCheck(mainResolution, imageVisibilityThreshold, tile ) {
let resolutionRatio = tile.resolution / mainResolution;
let resolutionRatio = tile.resolution / mainResolution();
if (resolutionRatio < imageVisibilityThreshold) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/d3Bindings/eventDistribution/distributionDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ angular
}
};

let imageCheck = common.imageCheck.bind(null, self.resolution, imageVisibilityThreshold);
let imageCheck = common.imageCheck.bind(null, () => self.resolution, imageVisibilityThreshold);

// debug only
tilesGroup.attr(debugGroupAttrs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ angular
};


let imageCheck = common.imageCheck.bind(null, self.resolution, 0);
let imageCheck = common.imageCheck.bind(null, () => self.resolution, 0);

// debug only
//tilesGroup.attr(debugGroupAttrs);
Expand Down

0 comments on commit 246850e

Please sign in to comment.