MapToPoster is a Python command-line tool that geocodes a city, renders OpenStreetMap street data with matplotlib and OSMnx, and exports themed printable posters at configurable size and resolution.
Overview
MapToPoster turns a chosen city and country into a minimalist map poster you generate from the terminal. It geocodes the location (with optional latitude and longitude overrides), downloads map geometry, and renders roads and labels using a selected visual theme.
Required flags are city and country names; optional controls include theme, map radius in meters, poster width and height in inches, and switches to list themes or render all bundled palettes. Seventeen preset themes such as noir, blueprint, neon cyberpunk, and japanese ink ship as JSON definitions you can extend by adding files under the themes directory.
Multilingual labels support custom display names plus Google Fonts families, with fonts downloaded and cached locally. A resolution table maps inch sizes to common print and social targets at 300 DPI, and distance guidance covers small versus sprawling metros.
Output images land in a posters folder using a predictable city-country-theme filename pattern. Install with uv or pip in a virtual environment. Bug fixes are welcome as contributions; web or desktop UI and Docker packaging are not in scope for now.
Key features
- City geocoding via Nominatim
- OSMnx and matplotlib rendering pipeline
- Seventeen built-in color themes
- Custom theme JSON files
- Configurable map radius and poster size
- Google Fonts with local caching
- Batch export across all themes
- Scripted typography for Latin and non-Latin text
Use cases
- Printable art posters of favorite cities
- Social images at preset inch dimensions
- Themed gifts with distinct map styles
- Non-Latin city names on posters
- Tight downtown versus metro-wide map crops