From 6006d242320025539fd8fca233ccee426dc054f6 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 2 Jan 2014 17:02:40 +0100 Subject: [PATCH] Add comment about fake projection in zoomify example --- examples/zoomify.js | 4 ++++ 1 file changed, 4 insertions(+) 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,