Avoid panning off the edge of the world

This commit is contained in:
Tim Schaub
2019-05-14 19:34:03 -06:00
parent 72551ab506
commit 217c6ba764
4 changed files with 59 additions and 10 deletions

View File

@@ -42,7 +42,8 @@ const layer = new VectorLayer({
const view = new View({
center: [-9.5, 78],
zoom: 2,
projection: 'EPSG:4326'
projection: 'EPSG:4326',
multiWorld: true
});
new Map({
pixelRatio: 1,