One email each morning — yesterday's AI, sortedGet it in your inbox

METAL LAB

marceloprates/prettymaps

13,338+63 todayPython

A Python tool that turns any place name into a hand-drawn style pretty map automatically

prettymaps is a Python library that pulls map data from OpenStreetMap and renders it as stylized artwork using matplotlib. Users can customize colors and styles per element like buildings, water, and roads. It can be run with a few lines of code, through a Streamlit web app, or in Google Colab.

What it does

  1. Type in a place name or coordinates and it fetches OpenStreetMap data to draw a map
  2. Works by fetching map data with osmnx, handling shapes with shapely, and rendering with matplotlib
  3. The layers option lets you choose which map elements (like water or buildings) to include, and style controls colors and fill patterns
  4. Built-in presets (default, minimal, macao, tijuca, etc.) let you load ready-made styles instantly
  5. Can be run as a web app via streamlit run app.py, or directly in Google Colab, no coding environment setup required

Why it matters

It lets anyone create artistic, poster-worthy maps of their neighborhood without needing geospatial expertise, useful for gifts or home decor. For developers working with geographic data visualization, it's a practical reference for styling OpenStreetMap output.

Terms in this repo

  • OpenStreetMap · A free, editable map database of the world built by volunteers
  • osmnx · A Python library for easily downloading and working with OpenStreetMap data
  • matplotlib · A widely used Python library for creating charts and graphics
  • shapely · A Python library for creating and manipulating geometric shapes like points, lines, and polygons
  • streamlit · A framework for quickly building web apps using only Python code

Repository description (English)

Draw pretty maps from OpenStreetMap data! Built with osmnx +matplotlib + shapely

Open on GitHub

Trending repos

All repos →

Latest from METAL LAB