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

Introduction


Once we know how to work with vector layers, such as adding new features or modifying existing ones, the question that we may have in mind is: how do we style them? We have seen examples of feature styling in previous recipes in this book, but this chapter will take a deeper look into what we can do with styles and how styling operates in OpenLayers.

The visual representation of features is one of the most important concepts in GIS applications. It is not only important from the user's experience or the designer's perspective, but it is also important as an information requirement, for example, to identify features that match certain conditions.

The way that we visualize features is not only important to make our application much more attractive, but it is also important to improve the way that we bring information to the user. For example, assuming that a set of points represent some temperatures, if we are interested in the hottest zones, we could represent them with different...