OpenLayers Cookbook


OpenLayers Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Understand the main concepts about maps, layers, controls, protocols, events etc
  • Learn about the important tile providers and WMS servers
  • Packed with code examples and screenshots for practical, easy learning

Book Details

Language : English
Paperback : 300 pages [ 235mm x 191mm ]
Release Date : August 2012
ISBN : 1849517843
ISBN 13 : 9781849517843
Author(s) : Antonio Santiago Perez
Topics and Technologies : All Books, Other, Cookbooks, Open Source

Table of Contents

Preface
Chapter 1: Web Mapping Basics
Chapter 2: Adding Raster Layers
Chapter 3: Working with Vector Layers
Chapter 4: Working with Events
Chapter 5: Adding Controls
Chapter 6: Theming
Chapter 7: Styling Features
Chapter 8: Beyond the Basics
Index
  • 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

                  Antonio Santiago Perez

                  Antonio is a Computer Science professional with more than ten years of experience in designing and implementing systems. Since the beginning of his professional life, his work has been always related to the world of meteorology while working for different companies as an employee or freelancer. He has good experience in development of systems which collect, store, transform, analyze, and visualize data and is actively interested in any GIS-related technology, with preference for data visualization. His main field of experience is the Java ecosystem, and he has also worked actively with many related web technologies while looking to improve the client side of web applications. He is a firm believer in Software Engineering practices and is a follower of Agile methodologies, involving customers as a main key to the project’s success.
                  Sorry, we don't have any reviews for this title yet.

                  Code Downloads

                  Download the code and support files for this book.


                  Submit Errata

                  Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                  Sample chapters

                  You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                  Frequently bought together

                  OpenLayers Cookbook +    GeoServer Beginner’s Guide =
                  50% Off
                  the second eBook
                  Price for both: $39.00

                  Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                  What you will learn from this book

                  • 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

                  In Detail

                  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.

                  Approach

                  This cookbook follows a problem-solution approach to doing important tasks and is packed with examples accompanied by the necessary code and screenshots.

                  Who this book is for

                  If you are a GIS-related professional with some basic knowledge of web technologies and want to start or gain in-depth knowledge of creating web mapping applications, this book is written for you

                  The recipes are appropriately mixed to suit JavaScript newbies or experts and cover basic to advanced topics on OpenLayers.

                  Code Download and Errata
                  Packt Anytime, Anywhere
                  Register Books
                  Print Upgrades
                  eBook Downloads
                  Video Support
                  Contact Us
                  Awards Voting Nominations Previous Winners
                  Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                  Resources
                  Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software