staticmap
A small, python-based library for creating map images with lines and markers.
Decision gist · record as of 2026-08-14
Yes, if you need to generate simple static map images programmatically. Low install friction, no security vulnerabilities, and active maintenance make it a straightforward choice. Caveat: verify the license treatment before use in proprietary work, since the fact sheet does not confirm the Apache 2.0 claim. Not suitable if you need interactive maps or real-time map updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only three runtime dependencies (Pillow, requests, futures).
- Actively maintained with recent commits; last release was 2023-08-01 but repo shows activity as of 2026-07-31.
License · maintenance · safety
(unclear) — License treatment is unclear—the description states Apache License 2.0, but the fact sheet records no SPDX identifier or raw license field. Verify the actual license before use in proprietary or GPL-licensed projects.
last release 2023-08-01 (1109 days) · last repo commit 2026-07-31 · 331 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 180,201 downloads/mo, #10,150 on PyPI
Alternatives
Verify before relying
pip install staticmap
from staticmap import StaticMap, Line
m = StaticMap(300, 400, 10)
m.add_line(Line(((13.4, 52.5), (2.3, 48.9)), 'blue', 3))
image = m.render()
image.save('map.png')- Actual license SPDX identifier and whether it is truly Apache 2.0 as stated in the description
- Minimum Python version requirement (listed as unspecified in fact sheet)
- Whether futures dependency is needed for Python 3.x (it is typically a backport for Python 2)
What it is and what it does
StaticMap is a lightweight Python library for rendering geographic map images by compositing map tiles with drawn overlays. It fetches tiles from a tile server (defaulting to OpenStreetMap), then uses Pillow to composite lines, circle markers, polygons, and custom icon markers onto the base map. The library handles coordinate-to-pixel projection and tile fetching via requests, making it straightforward to generate static map images for web pages, reports, or batch processing without needing a full web mapping framework.
You create a StaticMap instance with desired dimensions, add geographic features (lines between coordinates, markers at points, filled polygons), and call render() to get a PIL Image object. The library is designed for simple, single-image use cases—showing a route, marking locations, or visualizing geographic data as a PNG or other image format. It depends on Pillow for image manipulation and requests for HTTP tile fetching.
Use it for
- Generate a static map image showing a route or journey between two cities for embedding in a report or email.
- Create a map with markers pinpointing store locations or event venues for a web page or printed flyer.
- Visualize geographic data (e.g., sensor readings, delivery points) as an overlay on a map tile for batch processing.
- Build a simple map preview for a travel or logistics application without deploying a full interactive mapping service.
- Render a polygon boundary (e.g., a service area or administrative region) on a map tile for documentation or analysis.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to generate simple static map images programmatically.
Low install friction, no security vulnerabilities, and active maintenance make it a straightforward choice. Caveat: verify the license treatment before use in proprietary work, since the fact sheet does not confirm the Apache 2.0 claim. Not suitable if you need interactive maps or real-time map updates.
Install
staticmap on PyPI
Before you install
Low friction: pure Python wheel with only three runtime dependencies (Pillow, requests, futures). Actively maintained with recent commits; last release was 2023-08-01 but repo shows activity as of 2026-07-31.
License in practice
License treatment is unclear—the description states Apache License 2.0, but the fact sheet records no SPDX identifier or raw license field. Verify the actual license before use in proprietary or GPL-licensed projects.
Quickstart
pip install staticmap
from staticmap import StaticMap, Line
m = StaticMap(300, 400, 10)
m.add_line(Line(((13.4, 52.5), (2.3, 48.9)), 'blue', 3))
image = m.render()
image.save('map.png')
Verify before relying
- Actual license SPDX identifier and whether it is truly Apache 2.0 as stated in the description
- Minimum Python version requirement (listed as unspecified in fact sheet)
- Whether futures dependency is needed for Python 3.x (it is typically a backport for Python 2)
Package facts
| License | Not declared unclear |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesPillowrequestsfutures |
| Maintenance | Actively maintained 1,109 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 180,201 / month, #10,150 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: staticmap-0.5.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “static map image generation”
- staticmapGenerates static map images with geographic lines, markers, and…
- mapboxA Python client library for Mapbox web services, providing low-level…
- kaleidoKaleido generates static images (PNG, SVG, PDF, etc.) from figures,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also pyGeoTile · polyline · osm2geojson · geos · contextily · quickchart.io · Cartopy · mapbox · simplekml · pycolmap