diff --git a/examples/zoomify.js b/examples/zoomify.js index 6d15c35da2..4c0e3881ee 100644 --- a/examples/zoomify.js +++ b/examples/zoomify.js @@ -20,6 +20,10 @@ var url = 'http://vips.vtech.fr/cgi-bin/iipsrv.fcgi?zoomify=' + var crossOrigin = 'anonymous'; var imgCenter = [imgWidth / 2, - imgHeight / 2]; + +// Maps always need a projection, but Zoomify layers are not geo-referenced, and +// are only measured in pixels. So, we create a fake projection that the map +// can use to properly display the layer. var proj = new ol.proj.Projection({ code: 'ZOOMIFY', units: ol.proj.Units.PIXELS,