qmetrics.net

prettymaps

Custom map plots from OpenStreetMap with Python

prettymaps fetches OpenStreetMap data and renders styled map images using osmnx, matplotlib, shapely, and vsketch.

Overview

prettymaps is a minimal Python library for drawing customized maps built from OpenStreetMap data. It combines osmnx for geodata, matplotlib for styling, shapely for geometry, and vsketch for sketch-like effects.

The plot function accepts layer definitions for which OSM features to pull and style dictionaries for how each layer should look. JSON presets such as default, minimal, macao, and tijuca load predefined combinations. Boundaries can be circles with radius and dilation options; results return geodataframes plus matplotlib figure and axes handles.

After installation you can use it in notebooks, run a Streamlit front end from the project repository, or follow the markdown and marimo tutorials. Google Colaboratory installation is documented with a runtime restart step.

The author discourages using the project for NFT sales and licenses the work under AGPLv3, requiring source disclosure when you distribute modified versions.

Key features

  • OpenStreetMap layer fetching
  • Matplotlib style per layer
  • JSON map presets
  • Circular plot boundaries
  • Streamlit front end
  • Marimo and Colab tutorials
  • Hillshade and multiplot examples

Use cases

  • Generative cartography art
  • Custom city map posters
  • Notebook map experiments
  • Exploring OSM layers visually

Tags

Similar software

CesiumJS

JavaScript library for 3D globes and web maps

CesiumJS renders interactive 3D globes and 2D maps in the browser with WebGL, streaming terrain, imagery, 3D Tiles, and time-dynamic geospatial data.

★ 16k⟳ 2 days agoApache-2.0
Maps & NavigationDesktop/CLI app

QGIS

Cross-platform desktop geographical information system

QGIS is a full-featured GIS for creating maps, managing spatial data, and running geospatial analysis on Unix, Windows, and macOS.

★ 14.9k⟳ todayGPL-2.0
Maps & NavigationDesktop/CLI app

deck.gl

WebGL2 framework for large-scale geospatial data visualization

A GPU-oriented JavaScript framework for rendering and exploring very large datasets in the browser. It stacks composable visual layers over maps or custom views.

★ 14.8k⟳ todayMIT

Maptoposter

Python CLI for minimalist city map posters

Maptoposter turns OpenStreetMap data into printable map posters for any city. You choose theme, radius, and size from the command line and export high-resolution images.

★ 14.4k⟳ 9 months agoMIT
Maps & NavigationDesktop/CLI app

MapLibre GL JS

Browser library for interactive vector tile maps

MapLibre GL JS renders map styles with WebGL from vector tiles in web pages or webviews. It continues the open mapbox-gl-js lineage after Mapbox’s license change.

★ 12.2k⟳ todayBSD-3-Clause
Maps & NavigationDesktop/CLI app
Open Source Alternative to:Mapbox

Folium

Python library for interactive Leaflet.js maps

Python package to prepare geographic data and render it on interactive Leaflet maps, combining Python data tooling with Leaflet.js on the web.

★ 7.4k⟳ yesterdayMIT
Maps & NavigationDesktop/CLI app