OpenLayers 2 is outdated. Go to the latest 3.x version: http://openlayers.org/
The primary source of documentation for the library is our
In general, our examples are routinely checked for problems, and are included in every download of OpenLayers, which helps keep them up to date and in line with current code. We try to make sure that all new functionality is covered by at least one example.
Using the search box on the examples page will let you find examples about what you're looking for relatively easily, if any are available.
This page also lists other sources of documentation, so browsing it may help you find what you're looking for.
OpenLayers has begun maintaining a set of prose documentation. Currently, it is minimal, but in the long term, most stable wiki documentation should be migrated into this website.
If you have a question you want to see answered, it may be available from our FAQ.
Automatically generated API documentation is available:
- 2.13.1 (Last stable release) API Natural Docs on dev.openlayers.org.
- Trunk API Natural Docs on dev.openlayers.org.
See Natural Docs conventions if you are contributing code.
Note on API Stability:
The documentation above only includes the API Methods. Full developer/internal library documentation is also available below, but methods which are not available in the API documentation above can not be depended upon to stay the same between releases. If you use methods included in these docs, you may have to make modifications in your application code to run between minor releases of OpenLayers.
- 2.13.1 (Last stable release) Developer Library Natural Docs on dev.openlayers.org
- Trunk Developer Library Natural Docs on dev.openlayers.org
Before Getting Started -- The Technologies Behind OpenLayers
- Introduction to JSON
- Debugging with Firebug
Other OpenLayers Documentation
- OpenLayers Example Files
- UserGuide - Start of a page giving some usage examples (very unfinished)
- The English translation of Emanuel Schütze's Thesis on Smart Map Browsing contains a technical analysis of OpenLayers.
- UserRecipes - List of examples
- UML - UML Class Diagrams of OpenLayers
- Setting up OpenLayers/TileCache with TurboGears
- OpenLayersCursors Beginner's Guide to building and using cursors in OpenLayers
- Proposition for Nice and structured documentation
- OpenLayers 2.7 Cheat Sheet, brought to you by Selectoid's Weblog
- The OpenLayers Cluster strategy class, how it works and how to customize it
- Tutorial by Peter Robins
- Some documentation on OpenLayers and Tilecache
- Other documentation on OpenLayers
- Workshop FOSS4G 2008 : Une introduction à OpenLayers (workshop wrote by Tim Schaub for the FOSS4G 2008 workshop on OpenLayers)
Russian / Русский
- User Guide - Руководство пользователя