Show only one world

This commit is contained in:
ahocevar
2019-03-22 21:55:54 +01:00
parent a95481a8fe
commit 3940b5ec88
6 changed files with 97 additions and 46 deletions

View File

@@ -20,7 +20,8 @@ const map = new Map({
view: new View({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
resolution: 1,
multiWorld: true
})
});
map.getView().setCenter([10, 10]);