Skip to content

Commit

Permalink
Fix zoom to scale
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 23, 2019
1 parent 847ade4 commit 42c09c7
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 @@ -41,7 +41,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 42c09c7

Please sign in to comment.