Update public source
This commit is contained in:
@@ -7,6 +7,7 @@ from reports.access_points import (
|
||||
load_access_points,
|
||||
)
|
||||
from reports.map_popups import build_standard_popup
|
||||
from reports.map_service import get_map_style_url
|
||||
from reports.template import (
|
||||
ReportContext,
|
||||
card,
|
||||
@@ -216,7 +217,7 @@ const map = new maplibregl.Map({
|
||||
container: "map",
|
||||
|
||||
style:
|
||||
"http://127.0.0.1:8080/styles/server-map/style.json",
|
||||
__MAP_STYLE_URL__,
|
||||
|
||||
center: [
|
||||
30.32,
|
||||
@@ -671,6 +672,11 @@ window.setTimeout(
|
||||
marker_js,
|
||||
)
|
||||
|
||||
map_html = map_html.replace(
|
||||
"__MAP_STYLE_URL__",
|
||||
json.dumps(get_map_style_url()),
|
||||
)
|
||||
|
||||
return map_html
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user