OpenLayers 2 is outdated. Go to the latest 3.x version:

Downloading OpenLayers

Current Stable API URL is always

Current Version API URL is

Latest stable release: .tar.gz .zip

Older releases:

Getting the Development Version From Github

OpenLayers' development branch is now on GitHub:

You can thus download OpenLayers by cloning the Git repository:

git clone

The repository is world readable. Write access is limited. To contribute to OpenLayers' development, it's important to be comfortable working with git. The help pages on GitHub provide a nice starting place for this.

Or, if you prefer Subversion:

svn co
Last modified 5 months ago Last modified on May 19, 2016 11:58:16 PM