Book Image

OpenLayers 3.x Cookbook - Second Edition

By : Peter J. Langley, Antonio Santiago Perez
Book Image

OpenLayers 3.x Cookbook - Second Edition

By: Peter J. Langley, Antonio Santiago Perez

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 (14 chapters)
OpenLayers 3.x Cookbook Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Using the custom OpenLayers library build


In places throughout this book, we've credited the full functionality that OpenLayers offers out of the box with its capacity to help build powerfully capable web-mapping applications. We've also been consciously aware of the fact that this well equipped capability comes with the price of a larger download size.

However, this recipe will show you how to construct a custom minified build of OpenLayers that will include only the code from the library that's fundamental for your specific application requirements.

To demonstrate this, we'll create a custom build, which is made suitable to run an earlier recipe from this book: Creating a simple full screen map in Chapter 1, Web Mapping Basics.

The source code for this recipe can be found in ch07/ch07-custom-openlayers-build.

Getting ready

The OpenLayers build tools has two dependencies that need to be installed on your machine: Node.js (https://nodejs.org) and Java 1.7 SDK (http://www.oracle.com/technetwork...