{"id":18053295,"url":"https://github.com/luzifer/staticmap","last_synced_at":"2025-04-10T19:42:29.691Z","repository":{"id":57596999,"uuid":"95601218","full_name":"Luzifer/staticmap","owner":"Luzifer","description":"Webserver to generate static maps from OpenStreetMap tiles","archived":false,"fork":false,"pushed_at":"2025-03-13T01:20:11.000Z","size":4298,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:21:19.583Z","etag":null,"topics":["golang","openstreetmap","staticmap"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Luzifer.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.paypal.me/luzifer"],"github":["Luzifer"],"ko_fi":"luziferus"}},"created_at":"2017-06-27T21:10:37.000Z","updated_at":"2025-03-23T21:52:38.000Z","dependencies_parsed_at":"2024-04-19T19:26:10.191Z","dependency_job_id":"3e925010-de20-4ef3-936d-5bd814e6e685","html_url":"https://github.com/Luzifer/staticmap","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"82952035dfe23183736f4b6c34cab89a6ab6571c"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzifer%2Fstaticmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzifer%2Fstaticmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzifer%2Fstaticmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luzifer%2Fstaticmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luzifer","download_url":"https://codeload.github.com/Luzifer/staticmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281419,"owners_count":21077423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","openstreetmap","staticmap"],"created_at":"2024-10-30T23:16:44.449Z","updated_at":"2025-04-10T19:42:29.668Z","avatar_url":"https://github.com/Luzifer.png","language":"Go","readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/Luzifer/staticmap)](https://goreportcard.com/report/github.com/Luzifer/staticmap)\n![](https://badges.fyi/github/license/Luzifer/staticmap)\n![](https://badges.fyi/github/downloads/Luzifer/staticmap)\n![](https://badges.fyi/github/latest-release/Luzifer/staticmap)\n\n# Luzifer / staticmap\n\n`staticmap` is a webserver written in Go to generate static maps from [OpenStreetMap](https://openstreetmap.org/) tiles. Its API is inspired by the [Google Static Maps API](https://developers.google.com/maps/documentation/static-maps/intro) but supports only a subset of the functions and parameters described there.\n\n## API\n\nAll map operations are made against the `/map.png` endpoint of the server and are controlled by parameters:\n\n| Parameter | Description |\n| ---- | ---- |\n| `center` | (required) Describes where to center the map. Must be given in decimal coordinates in format `lat,lon` (eg. `62.107733,-145.541936`) |\n| `zoom` | (required) Describes the zoom level of the map. Must be a number between 1 and 16 like in the OpenStreetMap itself |\n| `size` | (required) Output format of the requested map. Must be two numbers joined by an `x` (eg. `600x300`) - By default there is a limit to 1024px on each edge, you can set this in the parameters of the server. |\n| `markers` | (optional) Marker definition, supports `size` and `color` attribute and marker positions must be given in format `lat,lon`. Elements of the marker definition are joined by a vertical bar. Valid sizes are `tiny, mid, small`. Valid colors are `black, brown, green, purple, yellow, blue, gray, orange, red, white` or a hex color in 3 or 6 letter notation: `0x333, 0x333333`. |\n\n### Example of a map having two different markers\n\n```\n/map.png\n    ?center=53.5438,9.9768\n    \u0026zoom=15\n    \u0026size=800x500\n    \u0026markers=color:blue|53.54129165,9.98420576699353\n    \u0026markers=color:yellow|53.54565525,9.9680555636958\n    \u0026markers=size:tiny|color:red|53.54846472989871,9.978977621091543\n```\n\nThe map center is set to a coordinate within Hamburg, Germany with a zoom level of 15. Additionally there are two markers set: One `blue` marker to the Elbphilharmonie, one `yellow` marker to the Hard Rock Cafe Hamburg and a `tiny` `red` marker on the St. Michaels church. The example above (of course without the line breaks) produced this image:\n\n![](example/map.png)\n\n### Overlay support\n\nStarting with version `v0.4.0` the generator supports map overlays for tiles based on transparent background (like [OpenFireMap](http://openfiremap.org/), [OpenSeaMap](http://www.openseamap.org/), ...). As those requests would be too complex for `GET` requests and are also not a common usecase they are implemented as `POST` requests containing a JSON object.\n\nThis example is generated with [OpenFireMap](http://openfiremap.org/) overlay tiles using the [`example/postmap.json`](example/postmap.json) file:\n\n![](example/postmap.png)\n\n## Setup\n\n- There is a Docker container available: [`luzifer/staticmap`](https://hub.docker.com/r/luzifer/staticmap/)\n- This repository has precompiled binaries attached in the [releases](https://github.com/Luzifer/staticmap/releases) section\n- You can `go get github.com/Luzifer/staticmap` the project and build it from source\n\nAfterwards just see `staticmap --help` (or `docker run --rm -ti luzifer/staticmap --help`) for commandline parameters.\n\n----\n\n![](https://d2o84fseuhwkxk.cloudfront.net/staticmap.svg)\n","funding_links":["https://www.paypal.me/luzifer","https://github.com/sponsors/Luzifer","https://ko-fi.com/luziferus"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluzifer%2Fstaticmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluzifer%2Fstaticmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluzifer%2Fstaticmap/lists"}