Merge pull request #9374 from jahow/fix-initialzoom

Fix view initialization with min/max resolution constraint
This commit is contained in:
Andreas Hocevar
2019-03-25 14:33:25 +01:00
committed by GitHub
5 changed files with 91 additions and 22 deletions

View File

@@ -16,7 +16,6 @@ new Map({
target: 'map',
view: new View({
resolutions: [2, 1],
extent: [0, -200, 200, 0],
center: [100, -100],
zoom: 0.4
})

View File

@@ -17,7 +17,6 @@ new Map({
target: 'map',
view: new View({
resolutions: [2, 1],
extent: [0, -200, 200, 0],
center: [100, -100],
zoom: 0.4
})