Skip to content

Commit

Permalink
Fix scale selector and constraint zoom to integer values
Browse files Browse the repository at this point in the history
  • Loading branch information
llienher committed May 18, 2021
1 parent fea8cb0 commit 182635c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ MainController.prototype.createMap_ = function() {
minZoom: 8,
enableRotation: true,
extent: this.maxExtent_,
constrainResolution: true,
rotation,
})
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ exports.prototype.setThemeZooms = function(tree) {
center: currentView.getCenter(),
enableRotation: true,
zoom: currentView.getZoom(),
constrainResolution: true,
rotation,
}));
}
Expand Down

0 comments on commit 182635c

Please sign in to comment.