22 lines
399 B
Python
22 lines
399 B
Python
"""
|
|
Centralized map service configuration.
|
|
"""
|
|
|
|
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():
|
|
return MAP_STYLE_URL
|