prettymaps

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

23 articles 13.5k View on GitHub ↗
23 articles
How `get_perimeter`, `get_boundary`, and `parse_query` Work Together in prettymaps Fetch.py

Discover how prettymaps fetch.py functions get_perimeter, get_boundary, and parse_query collaborate to convert your query into a projected polygon for precise map bounds.

internals
Aug 20, 2026
How to Cache GeoDataFrames in Prettymaps for Faster Map Generation

Speed up map generation with prettymaps by caching GeoDataFrames. Learn how this feature eliminates redundant requests and cuts down processing time significantly.

performance
Aug 20, 2026
How to Dilate and Style Streets by Highway Type in Prettymaps

Learn to dilate and style streets by highway type in Prettymaps. Control street thickness and color using a dictionary for custom map visualizations. Enhance your map designs now.

how-to-guide
Aug 20, 2026
Using Postprocessing Callback Functions to Modify GeoDataFrames Before Rendering in Prettymaps

Dynamically manipulate GeoDataFrames before rendering in prettymaps using postprocessing callback functions. Customize map layers without altering library code.

deep-dive
Aug 20, 2026
Handling Empty GeoDataFrames in Prettymaps: Edge Case Prevention and Best Practices

Learn how prettymaps handles empty GeoDataFrames with edge case prevention and best practices. Ensure safe downstream processing by understanding gdf.empty checks.

best-practices
Aug 20, 2026
Geometric Transformations Applied to GeoDataFrames During Plotting in Prettymaps

Explore geometric transformations like translate, scale, and rotate applied to GeoDataFrames in prettymaps. Learn how the transform_gdfs function enhances map plotting with Matplotlib.

deep-dive
Aug 20, 2026
How the Streamlit app.py Frontend Provides an Interactive Interface for Prettymaps

Discover how the Streamlit app.py frontend in Prettymaps delivers an interactive interface with reactive widgets, caching, and export options for stunning map visualizations.

how-to-guide
Aug 20, 2026
Converting Street Network Widths Using `graph_to_shapely` in Prettymaps

Learn to convert street network widths using graph_to_shapely in prettymaps. Buffer OSM streets into polygons with custom widths or highway-specific styles.

how-to-guide
Aug 20, 2026
Converting Shapely Geometries to Matplotlib PathPatches with PolygonPatch in prettymaps

Learn to convert Shapely geometries to Matplotlib PathPatches using prettymaps PolygonPatch. This function simplifies rendering complex shapes in your maps.

how-to-guide
Aug 20, 2026
Applying Color Palettes to Layers with `fc` and `ec` Parameters in Prettymaps: A Complete Guide

Learn to apply color palettes to layers in Prettymaps using fc for fill and ec for edge colors. Customize your maps with single colors or randomized palettes.

how-to-guide
Aug 20, 2026
How Prettymaps Handles Sea and Coastline Detection and Filtering: A Complete Technical Guide

Learn how Prettymaps detects and filters sea and coastlines using SRTM elevation data and OpenStreetMap geometries. Get a complete technical guide.

deep-dive
Aug 20, 2026
Available Layer Types in Prettymaps: Streets, Water, and Buildings

Discover the available layer types in prettymaps: streets, water, and buildings. Learn how each layer type is fetched, transformed, and drawn for beautiful map rendering.

getting-started
Aug 20, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →