Make sure you’ve completed the installation before starting this tutorial.
Your First Poster
Let’s create a simple poster of Paris with the default terracotta theme.Basic command
Run the following command to generate a Paris poster:
The first run may take 30-60 seconds as it downloads map data from OpenStreetMap. Subsequent runs with the same city will be much faster due to caching.
Customize Your Poster
Now let’s explore different customization options.Choose a Different Theme
MapToPoster includes 17 built-in themes. List them all:-t or --theme flag:
noir
Pure black background with white roads - perfect for minimalist aesthetics
midnight_blue
Navy background with gold roads - elegant and sophisticated
neon_cyberpunk
Dark background with electric pink/cyan - futuristic vibe
japanese_ink
Minimalist ink wash style - zen and artistic
blueprint
Architectural blueprint aesthetic - technical and precise
sunset
Warm oranges and pinks - vibrant and energetic
Adjust Map Coverage
Control how much of the city is shown with the-d or --distance parameter (in meters):
| Distance | Best for | Example Cities |
|---|---|---|
| 4000-6000m | Small/dense cities with intricate patterns | Venice canals, Amsterdam center |
| 8000-12000m | Medium cities, focused downtown areas | Paris, Barcelona, San Francisco |
| 15000-20000m | Large metros, full city overview | Tokyo, Mumbai, New York |
Custom Dimensions
Change the poster size using-W (width) and -H (height) in inches:
| Format | Resolution (px) | Dimensions (-W / -H) |
|---|---|---|
| Instagram Post | 1080 x 1080 | 3.6 x 3.6 |
| Mobile Wallpaper | 1080 x 1920 | 3.6 x 6.4 |
| HD Wallpaper | 1920 x 1080 | 6.4 x 3.6 |
| 4K Wallpaper | 3840 x 2160 | 12.8 x 7.2 |
| A4 Print | 2480 x 3508 | 8.3 x 11.7 |
| Default Poster | 3600 x 4800 | 12 x 16 |
Multilingual Posters
Create posters with city names in their native scripts using Google Fonts.Japanese Example
Arabic Example
Korean Example
Fonts are automatically downloaded from Google Fonts and cached locally in
fonts/cache/. The tool automatically detects non-Latin scripts and applies appropriate spacing.Real-World Examples
Here are some curated examples showcasing different city patterns:Grid Patterns
Cities with distinctive grid layouts:Waterfront Cities
Cities with beautiful canal or coastal features:Radial Patterns
Cities with circular or radial layouts:Organic Patterns
Cities with organic, maze-like street layouts:Advanced Options
Override Coordinates
Focus on a specific location instead of the city center:Generate All Themes
Create posters with every available theme:Different Output Formats
Export as PNG (default), SVG, or PDF:Understanding the Output
Each poster includes:-
Map layers (from bottom to top):
- Background color
- Water features (rivers, bays, coastlines)
- Parks and green spaces
- Road network with hierarchical styling:
- Motorways: Thickest, darkest lines
- Primary roads: Thick lines
- Secondary roads: Medium lines
- Tertiary roads: Thin lines
- Residential streets: Thinnest, lightest lines
- Gradient fades at top and bottom for visual depth
-
Typography with:
- City name (large, spaced letters for Latin scripts)
- Decorative line separator
- Country name
- Coordinates (latitude/longitude)
- OpenStreetMap attribution (bottom right)
Tips for Best Results
Match theme to city character
Use
blueprint for Venice canals, japanese_ink for Tokyo, terracotta for Mediterranean cities, or neon_cyberpunk for modern Asian cities.Adjust distance for city pattern
Dense historic centers look best at 4-6km. Grid cities shine at 8-12km. Large metros need 15-20km to show their full character.
Consider the final use
Use square dimensions (3.6x3.6) for Instagram, portrait (12x16) for wall art, or landscape (12.8x7.2) for desktop wallpapers.
Experiment with themes
Use
--all-themes to generate all 17 variations at once, then pick your favorite. Cached data makes this fast!Troubleshooting
Geocoding returns wrong location
Geocoding returns wrong location
If the geocoder finds the wrong city, override with specific coordinates:
Map looks empty or sparse
Map looks empty or sparse
- Increase the distance:
-d 20000 - Check if you’re in a rural area with fewer roads
- Try a different city or coordinates
Text is too large or truncated
Text is too large or truncated
The tool auto-scales for long city names, but you can:
- Use shorter display names:
-dc "NYC" - Increase poster width/height
Slow generation
Slow generation
First run downloads map data. Speed up future runs:
- Data is automatically cached in
cache/directory - Same city + distance combination uses cached data
- Try
--all-themesto reuse downloaded data for multiple posters
Next Steps
Now that you’ve created your first posters, explore more:CLI Reference
Complete reference of all command-line options
Themes
Browse all 17 themes and learn to create custom themes
Examples
Gallery of curated city posters with exact commands
Advanced Usage
Coordinate overrides, custom fonts, and more