Release 1.0.0
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
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
|
||||
Reference in New Issue
Block a user