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

Chapter 3. Working with Vector Layers

In this chapter, we will cover the following topics:

  • Adding a GML layer

  • Adding a KML layer

  • Creating features programmatically

  • Exporting features as GeoJSON

  • Reading and creating features from a WKT

  • Using point features as markers

  • Removing or cloning features using overlays

  • Zooming to the extent of a layer

  • Adding text labels to geometry points

  • Adding features from a WFS server

  • Using the cluster strategy

  • Reading features directly using AJAX

  • Creating a heat map