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.
- Go to the OpenLayers website (http://openlayers.org) and download the
.zip version (or if you prefer the
- 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).
- 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,
/theme. We'll be copying these to a new folder.
- Create a new folder outside the OpenLayers directory; we'll use
~/code/ (if you are on Windows, ...