Book Image

OpenLayers 3.x Cookbook - Second Edition

By : J. Langley, Antonio Santiago
Book Image

OpenLayers 3.x Cookbook - Second Edition

By: J. Langley, Antonio Santiago

Overview of this book

OpenLayers 3 is one of the most important and complete open source JavaScript mapping libraries today. Throughout this book, you will go through recipes that expose various features of OpenLayers 3, allowing you to gain an insight into building complex GIS web applications. You will get to grips with the basics of creating a map with common functionality and quickly advance to more complicated solutions that address modern challenges. You will explore into maps, raster and vector layers, and styling in depth. This book also includes problem solving and how-to recipes for the most common and important tasks.
Table of Contents (9 chapters)
8
Index

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text are shown as follows: "The map.getLayers()method returns the collection of map layers." Folder names, filenames and pathnames are shown in this format: ch02/ch02-zoom-effect.

A block of code is set as follows:

var view = new ol.View({
   zoom: 7, center: [3826743, 4325724]
});

Any command-line input or output is written as follows:

cd ch07/ch07-custom-openlayers-build

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "However, if they click on OK, the logic in the click event handler executes, adding the features to a new vector layer."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.