Update public source

This commit is contained in:
2026-11-17 14:57:52 +03:00
parent 6866e02d7a
commit 2755f6b383
3 changed files with 132 additions and 32 deletions
+13 -3
View File
@@ -2,9 +2,19 @@
Centralized map service configuration.
"""
MAP_STYLE_URL = (
"http://127.0.0.1:8080/styles/server-map/style.json"
)
import sys
from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parent.parent
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
from src.tileserver_config import load_tileserver_config
MAP_STYLE_URL = load_tileserver_config(PROJECT_ROOT)["style_url"]
def get_map_style_url():