https://github.com/dietrichmax/docker-staticmaps
API for generating static map images
https://github.com/dietrichmax/docker-staticmaps
api docker static-maps
Last synced: 4 months ago
JSON representation
API for generating static map images
- Host: GitHub
- URL: https://github.com/dietrichmax/docker-staticmaps
- Owner: dietrichmax
- License: other
- Created: 2024-12-28T16:28:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-13T14:04:23.000Z (4 months ago)
- Last Synced: 2026-02-13T22:45:05.877Z (4 months ago)
- Topics: api, docker, static-maps
- Language: TypeScript
- Homepage:
- Size: 19.8 MB
- Stars: 118
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Docker Static Maps API πΊοΈ
**Generate static map images via a lightweight REST API**
[](https://buymeacoffee.com/mxdcodes)  [](https://hub.docker.com/r/mxdcodes/docker-staticmaps)  [](https://github.com/dietrichmax/docker-staticmaps/actions/workflows/docker-build.yml) [](https://github.com/dietrichmax/docker-staticmaps/actions/workflows/deploy-docs.yml)
**docker-staticmaps** is an open-source API for rendering static map images. Easily create maps with markers, polygons, circles, polylines or text, making it perfect for embedding map images on websites or apps. Comes with built-in rate limiting and image caching to optimize performance and protect against abuse.
## π Features
- β
**Generate static maps** with markers, polygons, circles, polylines and text.
- π **Supports multiple basemaps** (OpenStreetMap, Esri, Stamen, Carto, custom tile server).
- β‘ **Easy-to-use REST API** - simple integration with any frontend or backend.
- π³ **Docker-ready** for fast, lightweight deployment.
- π§ **Tile and image caching** for performance.
- π¦ **Built-in rate limiting** per IP to protect against abuse.
## π Quickstart
Run the service with Docker:
```bash
docker run -p '3000:3000/tcp' mxdcodes/docker-staticmaps:latest
```
Send a sample request:
```bash
curl "http://localhost:3000/api/staticmaps?width=1000&height=1000¢er=-18.2871,147.6992&zoom=9&basemap=satellite"
```

A interactive playground is available at [http://localhost:3000](http://localhost:3000 "docker-staticmaps interactive playground")

## Documentation
The documentation of the latest development version is in the `docs/` subdirectory. A HTML version can be found at https://dietrichmax.github.io/docker-staticmaps/.
## License
Copyright (C) 2026 Max Dietrich
The source code of this project is licensed under the GNU Affero General Public License version 3 or later (AGPL-3.0+).
Portions of this project (in the `staticmaps` folder) were originally based on [staticmaps](https://github.com/StephanGeorg/staticmaps) (MIT License).
## Contributing
Contributions, bug reports and pull requests are welcome.