Skip to content

Commit

Permalink
Merge pull request #325 from will-moore/increase_max_zoom
Browse files Browse the repository at this point in the history
Allow higher max zoom for Big images
  • Loading branch information
jburel authored Jun 30, 2020
2 parents ce8404f + 53d3bfa commit 299e640
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/viewers/viewer/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,12 @@ class Viewer extends OlObject {
}
}

let highestRes = possibleResolutions[possibleResolutions.length-1];
// For Big images, allow zooming in further (from 161% to > 600%)
if (highestRes > 0.5) {
possibleResolutions.push(highestRes/2);
possibleResolutions.push(highestRes/4);
}
// we need a View object for the map
var view = new View({
projection: proj,
Expand Down

0 comments on commit 299e640

Please sign in to comment.