The ol package

The recommended way to use OpenLayers is to work with the ol package. You can install the latest with npm:

npm install ol

Hosted builds for development

If you want to try out OpenLayers without downloading anything (not recommended for production), include the following in the head of your html page:

<script src="https://cdn.jsdelivr.net/gh/openlayers/[email protected]/dist/en/v7.0.0/legacy/ol.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/[email protected]/dist/en/v7.0.0/legacy/ol.css">

Downloads for the v7.0.0 release

ArchiveDescription
v7.0.0-site.zip Includes examples and documentation.
v7.0.0-legacy.zip Includes the legacy build of the library.

See the v7.0.0 release page for a changelog and any special upgrade notes.

For archives of previous releases, see the complete list of releases.