marceloprates/prettymaps
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
- Type in a place name or coordinates and it fetches OpenStreetMap data to draw a map
- Works by fetching map data with osmnx, handling shapes with shapely, and rendering with matplotlib
- The layers option lets you choose which map elements (like water or buildings) to include, and style controls colors and fill patterns
- Built-in presets (default, minimal, macao, tijuca, etc.) let you load ready-made styles instantly
- 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 GitHubTrending repos
- cathrynlavery/diagram-designA skill that makes AI coding tools draw magazine-quality diagrams instead of generic rounded boxes
- public-apis/public-apisA giant crowd-curated directory of free APIs for developers
- semantica-agi/semanticaAn open-source graph infrastructure that lets AI agents show their work, not just their answers
- cactus-compute/needleA 14MB AI model small enough to run tool-calling on a phone or watch, without internet
- unslothai/unslothA desktop app that lets you run and train AI models on your own computer, no coding required
- macro-inc/macroAn all-in-one workspace where email, chat, docs, tasks, and CRM are cross-linked and share one AI memory
- harry0703/MoneyPrinterTurboAn open-source tool that turns a single topic or keyword into a finished short video, complete with script, footage, subtitles, and music
- basecamp/omarchyA ready-made, opinionated Linux setup built by DHH
Latest from METAL LAB
- Grok leaks conversations, location data via commands hidden in ciphertext
- Cursor lets agents handle long-running tasks with new "/goal" command
- NVIDIA releases Switchyard, an LLM routing proxy for coding agents
- Caveman Cuts Claude Code Token Usage by 33% Using Caveman-Speak
- Apple Keeps 2027 Target for Camera AirPods, Qwen3.8-27B Makes 80 Tool Calls Locally