Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenLayers Cookbook

You're reading from   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.

Arrow left icon
Product type Paperback
Published in Aug 2012
Publisher Packt
ISBN-13 9781849517843
Length 300 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (15) Chapters Close

OpenLayers Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Web Mapping Basics FREE CHAPTER 2. Adding Raster Layers 3. Working with Vector Layers 4. Working with Events 5. Adding Controls 6. Theming 7. Styling Features 8. Beyond the Basics Index

Index

A

  • addControls method / How it works...
  • addFeatures() method / How it works...
  • addPopup() method / How it works...
  • addUniqueValueRules() method / There's more...
  • alwaysInRange property / How it works...
  • animation function / How it works...
  • areas
    • measuring / Measuring distances and areas, How to do it..., How it works...
    • measure control, analyzing / How it works...
  • ascending property / How it works...
  • attribute replacement syntax / How it works...

B

  • base layer
    • about / How to do it...
    • working / How it works..., There's more..., How it works..., There's more...
    • setting requirement, avoiding / Avoiding the need of a base layer, How to do it...
  • beforefeatureadded event listener / How it works...
  • Bing imagery
    • using / Using Bing imagery, How to do it...
    • working / How it works...
  • Bing Maps layer types / How it works...

C

  • changeImmediate function / How it works...
  • changeListener() function / How it works...
  • checked parameter / How to do it..., How it works...
  • CLASS_NAME attribute / How it works...
  • clone() method / How it works...
  • clustered features
    • styling / Styling clustered features, How to do it...
    • working / How it works...
  • cluster strategy
    • about / Using the cluster strategy
    • using / How to do it...
    • working / How it works...
    • controlling parameters / How it works...
  • colorFunction / How it works...
  • computeLonLat function / How to do it...
  • context property / How it works...
  • controls
    • about / Adding and removing controls
    • removing / How to do it...
    • adding / How to do it...
    • working / How it works...
    • placing, outside map / Placing controls outside the map, How to do it..., How it works...
  • controls property / There's more...
  • count attribute / How it works...
  • createSymbolizer method / There's more...
  • Cross / Creating a custom control
  • CSS / Introduction
  • CSS standard / Introduction
  • custom control
    • about / Creating a custom control
    • creating / How to do it...
    • working / How it works..., There's more...
  • custom renderer
    • about / Creating a custom renderer
    • creating / How to do it...
    • working / How it works..., There's more...
  • custom rules
    • defined, for feature styling / Defining custom rules to style features, How to do it...
    • working / How it works...

D

  • data source
    • feature information, obtaining / Getting feature information from data source, How to do it..., How it works..., There's more...
  • date line options
    • wrapping / Wrapping the date line options, How to do it...
    • working / How it works...
  • destroy() method / How it works..., How it works...
  • displayClass property / There's more...
  • displayInLayerSwitcher property / How it works...
  • displayProjection option / How it works...
  • distance
    • measuring / Measuring distances and areas, How to do it..., How it works...
  • div option / How it works...
  • Dojo
    • URL / There's more...
  • Dojo Toolkit / How to do it...
  • Dojo Toolkit framework / Getting ready
  • DOM / Introduction
  • drawPoint() method / How to do it...
  • drawPoint method / There's more...

E

  • EPSG*4326 / Working with projections
  • EPSG*900913 / Working with projections
  • event
    • about / Introduction
    • zoomend event / Introduction
    • move / How it works...
    • locationupdated / How it works...
  • eventListener property / How it works...
  • event object / How it works...
  • events.register() function / How it works...
  • EVENT_TYPES array property / Introduction
  • ExtJS
    • URL / There's more...

F

  • $ function / There's more...
  • featureRadius attribute / How it works...
  • features
    • creating programmatically / Creating features programmatically, How to do it..., How it works...
    • creating, from WKT / Reading and creating features from a WKT, How to do it..., How it works..., See also
    • reading, from WKT / Reading and creating features from a WKT
    • adding, from WFS / Adding features from a WFS server, How to do it..., How it works..., There's more...
    • filtering, in WFS requests / Filtering features in WFS requests, Getting ready, How to do it..., How it works..., There's more...
    • reading, protocols used / Reading features directly using Protocols, How to do it..., How it works...
    • modifying / Modifying features, How to do it...
    • editing toolbar, working / How it works...
    • styling, symbolizers used / Styling features using symbolizers, Getting ready, How to do it..., How it works...
  • feature styling
    • symbolizers, using / Styling features using symbolizers
    • StyleMap, using / Improving style using StyleMap and the replacement of feature's attributes
    • custom rules, defining / Defining custom rules to style features
  • fillColor property / How it works...
  • Filter Encoding Specification / Filtering features in WFS requests
  • filter property / How it works...
  • format parameter / How it works...

G

  • geodesic property / How it works...
  • GeoExt project / There's more...
  • Geolocate control / How it works...
  • geolocation
    • about / Working with geolocation
    • working with / How to do it..., How it works...
    • events, triggering / How it works...
  • Geolocation API / Working with geolocation
  • geolocationClick function / How it works...
  • geometryName option / How it works...
  • geometry parameter / How to do it...
  • geometryType property / How it works...
  • getfeatureinfo event / How it works...
  • getLocalXY() method / How to do it...
  • GML
    • about / Adding a GML layer
  • GML layer
    • adding / Adding a GML layer
    • working / How it works...
  • Google Maps API / Using Google Maps imagery
  • Google Maps imagery
    • about / Using Google Maps imagery
    • using / How to do it...
    • working / How it works..., See also
  • green theme / Getting ready

H

  • handlers / Introduction
  • hover option / How it works...
  • HTML / Introduction
  • HTML5 / Working with geolocation

I

  • image layer
    • about / Creating an image layer
    • creating / How to do it...
    • working / How it works...
    • OpenLayers.Layer.Image class, parameters / How it works...
  • image layers
    • used, for animation creating / Making an animation with image layers, How to do it...
    • working / How it works...
  • Imagery / Introduction
  • image sprite / There's more...
  • img folder
    • using / Understanding how themes work using the img folder, How it works..., There's more...
  • immediate property / How it works..., How it works...
  • infoFormat property / There's more...
  • init function / How to do it...
  • initialize method / How it works..., There's more...
  • intersects method / How it works...
  • intervals
    • about / How it works...
  • isBaseLayer property / How it works...

J

  • JavaScript / Introduction

K

  • KML
    • about / Adding a KML layer
  • KML layer
    • about / Adding a KML layer
    • adding / Adding a KML layer, How to do it...
    • working / How it works..., There's more...

L

  • layer opacity
    • about / Changing the layer opacity
    • changing / How to do it...
    • working / How it works..., See also
  • layers property / There's more...
  • LayerSwitcher control / How it works...
  • line intersection features
    • selecting / Selecting features intersecting with a line, How to do it...
    • working / How it works...
  • loadstart event / How it works...
  • locateMarker function / How it works...
  • locationfaile event / How it works...
  • locationuncapable event / How it works...
  • locationupdate event / How it works...

M

  • map
    • markers, adding to / Adding markers to the map, How to do it..., How it works...
    • OpenLayers.Control.NavToolbar control / How it works...
  • map's option
    • setting / Playing with the map's options, How to do it...
    • working / How it works...
  • map's stack layers
    • managing / Managing map's stack layers, How to do it...
  • map.addControl() method / How it works...
  • map.getLayersByName() method / How it works...
  • map.getNumLayers() method / How it works...
  • map.moveTo() method / How it works...
  • map.pan() method / How it works...
  • map.panTo() method / How it works...
  • map.setCenter() method / How it works...
  • map.setOptions() method / How it works...
  • map extent
    • restricting / Restricting the map extent, How to do it...
    • working / How it works...
  • map layers
    • work in progress indicator, implementing / Implementing a work in progress indicator for map layers, How to do it...
  • map navigation
    • about / Buffering the layer data to improve the map navigation
    • improving, layer data buffering / Buffering the layer data to improve the map navigation, How to do it...
    • working / How it works...
  • map stack layers
    • working / How it works..., There's more..., How it works...
    • managing / How to do it...
  • map view
    • navigating / Moving around the map view, How to do it...
    • working / How it works...
  • markers
    • adding, to map / Adding markers to the map, How to do it..., How it works...
    • point features, using as / Using point features as markers, How to do it..., How it works...
  • maxExtent property / How it works...
  • maximized property / How it works...
  • measureClick function / How it works...
  • measurepartial event / How it works...
  • Measure toggle button / Measuring distances and areas
  • modifyChanged function / How it works...
  • mouseOverListener function / How it works...
  • move event / How it works...

N

  • navigationChanged function / How it works...
  • NavigationHistory control / How it works...
  • navigation history control
    • about / Adding a navigation history control
    • adding / How to do it...
    • working / How it works...
  • NEXTRAD / Making an animation with image layers
  • nogetfeatureinfo event / How it works...
  • non-base layer
    • about / How to do it...
    • working / How it works..., There's more...
  • non-OpenLayers events
    • listening / Listening for non-OpenLayers events, How to do it...
    • working / How it works...
    • observation, terminating / Stop observing

O

  • object / There's more...
  • OGC
    • about / Adding WMS layer
  • olControlPanZoomBar class / How it works...
  • olTileImage class / How it works...
  • onClick function / How to do it...
  • on method / How it works...
  • onMove method / How to do it...
  • onSelect option / How it works...
  • onUnselect option / How it works...
  • opacity property / How it works...
  • OpenGeo project / How it works...
  • OpenLayers
    • Box strategy / There's more...
    • Refresh strategy / There's more...
    • Filter strategy / There's more...
    • events / Introduction
    • controls / Adding and removing controls
    • features, modifying / Modifying features
    • theming / Introduction
    • about / Introduction, Introduction
    • features / Introduction
    • custom control / Creating a custom control
  • OpenLayers.Control class / Introduction
  • OpenLayers.Event.observe method / Stop observing
  • OpenLayers.Event.stopObservingElement method / Stop observing
  • OpenLayers.Events class / There's more...
  • OpenLayers.Feature.Vector class / How it works...
  • OpenLayers.Geometry class / Introduction
  • OpenLayers.Handler.DragPan class / Introduction
  • OpenLayers.Layer.Grid class / Introduction
  • OpenLayers.Layer.Image class / Creating an image layer, How it works...
  • OpenLayers.Layer.Vector class / Introduction, How it works...
  • OpenLayers.Layer.WMS class / Setting the tile size in WMS layers
  • OpenLayers.Layer class / Introduction, Changing the zoom effect
  • OpenLayers.Request
    • about / Retrieving remote data with OpenLayers.Request
    • remote data, retrieving / How to do it...
    • working / How it works..., There's more...
  • OpenLayers.Request.GET method
    • parameters / How it works...
  • OpenLayers.Size class / How it works...
  • OpenLayers.Util.extend method / There's more...
  • OpenLayers.Util class / How it works...
  • OpenLayers controls
    • actions, placing outside / Starting actions outside the controls, How to do it...
    • features / Starting actions outside the controls
    • working / How it works...
  • OpenLayers theme
    • about / Creating a new OpenLayers theme
    • creating / Creating a new OpenLayers theme, Getting ready, How to do it...
    • working / How it works..., There's more...
  • options parameter / How it works...
  • OverviewMap control / How it works...

P

  • PanZoomBar control / Understanding how themes work using the img folder
  • pointAction function / How it works...
  • point features
    • using, as markers / Using point features as markers, How to do it..., How it works...
  • popups
    • about / Working with popups
    • working with / How to do it..., How it works...
  • POP_RANK attribute / How it works...
  • Proj4js Library
    • URL / Working with projections
  • projection option / How it works...
  • projections
    • about / Working with projections, Getting ready
    • working with / How to do it..., How it works..., See also
  • protocols
    • using, for feature read / Reading features directly using Protocols, How to do it..., How it works...

Q

  • queryVisible property / How it works...

R

  • raster layer
    • Google Maps imagery, using / Using Google Maps imagery
    • Bing imagery, using / Using Bing imagery
    • WMS layer, adding / Adding WMS layer
    • date line options, wrapping / Wrapping the date line options
    • zoom effect, changing / Changing the zoom effect
    • layer opacity, changing / Changing the layer opacity
    • WMS with single mode, using / Using WMS with single tile mode
    • layer data, buffering / Buffering the layer data to improve the map navigation
    • image layer, creating / Creating an image layer
    • size setting, in WMS layers / Setting the tile size in WMS layers
    • tiles, delimiting / Delimiting tiles in a raster layer, How to do it..., How it works..., See also
  • raster layers
    • about / Introduction
  • read() method / How it works...
  • renderers property / How it works...
  • render intents
    • about / Playing with StyleMap and the render intents
    • playing with / Playing with StyleMap and the render intents, How to do it...
    • working / How it works...
    • feature styling process, steps / There's more...
  • restrictedExtent property / How it works...
  • rules / Defining custom rules to style features

S

  • same origin policy / There's more...
  • selectPath method / How it works...
  • setFeatureStyle function / How it works...
  • setImmediate method / How it works...
  • setOpacity() method / How it works...
  • side-by-side map comparator
    • about / Creating a side-by-side map comparator
    • creating / How to do it...
    • working / How it works..., There's more...
    • event listener, registering / Another way to register an event listener
  • source class parameter / There's more...
  • Spherical Mercator / How it works...
  • srsName option / How it works...
  • style
    • about / Introduction
    • improving, StyleMap used / Improving style using StyleMap and the replacement of feature's attributes, How to do it..., How it works..., See also
  • StyleMap
    • used, for style improving / Improving style using StyleMap and the replacement of feature's attributes, How to do it..., How it works..., See also
    • working / How it works...
  • styleMap property / How it works...
  • symbolizer
    • about / Styling features using symbolizers
  • symbolizers
    • used, for feature styling / Styling features using symbolizers, Getting ready, How to do it..., How it works...
    • working / How it works...

T

  • temp attribute / How it works...
  • theme
    • working, img folder used / Understanding how themes work using the img folder, How to do it..., How it works..., There's more...
    • working, theme folder used / Understanding how themes work using the theme folder, How to do it..., How it works..., There's more...
    • OpenLayers theme, creating / Creating a new OpenLayers theme
  • theme folder / Introduction
    • using / Understanding how themes work using the theme folder, How to do it..., How it works..., There's more...
  • the PanZoomBar control icon / How it works...
  • tiles
    • delimiting, in raster layer / Delimiting tiles in a raster layer, How to do it..., How it works..., See also
  • timeouts
    • about / How it works...
  • tranform() method / How it works...
  • transparent parameter / There's more...
  • trigger method / How it works...

U

  • unique value rules
    • about / Working with unique value rules
    • working with / How to do it... , How it works...
  • units option / How it works...
  • un method / There's more...
  • updateHandler method / How it works...
  • updateLoader listener function / How it works...
  • updateMeasure function / How it works...

V

  • vector layer' events
    • about / Listening for vector layer features' events
    • listening / How to do it...
    • working / How it works...
  • vector layers
    • about / Introduction
    • GML layer, adding / Adding a GML layer
    • KML layer, adding / Adding a KML layer
    • features, changing programmatically / Creating features programmatically
    • features, creating from WKT / Reading and creating features from a WKT
    • markers, adding to map / Adding markers to the map
    • point features , using as markers / Using point features as markers
    • popups, working with / Working with popups
    • features, adding from WFS server / Adding features from a WFS server
    • cluster strategy, using / Using the cluster strategy
    • features, filtering in WFS requests / Filtering features in WFS requests
    • feature reading, Protocols used / Reading features directly using Protocols
    • features, editing / Editing features on multiple vector layers, How to do it...
    • OpenLayers.Control.EditingToolbar control, working / How it works...
    • key points / How it works...
    • styling / Introduction

W

  • WFS
    • about / Adding features from a WFS server
    • features, adding from / Adding features from a WFS server, How to do it..., How it works..., There's more...
  • WFS protocol
    • parameters / How it works...
  • WFS requests
    • features, filtering / Filtering features in WFS requests
  • WKT
    • features, reading from / Reading and creating features from a WKT, How to do it..., See also
    • features, creating from / Reading and creating features from a WKT, How to do it..., See also
  • WMS
    • about / Adding WMS layer, Using WMS with single tile mode, Getting information from the WMS server
    • information, obtaining / Getting information from the WMS server, How to do it...
    • working / How it works...
  • WMS, in single tile mode
    • about / Using WMS with single tile mode
    • using / How to do it...
    • working / How it works..., See also
  • WMS layer
    • adding / Adding WMS layer, How to do it...
    • working / How it works..., How it works...
    • parameters / How it works...
    • about / Setting the tile size in WMS layers
    • tile size, setting / Setting the tile size in WMS layers, How it works...
  • work in progress indicator
    • implementing, in map layers / Implementing a work in progress indicator for map layers, How to do it...
    • working / How it works...
  • wrapDateLine property / How it works...

X

  • XDR / There's more...

Z

  • zoom effect
    • about / Changing the zoom effect
    • level, changing / How to do it...
    • working / How it works...
  • zoomend event / Introduction
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image