Book Image

OpenLayers 3: Beginner's Guide

By : Thomas Gratier, Paul Spencer, Erik Hazzard
Book Image

OpenLayers 3: Beginner's Guide

By: Thomas Gratier, Paul Spencer, Erik Hazzard

Overview of this book

<p>This book is a practical, hands-on guide that provides you with all the information you need to get started with mapping using the OpenLayers 3 library.</p> <p>The book starts off by showing you how to create a simple map. Through the course of the book, we will review each component needed to make a map in OpenLayers 3, and you will end up with a full-fledged web map application. You will learn the key role of each OpenLayers 3 component in making a map, and important mapping principles such as projections and layers. You will create your own data files and connect to backend servers for mapping. A key part of this book will also be dedicated to building a mapping application for mobile devices and its specific components.</p>
Table of Contents (22 chapters)
OpenLayers 3 Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating tiles and adding Zoomify layer


  1. With this example, the main goal is to manipulate images. Those images can lack geographic position, or overlay can't be possible or is not useful. In all cases, the image size has to be important as tiles' images are only useful in this use case.

  2. Install Python 2.7 series, if you don't have it already installed, using the Getting Started from The Hitchhiker's Guide to Python! (http://docs.python-guide.org/en/latest/#getting-started or the instructions in the Installing the OpenLayers development environment section in Appendix B, More details on Closure Tools and Code Optimization Techniques).

  3. Then, install PIL (Python Image Library) using Wikibooks documentation (https://en.wikibooks.org/wiki/Python_Imaging_Library/Getting_PIL).

  4. Now, go to download the file, http://sourceforge.net/projects/zoomifyimage/, in order to get the software that will provide the way to split your image in tiles. You will need to install a software called 7...