![]()
OpenLayers 3.x Cookbook Second Edition
Table of Contents
OpenLayers 3.x Cookbook Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Web Mapping Basics
Introduction
Creating a simple fullscreen map
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Playing with the map's options
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Managing the map's stack layers
How to do itā¦
How it worksā¦
There's moreā¦
See also
Managing the map's controls
How to do itā¦
How it worksā¦
See also
Moving around the map view
How to do itā¦
How it worksā¦
See also
Restricting the map's extent
How to do itā¦
How it worksā¦
See also
2. Adding Raster Layers
Introduction
Using Bing imagery
Getting ready
How to do itā¦
How it worksā¦
See also
Using OpenStreetMap imagery
How to do itā¦
How it worksā¦
There's more...
See also
Adding WMS layers
How to do itā¦
How it worksā¦
There's moreā¦
See also
Changing the zoom effect
How to do itā¦
How it worksā¦
There's moreā¦
See also
Changing layer opacity
How to do itā¦
How it worksā¦
See also
Buffering the layer data to improve map navigation
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating an image layer
How to do itā¦
How it worksā¦
See also
Setting the tile size in WMS layers
How to do itā¦
How it worksā¦
There's moreā¦
See also
3. Working with Vector Layers
Introduction
Adding a GML layer
How to do itā¦
How it worksā¦
See also
Adding a KML layer
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating features programmatically
How to do itā¦
How it worksā¦
There's moreā¦
See also
Exporting features as GeoJSON
How to do itā¦
How it worksā¦
See alsoā¦
Reading and creating features from a WKT
How to do itā¦
How it worksā¦
See also
Using point features as markers
How to do itā¦
How it worksā¦
There's moreā¦
See also
Removing or cloning features using overlays
How to do itā¦
How it worksā¦
See also
Zooming to the extent of a layer
How to do itā¦
How it worksā¦
Adding text labels to geometry points
How to do itā¦
How it worksā¦
Adding features from a WFS server
How to do itā¦
How it worksā¦
There's moreā¦
See also
Using the cluster strategy
How to do itā¦
How it worksā¦
See also
Reading features directly using AJAX
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating a heat map
How to do itā¦
How it worksā¦
See also
4. Working with Events
Introduction
Creating a side-by-side map comparator
How to do itā¦
How it worksā¦
See also
Implementing a work-in-progress indicator for map layers
How to do itā¦
How it worksā¦
See also
Listening for the vector layer features' events
How to do itā¦
How it worksā¦
There's moreā¦
See also
Listening for mouse or touch events
How to do itā¦
How it worksā¦
There's moreā¦
See also
Using the keyboard to pan or zoom
How to do itā¦
How it worksā¦
See also
5. Adding Controls
Introduction
Adding and removing controls
How to do itā¦
How it worksā¦
See also
Working with geolocation
Getting ready
How to do itā¦
How it worksā¦
See also
Placing controls outside the map
How to do itā¦
How it worksā¦
See also
Drawing features across multiple vector layers
How to do itā¦
How it worksā¦
There's moreā¦
See also
Modifying features
How to do itā¦
How it worksā¦
There's moreā¦
See also
Measuring distances and areas
How to do itā¦
How it worksā¦
There's moreā¦
See also
Getting feature information from a data source
How to do itā¦
How it worksā¦
There's moreā¦
See also
Getting information from a WMS server
How to do itā¦
How it worksā¦
See also
6. Styling Features
Introduction
Styling layers
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Styling features based on geometry type
How to do itā¦
How it worksā¦
See also
Styling based on feature attributes
How to do itā¦
How it worksā¦
See also
Styling interaction render intents
How to do itā¦
How it worksā¦
There's moreā¦
See also
Styling clustered features
How to do itā¦
How it worksā¦
See also
7. Beyond the Basics
Introduction
Working with projections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating a custom control
How to do itā¦
How it worksā¦
See also
Selecting features by dragging out a selection area
How to do itā¦
How it worksā¦
There's moreā¦
See also
Transitioning between weather forecast imagery
Getting ready
How to do itā¦
How it worksā¦
See also
Using the custom OpenLayers library build
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Drawing in freehand mode
How to do itā¦
How it worksā¦
See also
Modifying layer appearance
Getting ready
How to do itā¦
How it worksā¦
See also
Adding features to the vector layer by dragging and dropping them
Getting ready
How to do itā¦
How it worksā¦
See also
Making use of map permalinks
How to do itā¦
How it worksā¦
See also
Index
![]()
OpenLayers 3.x Cookbook Second Edition
Copyright Ā© 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: August 2012
Second edition: March 2016
Production reference: 1180316
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-775-6
www.packtp...