Library / SDK
chrieke/prettymapp avatar
chrieke/prettymapp

Prettymapp: OpenStreetMap poster maps from a Streamlit webapp or a Python script

🖼️ Create beautiful maps from OpenStreetMap data in a streamlit webapp

2,850 stars450 forksPythonMIT

At a glance

What is it?
Prettymapp is a rewrite of the prettymaps project that trades configuration depth for speed and a small style dictionary. It ships a Streamlit webapp and a pip-installable package that draws OSM data with matplotlib.
Who is it for?
Adopt prettymapp if you want a rendered map image from an address or a bounding box without writing matplotlib code, and you accept the four predefined styles or a hand-edited draw_settings dictionary. Do not adopt it if you need interactive pan and zoom, tile serving, or GIS analysis; it produces a static figure, and the README does not document any interactive output.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 139 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • chrieke/prettymapp2,850 ★ · +25
Star history
Repository2026-10-042026-11-24
chrieke/prettymapp2.8k2.9k

25 Stars in the last 51 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What prettymapp does that a GIS stack does not

The project's own README is blunt about its lineage: prettymapp is based on a rewrite of the prettymaps project, and the rewrite "focuses on speed and adapted configuration to interface with the webapp." That sentence is the whole product thesis. The original prettymaps exposed a deep configuration surface; this fork drops the complex options in favour of reduced code complexity and simplified configuration interfaces, and adds a Streamlit component on top. The audience is therefore not a GIS analyst. It is someone who has an address, a radius, and a wall or a slide deck. You give it a location, it queries OpenStreetMap, and matplotlib draws a poster. The output is a static image, not a map you pan. If you need layers, projections, or attribute queries, the README points at nothing that would help you, because that is not the shape of the tool.

The pipeline: address to area of interest to GeoDataFrame to figure

Four modules carry the whole flow, and the README's Python example names all of them. prettymapp.geo.get_aoi takes an address string and a radius and returns an area of interest; the example passes rectangular=False, so the default shape is not a rectangle. prettymapp.osm.get_osm_geometries takes that AOI and returns a dataframe of geometries. prettymapp.plotting.Plot takes the dataframe, the AOI bounds and a draw_settings dictionary, and plot_all returns a matplotlib figure you save yourself. The style comes from prettymapp.settings.STYLES, a dictionary with four entries: Peach, Auburn, Citrus and Flannel. The OSM side is filtered by LANDCOVER_CLASSES, also in settings.py, which maps a class name to OSM tag selectors. The README shows grassland configured with "leisure": True to include all leisure subclasses and "natural": ["island"] to select only specific natural subclasses, and urban with "building": False to drop all building subclasses. So the data flow is address, Overpass query, filtered geometry frame, styled matplotlib render. There is also a second entry point: get_osm_geometries_from_xml reads an exported OSM XML file, which means you can work from a downloaded extract instead of a live query.

Installing prettymapp and drawing your first map

The package requires Python 3.11 or newer. For the library alone, the README gives a single pip command. After it finishes you have the prettymapp package and its dependencies, which include osmnx pinned to >=2.0.7,<3, geopandas, shapely, pandas and matplotlib.

bash
pip install prettymapp

The first real use is the README's own example: pick an address, fetch geometries, style them, save. Note that get_aoi takes radius in what the example treats as meters and returns an object whose .bounds you pass straight into Plot. The figure is a matplotlib Figure, so savefig writes a JPEG and nothing else is required to view it.

python
from prettymapp.geo import get_aoi
from prettymapp.osm import get_osm_geometries
from prettymapp.plotting import Plot
from prettymapp.settings import STYLES

aoi = get_aoi(address="Praça Ferreira do Amaral, Macau", radius=1100, rectangular=False)
df = get_osm_geometries(aoi=aoi)

fig = Plot(df=df, aoi_bounds=aoi.bounds, draw_settings=STYLES["Peach"]).plot_all()
fig.savefig("map.jpg")

If you would rather run the webapp locally, the README uses uv for that path, and the repository Makefile wraps the same commands in a setup target and an app target.

bash
git clone https://github.com/chrieke/prettymapp.git
cd prettymapp
uv sync --extra streamlit
uv run streamlit run streamlit-prettymapp/app.py

The streamlit extra pulls in streamlit and streamlit-image-select. There is also a Dockerfile that installs the package from local source rather than PyPI, pins streamlit==1.52.2 and streamlit-image-select==0.6.0, exposes port 8501, and health-checks http://localhost:8501/_stcore/health.

Custom styles mean editing a dictionary, not a config file

There is no stylesheet, no YAML theme, no CLI flag for appearance. Customisation is Python: you copy STYLES["Peach"] and overwrite a key. The README's example replaces the urban entry with a cmap list, an edge color ec, a line width lw and a zorder. Those keys are matplotlib concepts leaking through the abstraction, which is honest but also the ceiling. If you want a font, the package data includes fonts/PermanentMarker-Regular.ttf, so a font swap is a file-level concern rather than a documented option. The Plot class accepts additional arguments the README names only in passing, shape and contour_width among them, with the example passing shape="circle" and contour_width=0. Everything else about layout has to be read out of prettymapp/plotting.py. That is a real cost: the README tells you the knobs exist but not what values they take, so anyone doing more than the four presets is reading source. The webapp examples file, streamlit-prettymapp/examples.json, is where the README sends you for inspiration, which suggests the presets are meant to be copied and mutated rather than configured.

Where prettymapp breaks or is simply the wrong tool

The dependency pin is the first hard boundary. osmnx is constrained to >=2.0.7,<3, and the pyproject comment explains why: major osmnx releases reorganise the API surface, and 1.x to 2.x did exactly that. If your environment already holds osmnx 3.x for another project, you cannot install prettymapp alongside it without a resolver conflict. The second boundary is the data source. get_osm_geometries queries OpenStreetMap, so the map is only as complete as OSM is for that area, and the README does not document retry behaviour, caching policy or what happens when Overpass is slow or unreachable. The repository does contain a cache/ directory, but the README says nothing about what it stores or how it is invalidated, so treat it as an implementation detail rather than a documented feature. The third boundary is the output. This is a static matplotlib figure. It is the wrong tool for interactive exploration, for tile serving, for routing, for anything that needs a spatial join you did not pre-bake into LANDCOVER_CLASSES. The project labels itself Development Status 4 - Beta and the README says it is partially tested, which is consistent with a tool that is polished for its one job and thin everywhere else.

Prettymapp versus prettymaps and versus QGIS

The obvious alternative is the upstream prettymaps project by marceloprates, and the README is explicit that all credit for the original idea, designs and implementation goes there. The difference is scope, not quality. Upstream keeps the more complex configuration options; prettymapp removes them to gain speed, reduce code complexity and expose a simpler interface the webapp can drive. So the choice is between expressiveness and a form. If your goal is a scripted poster with a handful of presets, prettymapp's narrower surface is the point. If you need the full original configuration vocabulary, the rewrite deliberately does not have it. QGIS is the other reference point, and the contrast is sharper: QGIS is an interactive desktop GIS where you compose layers, choose projections and style features by attribute, and where the map is a document you keep editing. Prettymapp takes an address and returns a JPEG. They overlap only in that both can draw OSM data. One is a workstation; the other is a function call.

Maintenance, licensing and what an upgrade costs you

The repository is not archived, and the last push was on 2026-07-08, which is recent enough that the project is not dormant. Release cadence is uneven rather than regular: 0.5.0 in December 2024, 0.6.0 in December 2025, 0.7.0 in July 2026. That is roughly one release a year, so plan for a long-lived dependency rather than a fast-moving one. The current version in pyproject.toml is 0.7.0, matching the latest release. Upgrades are cheap in the good case and expensive in the osmnx case: because the pin is a major-version ceiling, an osmnx 3.x upgrade is a project-level event, not a routine bump. The Makefile shows what the maintainer runs before shipping, a test target that runs black, pytest with pylint and mypy plugins, and a separate test[live] target that adds --runlive for tests hitting live services. The live target is the one that matters for you, because it implies the default test run does not exercise real Overpass queries. Licensing is MIT, declared both in pyproject.toml and in the LICENSE file at the repository root, with license-files configured so the licence ships in the distribution. MIT is permissive and imposes no source-disclosure obligation on your own code, but the OSM data itself carries its own attribution requirements from the OpenStreetMap project, and the README does not address that. Check the ODbL terms yourself before publishing a map commercially.

Editorial conclusion

Adopt prettymapp if you want a rendered map image from an address or a bounding box without writing matplotlib code, and you accept the four predefined styles or a hand-edited draw_settings dictionary. Do not adopt it if you need interactive pan and zoom, tile serving, or GIS analysis; it produces a static figure, and the README does not document any interactive output. Before committing, check three things: that osmnx>=2.0.7,<3 resolves in your environment, that the Overpass query for your area returns the landcover classes you expect, and whether the style you want is one of Peach, Auburn, Citrus or Flannel or something you are willing to build yourself.

Frequently asked questions

How do I install prettymapp?

For the library, the README gives pip install prettymapp. For the webapp locally, it gives git clone, then uv sync --extra streamlit, then uv run streamlit run streamlit-prettymapp/app.py.

What styles does prettymapp include?

The README names four predefined styles in prettymapp/settings.py: Peach, Auburn, Citrus and Flannel. You can copy one and edit its draw_settings dictionary to build your own.

Can prettymapp use an exported OSM file instead of a live query?

Yes. The README shows get_osm_geometries_from_xml reading a filepath such as Berlin.osm, after which you take aoi_bounds from df.total_bounds.

What Python version does prettymapp require?

pyproject.toml declares requires-python = ">=3.11", and the Dockerfile builds on python:3.11-slim.

What licence does prettymapp use?

MIT, declared in pyproject.toml as license = { text = "MIT" } and included in the distribution via license-files. The OpenStreetMap data it draws is governed separately by the OpenStreetMap project's own terms.

Official sources

  1. chrieke/prettymapp on GitHub
  2. Issues
  3. License: MIT
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/chrieke-prettymapp.svg)](https://hysenlabs.com/projects/chrieke-prettymapp)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/chrieke-prettymapp.svg)](https://hysenlabs.com/projects/chrieke-prettymapp)

Was this useful?