Merge pull request #2847 from elemoine/zoomify-example

Constrain center in zoomify example
This commit is contained in:
Éric Lemoine
2014-10-17 08:07:38 +02:00

View File

@@ -45,6 +45,9 @@ var map = new ol.Map({
view: new ol.View({
projection: proj,
center: imgCenter,
zoom: 0
zoom: 0,
// constrain the center: center cannot be set outside
// this extent
extent: [0, -imgHeight, imgWidth, 0]
})
});