OpenLayers Cookbook

The best method to learn the many ways OpenLayers can be used to render data on maps is to dive straight into these recipes. With a mix of basic and advanced techniques, it’s ideal for JavaScript novices and experts alike.
Preview in Mapt

OpenLayers Cookbook

Antonio Santiago Perez

1 customer reviews
The best method to learn the many ways OpenLayers can be used to render data on maps is to dive straight into these recipes. With a mix of basic and advanced techniques, it’s ideal for JavaScript novices and experts alike.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


OpenLayers Cookbook Book Cover
OpenLayers Cookbook
$ 26.99
$ 18.90
OpenLayers 3.x Cookbook - Second Edition Book Cover
OpenLayers 3.x Cookbook - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $27.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781849517843
Paperback300 pages

Book Description

Data visualization and analysis has become an important task for many companies. Understanding the basic concepts of GIS and knowing how to visualize data on a map is a required ability for many professionals today. OpenLayers is a JavaScript library to load, display, and render maps from multiple sources on web pages.

"OpenLayers Cookbook" teaches how to work with OpenLayers, one of the most important and complete open source JavaScript libraries.
Through an extensive set of recipes, this book shows how to work with the main concepts required to build a GIS web application– maps, raster and vector layers, styling, theming, and so on.

"OpenLayers Cookbook" includes problem solving and how-to recipes for the most common and important tasks. A wide range of topics are covered.

The range of recipes includes: creating basic maps, working with raster and vector layers, understanding events and working with main controls, reading features from different data sources, styling features, and understanding the underlying architecture.

"OpenLayers Cookbook" describes solutions and optimizations to problems commonly found.

Table of Contents

Chapter 1: Web Mapping Basics
Introduction
Creating a simple full screen map
Different ways to include OpenLayers
Understanding base and non-base layers
Avoiding the need of a base layer
Playing with the map's options
Managing map's stack layers
Managing map's controls
Moving around the map view
Restricting the map extent
Chapter 2: Adding Raster Layers
Introduction
Using Google Maps imagery
Using Bing imagery
Adding WMS layer
Wrapping the date line options
Changing the zoom effect
Changing the layer opacity
Using WMS with single tile mode
Buffering the layer data to improve the map navigation
Creating an image layer
Setting the tile size in WMS layers
Chapter 3: Working with Vector Layers
Introduction
Adding a GML layer
Adding a KML layer
Creating features programmatically
Reading and creating features from a WKT
Adding markers to the map
Using point features as markers
Working with popups
Adding features from a WFS server
Using the cluster strategy
Filtering features in WFS requests
Reading features directly using Protocols
Chapter 4: Working with Events
Introduction
Creating a side-by-side map comparator
Implementing a work in progress indicator for map layers
Listening for vector layer features' events
Listening for non-OpenLayers events
Chapter 5: Adding Controls
Introduction
Adding and removing controls
Adding a navigation history control
Working with geolocation
Placing controls outside the map
Editing features on multiple vector layers
Modifying features
Measuring distances and areas
Getting feature information from data source
Getting information from the WMS server
Chapter 6: Theming
Introduction
Understanding how themes work using the img folder
Understanding how themes work using the theme folder
Delimiting tiles in a raster layer
Creating a new OpenLayers theme
Starting actions outside the controls
Chapter 7: Styling Features
Introduction
Styling features using symbolizers
Improving style using StyleMap and the replacement of feature's attributes
Playing with StyleMap and the render intents
Working with unique value rules
Defining custom rules to style features
Styling clustered features
Chapter 8: Beyond the Basics
Introduction
Working with projections
Retrieving remote data with OpenLayers.Request
Creating a custom control
Creating a custom renderer
Selecting features intersecting with a line
Making an animation with image layers

What You Will Learn

  • Create maps, understand projection and other important properties
  • Add raster and vector layers
  • Work with important tile providers
  • Work with OGCs WMS and WFS compliant servers
  • Read/write features from/to different data sources
  • Style features to improve their visualization
  • Understand events and work with the main controls

Authors

Table of Contents

Chapter 1: Web Mapping Basics
Introduction
Creating a simple full screen map
Different ways to include OpenLayers
Understanding base and non-base layers
Avoiding the need of a base layer
Playing with the map's options
Managing map's stack layers
Managing map's controls
Moving around the map view
Restricting the map extent
Chapter 2: Adding Raster Layers
Introduction
Using Google Maps imagery
Using Bing imagery
Adding WMS layer
Wrapping the date line options
Changing the zoom effect
Changing the layer opacity
Using WMS with single tile mode
Buffering the layer data to improve the map navigation
Creating an image layer
Setting the tile size in WMS layers
Chapter 3: Working with Vector Layers
Introduction
Adding a GML layer
Adding a KML layer
Creating features programmatically
Reading and creating features from a WKT
Adding markers to the map
Using point features as markers
Working with popups
Adding features from a WFS server
Using the cluster strategy
Filtering features in WFS requests
Reading features directly using Protocols
Chapter 4: Working with Events
Introduction
Creating a side-by-side map comparator
Implementing a work in progress indicator for map layers
Listening for vector layer features' events
Listening for non-OpenLayers events
Chapter 5: Adding Controls
Introduction
Adding and removing controls
Adding a navigation history control
Working with geolocation
Placing controls outside the map
Editing features on multiple vector layers
Modifying features
Measuring distances and areas
Getting feature information from data source
Getting information from the WMS server
Chapter 6: Theming
Introduction
Understanding how themes work using the img folder
Understanding how themes work using the theme folder
Delimiting tiles in a raster layer
Creating a new OpenLayers theme
Starting actions outside the controls
Chapter 7: Styling Features
Introduction
Styling features using symbolizers
Improving style using StyleMap and the replacement of feature's attributes
Playing with StyleMap and the render intents
Working with unique value rules
Defining custom rules to style features
Styling clustered features
Chapter 8: Beyond the Basics
Introduction
Working with projections
Retrieving remote data with OpenLayers.Request
Creating a custom control
Creating a custom renderer
Selecting features intersecting with a line
Making an animation with image layers

Book Details

ISBN 139781849517843
Paperback300 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

GeoServer Beginner's Guide Book Cover
GeoServer Beginner's Guide
$ 29.99
$ 6.00
OpenLayers 2.10 Beginner's Guide Book Cover
OpenLayers 2.10 Beginner's Guide
$ 26.99
$ 18.90
PostGIS Cookbook Book Cover
PostGIS Cookbook
$ 29.99
$ 21.00
OpenLayers 3: Beginner's Guide Book Cover
OpenLayers 3: Beginner's Guide
$ 29.99
$ 21.00
Python Geospatial Development - Second Edition Book Cover
Python Geospatial Development - Second Edition
$ 29.00
$ 20.30
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80