diff --git a/examples/zoomify.js b/examples/zoomify.js index ef48e73b1b..a33547f79c 100644 --- a/examples/zoomify.js +++ b/examples/zoomify.js @@ -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] }) });