Apply center constraint in custom projection examples
This commit is contained in:
committed by
Frederic Junod
parent
2e395e4530
commit
8ffe910ebf
@@ -62,6 +62,7 @@ var map = new ol.Map({
|
|||||||
view: new ol.View2D({
|
view: new ol.View2D({
|
||||||
projection: projection,
|
projection: projection,
|
||||||
center: [660000, 190000],
|
center: [660000, 190000],
|
||||||
|
extent: extent,
|
||||||
zoom: 2
|
zoom: 2
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ var map = new ol.Map({
|
|||||||
view: new ol.View2D({
|
view: new ol.View2D({
|
||||||
projection: projection,
|
projection: projection,
|
||||||
center: [660000, 190000],
|
center: [660000, 190000],
|
||||||
|
extent: extent,
|
||||||
zoom: 2
|
zoom: 2
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user