ZoomifyImage directory from the third step and generate the tiles for the image. It can take some time, so don't worry, although the program output is not verbose:
python ZoomifyFileProcessor.py path_to_dublin_map/1797-map-of-Dublin.jpg
ol3_samples/assets/data/ directory, the created folder from path_to_dublin_map/1797-map-of-Dublin/. <script> and </script> tags.http://openlayers.org/en/v3.0.0/examples/zoomify.js in your script block.ImageProperties.xml from ol3_samples/assets/data/1797-map-of-Dublin/ file and inspect the WIDTH and HEIGHT attributes from the IMAGE_PROPERTIES xml tag.imgWidth and imgHeight.url variable to /assets/data/1797-map-of-Dublin/ and change the zoom property in the view to 1 instead of 0.
If you have some difficulty, do not hesitate to retrieve the file from samples.
We just made a map using images' tiles using Zoomify source with its particular grid.
The main particular thing to understand in the sample is to set a projection definition that uses image pixel coordinates, for example:
var proj = new ol.proj.Projection({
code: 'ZOOMIFY',
units: 'pixels',
extent: [0, 0, imgWidth, imgHeight]
});We use units' pixels instead of the more usual degrees or meters and the original image width and height are used to define the extent. Then, we use pixels as extent units, instead of meters or degrees.
The component retrieves each tile as we zoom in/out. To get an overview of this behavior, we recommend that you open the Network panel and play a bit with the demo.
Now, it's time to review untiled layers.