Hooking up web clients

Sometimes, the best way to share a map is to build a website with a map embedded in it. There are many methods to accomplish this goal, ranging from a simple dump of a few layers to a highly-interactive map, which is based on web services. There are many web clients that will work with standard OGC services. This recipe will show you how to build a simple web map using Leaflet—a popular JavaScript library that is used to create web maps.

Getting ready

You will need the qgis2leaf plugin and some sample data. The schools_wake.shp (Points) and census_wake_2000.shp files make for a good example.

How to do it…

  1. Install and enable the qgis2leaf plugin.

    Tip

    Make sure to check out the qgis2web plugin, which is a newer variant that works ...

Get QGIS: Becoming a GIS Power User now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.