Update public source
This commit is contained in:
+13
-3
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user