uMap selfhost 自架
uMap
uMap 讓你可以在幾分鐘內使用 OpenStreetMap 圖層建立地圖,並將其嵌入到你自己的網站中。
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
code: https://github.com/umap-project/umap
docs: https://docs.umap-project.org/
uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site. Because we think that the more OSM will be used, the more OSM will be improved. Built on top of Django and Leaflet.
功能類似Google的"My Map"
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
docker compose
參考: https://docs.umap-project.org/en/stable/deploy/docker/
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
請根據你的需求做修改:
- 容器名稱
- 網址
- SECRET_KEY (隨機生成一個填入)
- Port
- …
建置容器指令
設定cloudflare tunnel,或依你的方式來反向代理
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
進入 https://umap.frakw.work/
成功看到頁面
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
登入管理員帳號
進入容器中
創建管理員帳號
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
在你的網址後加上admin
,進入管理員登入頁面
EX: https://umap.frakw.work/admin
輸入剛剛創建的帳號密碼
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
即可看到管理頁面
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
添加OpenStreetMap Tile Layer
uMap預設使用的地圖是Positron,但這個地圖比缺乏細節資訊,所以要讓他可以支援OpenStreetMap
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
從管理頁面中進入"Add Tile Layer"
URL Template填入 https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
Attribution填入 © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
成功支援OpenStreetMap
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
地圖範例
這是我記錄去埃及旅遊的地圖,有GPS紀錄與各個景點的圖片
https://umap.frakw.work/zh-tw/map/2025-01_1
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
地圖製作教學
有機會再寫…