Let's dive into OpenLayers and make a map! After you finish this section, you should have a working map, which uses a publicly available WMS server backend from OSGeo.
codedirectory that contains the
/themedirectories. Create a file here called
index.html. This directory (
/code) will be referred to as our root directory, because it is the base (root) folder where all our files reside.
index.htmland save the file as an
.htmlfile—if you are using Windows, I suggest using Notepad++. Do not try to edit the file in a program like Microsoft Word, as it will not save properly. The following code will also be used as the base template ...