Exporting a web map
To create web maps from within QGIS, we can use the QGIS2Web plugin, which we have to install using the Plugin Manager. Once it is installed, go to Web | qgis2web | Create web map to start it. QGIS2Web supports the two most popular open source web mapping libraries: OpenLayers 3 and Leaflet.
I have created a new QGIS project and set the projection (in the bottom-right corner) to EPSG 3857. This is the web Mercator projection. I have loaded the Airports and Alaska shapefile and the OpenStreetMap XYZ tile (refer to data creation and editing in Chapter 2, Data Creation and Editing).
The following screenshot shows an example of our airports dataset. In this example, we are using the OpenLayers library (as configured in the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access