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

Chapter 4. Interacting with Raster Data Source

Web maps are very popular today, and are growing in popularity. After Google Maps was introduced, there was an explosion of interactive web maps. Google provides an API to interact with its mapping service, as others do now, and OpenLayers works well with most of them. Not only can we use these third-party APIs with OpenLayers, we can also mash up other layers on top of them. Those services are the most popular, but they suffer from bottleneck depending on your web mapping application. So, you need to know mainstream API and alternatives to display raster images.

In this chapter, we will learn the following:

  • What are layers

  • What types of layers exist, particularly for raster

  • Why some raster data are tiled/untiled

  • What are sources in OpenLayers

  • What is the web mapping history related to layers

  • How does the main sources class associated with a layer works

  • Working with the Spherical Mercator and combining different layer classes

  • How to manage nongeographic...