1) mod start and end point popou, 2) change bg image
This commit is contained in:
49
.dockerignore
Normal file
49
.dockerignore
Normal file
@ -0,0 +1,49 @@
|
||||
# Python cache
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.so
|
||||
.Python
|
||||
*.egg-info/
|
||||
.pytest_cache/
|
||||
|
||||
# Virtual environments
|
||||
.venv/
|
||||
venv/
|
||||
ENV/
|
||||
env/
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# Git
|
||||
.git/
|
||||
.gitignore
|
||||
.gitattributes
|
||||
|
||||
# Documentation
|
||||
*.md
|
||||
!README.md
|
||||
|
||||
# Test files
|
||||
tests/
|
||||
test_*.py
|
||||
*_test.py
|
||||
|
||||
# GPX files in assets (exclude user test files)
|
||||
hiking_assistant/assets/*.gpx
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
|
||||
# Archives
|
||||
*.tar
|
||||
*.tar.gz
|
||||
*.zip
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
@ -6,6 +6,7 @@ repos:
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
args: ["--maxkb=2048"]
|
||||
- id: check-yaml
|
||||
- id: check-docstring-first
|
||||
|
||||
|
||||
BIN
hiking_assistant/assets/background_op70.png
Normal file
BIN
hiking_assistant/assets/background_op70.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
@ -2,7 +2,7 @@ app:
|
||||
page_title: 臺灣登山小幫手
|
||||
page_favicon_path: ./assets/favicon_compressed.jpg
|
||||
page_footer_text: ⚠️ 本服務提供之資訊僅供規劃參考,山區氣候瞬息萬變,請務必依據現場狀況與自身能力進行風險評估<br>Made with ❤️ by <a href="https://gitea.guineapig.love/deng">deng</a>
|
||||
page_background_path: ./assets/background.jpg
|
||||
page_background_path: ./assets/background_op70.jpg
|
||||
altitude_sickness:
|
||||
elevation_threshold: 2100
|
||||
warning_text: 此路線海拔較高,請留意[高山症](https://www.ysnp.gov.tw/StaticPage/MountainSickness)發生風險
|
||||
|
||||
@ -95,7 +95,7 @@ class MapRenderer:
|
||||
fill=True,
|
||||
fill_color='blue',
|
||||
fill_opacity=0.7,
|
||||
popup=f'<b>起點</b><br>海拔: {start_point[2]} m',
|
||||
popup=folium.Popup(f'<b>起點</b><br>海拔: {start_point[2]} m', max_width=200),
|
||||
tooltip='起點',
|
||||
).add_to(route_map)
|
||||
|
||||
@ -108,7 +108,7 @@ class MapRenderer:
|
||||
fill=True,
|
||||
fill_color='blue',
|
||||
fill_opacity=0.7,
|
||||
popup=f'<b>終點</b><br>海拔: {end_point[2]} m',
|
||||
popup=folium.Popup(f'<b>終點</b><br>海拔: {end_point[2]} m', max_width=200),
|
||||
tooltip='終點',
|
||||
).add_to(route_map)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user