O'Reilly logo

Instant OpenLayers Starter by Alessio Di Lorenzo, Giovanni Allegri

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

Quick start – Creating your first web map

In this section, we will show you how to create your first web map. This Hello World recipe is intended to explain what the key elements to consider are, whenever you want to develop a web map with OpenLayers.

Step 1 – Organizing your workspace

Before starting to write the code, it's a good idea to spend a little time organizing your workspace. Putting everything in order requires just two simple steps:

  1. Open the openlayers_starter folder created in step 3 of the installation. It should be available at the path /home/${USER}/www/.
  2. Create a new folder and name it recipes.

You just created the folder that will contain all of the recipes we will face until the end of this book. It is at the same level of the OpenLayers ...

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