Skip to content

Commit

Permalink
Merge pull request #5088 from camptocamp/fix-zoom-to-scale
Browse files Browse the repository at this point in the history
Fix zoom to scale
  • Loading branch information
sbrunner committed Aug 26, 2019
2 parents a085ec5 + 42c09c7 commit f28bf4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion contribs/gmf/apps/desktop/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class Controller extends AbstractDesktopController {
mapViewConfig: {
center: [632464, 185457],
zoom: 3,
resolutions: [250, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.1, 0.05]
resolutions: [250, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.1, 0.05],
constrainResolution: true,
extent: [485071.54, 75346.36, 828515.78, 299941.84],
}
}, $scope, $injector);

Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/apps/desktop_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class Controller extends AbstractDesktopController {
mapViewConfig: {
center: [632464, 185457],
zoom: 3,
resolutions: [250, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.1, 0.05]
resolutions: [250, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.1, 0.05],
constrainResolution: true,
}
}, $scope, $injector);

Expand Down

0 comments on commit f28bf4a

Please sign in to comment.