logo
icon

Docker Static Maps API

透過輕量級 REST API 生成靜態地圖圖片

平台Zeabur
部署次數8
發布者ridemountainpig
部署次數8
發布者ridemountainpig
建立於2025-11-25
模板內的服務
service icon
標籤
MapAPIImage GenerationDeveloper Tool

Docker 靜態地圖 API 🗺️

透過輕量級 REST API 產生靜態地圖圖片

docker-staticmaps 是一個用於渲染靜態地圖圖片的開源 API。您可以輕鬆建立帶有標記、多邊形、圓形、折線或文字的地圖,非常適合將地圖圖片嵌入網站或應用程式中。

Dockerfile 與 README 皆源自此原始儲存庫:https://github.com/dietrichmax/docker-staticmaps

🚀 功能特色

  • 產生靜態地圖:支援標記、多邊形、圓形、折線與文字
  • 🌍 支援多種底圖:(OpenStreetMap, Esri, Stamen, Carto, 自定義圖磚伺服器)
  • 易於使用的 REST API:可輕鬆與任何前端或後端整合
  • 🐳 支援 Docker:實現快速、輕量化的佈署
  • 🧊 圖磚與圖片快取:提升效能表現
  • 🚦 內建 IP 流量限制:防止惡意濫用

📖 快速上手

佈署完成後,您可以透過您的網域存取互動式遊樂場 (Playground),或直接發送 API 請求。

API 請求範例

GET https://your-domain.zeabur.app/api/staticmaps?width=1000&height=1000&center=-18.2871,147.6992&zoom=9&basemap=satellite

互動式遊樂場

造訪您佈署的網域以進入互動式遊樂場,您可以在該處:

  • 以視覺化方式設定地圖參數
  • 新增標記、多邊形及其他功能
  • 即時預覽產生的地圖
  • 複製 API 網址以便整合

📚 文件

如需詳細的 API 文件、支援的底圖以及進階功能,請造訪: https://dietrichmax.github.io/docker-staticmaps/

授權條款

本專案採用 GNU Affero General Public License v3.0 (AGPL-3.0) 授權。

docker-staticmaps
Copyright (C) 2026 Max Dietrich

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.