OpenLayers OpenLayers
Put an open map widget in any web page!
Double-click to zoom in, and drag to pan. Hold down the shift key and drag to zoom to a particular region.

Get OpenLayers Now

Latest stable release: Link to the hosted version | OpenLayers-2.0.tar.gz | Class Documentation | See Screenshots

Latest Development Release: Test out OpenLayers 2.1-RC2! Link to 2.1-RC2 Hosted Version.

FOSS4G: Was the FOSS4G presentation too early for you this morning? The presentation is available in Open Office Impress format, and the examples are available as well.

About...

OpenLayers makes it easy to put a dynamic map in any web page. It can display map tiles and markers loaded from any source. MetaCarta developed the initial version of OpenLayers and gave it to the public to further the use of geographic information of all kinds. OpenLayers is completely free, Open Source JavaScript, released under the BSD License.

Put a map in your page.

We've released a Map Viewer Service that lets you put a map in your page easily. Just put this HTML in your page:

      <iframe src="http://openlayers.org/viewer/"
        width="400px" height="200px"
        scrolling="no"
        marginwidth="0" marginheight="0"
        frameborder="0">
      </iframe>

Read more examples in the 20-second tutorial. The visual appearance of the MapViewer is not yet stable. If you like it, please join the users' email list and tell us about your use.

For Developers!

OpenLayers is a pure JavaScript library for displaying map data in most modern web browsers, with no server-side dependencies. OpenLayers implements a (still-developing) JavaScript API for building rich web-based geographic applications, similar to the Google Maps and MSN Virtual Earth APIs, with one important difference -- OpenLayers is Free Software, developed for and by the Open Source software community.

Furthermore, OpenLayers implements industry-standard methods for geographic data access, such as the OpenGIS Consortium's Web Mapping Service (WMS) and Web Feature Service (WFS) protocols. Under the hood, OpenLayers is written in object-oriented JavaScript, using Prototype.js and components from the Rico library. The OpenLayers code base already has hundreds of unit tests, via the Test.AnotherWay framework.

As a framework, OpenLayers is intended to separate map tools from map data so that all the tools can operate on all the data sources. This separation breaks the proprietary silos that earlier GIS revolutions have taught civilization to avoid. The mapping revolution on the public Web should benefit from the experience of history.

Getting the Code

Releases are made available on the downloads page. Additionally, if you wish to use OpenLayers in a web application, you can include http://www.openlayers.org/api/OpenLayers.js in your page, to always get the latest release.

The code is also available in our Subversion repository. Using Subversion, you can keep up to the absolute bleeding edge of the code. If you wish to report a bug in the API, and you are able to use Subversion, please see if the bug has been fixed in Subversion first: OpenLayers is under rapid development, so things change quickly.

If you don't have Subversion or don't want to download the code, you can still try some live examples on openlayers.org. If you're familiar with JavaScript, try viewing the source of the examples to get an idea how the OpenLayers library is used.

OpenLayers is still undergoing rapid development, so expect a lot to change in the next few weeks and months. We need your support! Please check the wiki for the very latest updates and documentation, and thank you for taking an interest.