
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Welcome speach, for whom is this course made for, what we will do and what are the prerequisites
We will present here the basic of OpenLayers concepts (Map, View, Source, Layers, Animation, Controls, etc.). All these concepts will be detailed in later sessions.
New Concepts: the different concepts of OpenLayers's API, website, documentations, and examples.
Prerequisite: None
In this sequence we will explain how to set up your working environment and create a "Hello world!" that will be displayed in your browser.
New Concepts: having a working development environment
Prerequisite: Root access on either windows / linux / macOS
In this session, we will make our first map and add the first layer to it.
New Concepts:
The Map() & View() objects and their set up and configurations.
the "target" = the HTML container of the map
Quick introduction to the notions of Source and Layers
Prerequisite: You should have working environment and basic knowledge of OpenLayers main objects (such as the Map, Layers, Controls, etc.)
In this session, we will create a very simple map with a background layer.
New Concepts:
Difference between layer and source
Different existing sources and layers for backgrounds OpenStreetMap, Bing, Esri
Prerequisite: A working example of a OSM map view.
We will start to add more control to the map, to let user to change the map: move, zoomin, etc.
New Concepts: Controls and CSS for changing the aspects of the controls
Prerequisite: You should have a map with a background layer
Let's add more layers on our map. A lot of different formats exist, and we will choose some to add them in our map.
New Concepts: TileWMS & ImageSource objects.
Prerequisite: A map with a background with the previous controls added.
In this session, we will work on vector data, and we will see how to apply some styling on the layer.
New Concepts: VectorSource and default symbology.
Prerequisite: a map with the background layer and the earthquake WMS layer.
We will see how to display information and make the map prettier.
New Concepts: Style, style function, label, getLegendGraphic and canvas.
Prerequisite: As always, code from the previous session;
OpenLayers offer events to interact with the map and the layers, we will see some of them in this sequence.
New Concepts : events such map.on('pointermove', ...), layer.get('attribute')
Prerequisite: You know the drill, you will need all the code from the previous session.
Data come from various organizations and format, projection. In this sequence, we will work on data with various projection.
New Concepts: Projections and the ol/proj4, ol/proj modules.
Prerequisite: You know the drill, you will need Code from the previous session.
Today, mobil device are widely use and our maps should support this. We will see in this session how to easily adapt our small project to the mobile device.
New Concepts: OpenLayers out of the box mobile features (multi-touch gestures, pinch zoom, rotation), GeoLocation
Prerequisite: as always, code from the previous session
As a developer, you are interested to add a map on your website? You want to let user be able to interact with it?
OpenLayers is a JavaScript library that enables you to display and query data from multiple sources in order to build a dynamic map in any web page
What is OpenLayers’ role in an open source web mapping stack? You will see in a few sequences how to create a map, add multiple layers, controls and events to interact with your map. Then you will see how to manage different data layer formats and projection. Finally, you will be able to improve your map to export it, and add support for mobile devices. Quiz and exercises will help you consolidate your new skills for each sequence.
Of course, these first steps are required before working on bigger projects. A lot of other features are available in OpenLayers, as vector editing, distance and surface measurements, vector tiles, 3D.
But, before working with these complex features, we strongly recommend to start with this introduction to get straight in the OpenLayers API! Are you ready to code? Let's get started.
Thank you for selecting our introduction to OpenLayers.
The Camptocamp Training Team