O'Reilly logo

OpenLayers 2.10 by Erik Hazzard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – downloading OpenLayers

Let's download the OpenLayers library. After you're done, you should have the OpenLayers library files set up on your computer.

  1. Go to the OpenLayers website (http://openlayers.org) and download the .zip version (or if you prefer the .tar.gz version).
  2. Extract the file you just downloaded. When you extract it, you'll end up with a folder called OpenLayers-2.10 (or whatever your version is).
  3. Open up the OpenLayers folder. Once inside, you'll see a lot of folders and files, but the ones we are concerned with right now is a file called OpenLayers.js and two folders, /img and /theme. We'll be copying these to a new folder.
  4. Create a new folder outside the OpenLayers directory; we'll use ~/code/ (if you are on Windows, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required