Pizza map: QGIS basics

Published September 8, 2025 News
GIS qgis osm foss leaflet tutorial mapping maps-at-mixi

In our next Maps @ MIXI meeting we’ll take a look at the basics of working with geospatial data and creating map in QGIS, a free and open-source desktop GIS application.

We’ll look at:

For my map, I’m making a guide to the pizza places near my apartment on the Prospect Heights/Crown Heights border in Brooklyn. There’s a lot we can do with just the core functionality (and no programming).

You can see the final version of the map online, here: https://data.mixi.nyc/ph-pizza-map/

The pizza map in QGIS


Install QGIS

QGIS is a free and open-source geographic information system (GIS) that allows users to create, edit, visualize, analyze, and publish maps and other geospatial information.

Follow the instructions https://qgis.org/download/ to install it for your platform. It works on Linux, Mac, and Windows.


Install/enable QuickMapServices to choose a basemap

The QuickMapServices plugin provides a lot of different “basemaps”. These let you see and add on top of OpenStreetMap, Google Maps, satellite images, and the very useful CartoDB basemaps.

1. Install QuickMapServices

2. Add Basemaps

Follow these instructions to add a basemap later ro your project. You can add more than one and toggle them on/off as needed in the Layers panel (left side).


Import OSM Points into QGIS using QuickOSM

1. Install the Plugin

2. Open QuickOSM

3. Build Your Query

  1. Choose “Quick Query” in the left panel
  2. Key: amenity
  3. Value: pizza (or restaurant, school, etc.)
  4. In: select Canvas Extent, this searches the active area of the open map. Zoom/pan to change the search area before running the query.
  5. Click Run Query QuickOSM query dialog

4. Explore the Results


Working with Attribute Data in QGIS

We imported all of the data about our “amenities” that was available from OpenStreetMap. This includes all kinds of stuff (street address, website, open hours, etc). It also includes several “ID” fields. For our simple web map, we just want a name and a description of the place. We can delete all of the other fields except for name.

We can edit the data table to delete any places we don’t want to include in our map. Once we have just the points we need, we can edit the names and add our own descriptions.

1. Open the Attribute Table

2. Delete Unwanted Fields

  1. In the attribute table, click the Pencil icon (Toggle Editing Mode).
  2. Click the Delete Field button (trash can icon).
  3. Select the fields (columns) you don’t need → OK. Don’t delete fid – QGIS needs it.
  4. Save edits (disk icon) and turn off editing.

3. Add a New Field

  1. Attribute table → Toggle Editing Mode.
  2. Click the New Field button (plus icon).
  3. Choose:
    • Name: field name (e.g., description).
    • Type: Text, Integer, Decimal, Date, etc.
    • Length / Precision if needed.
  4. Click OK → the new field is added as a column.

4. Edit Attributes

5. Save Changes


Export QGIS Maps to HTML/Leaflet with qgis2web

This plugin allows you to export your QGIS project as an interactive web map using Leaflet. Leaflet is one of the most popular JavaScript libraries for programming and publishing interactive maps. Your map will probably work fine if you just choose “Leaflet” and choose export.

1. Install qgis2web

2. Configure Layers

3. Export

4. Result


Make it better

Obviously this tutorial doesn’t cover everything. With a little more work you can: