From 2ae572c2be55b24b902182b84a7b9f0ea2105270 Mon Sep 17 00:00:00 2001 From: steven Date: Thu, 17 Apr 2025 16:11:49 -0400 Subject: [PATCH] use iframe instead of linking stops --- templates/map.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/map.html b/templates/map.html index 72335d0..ce5bc00 100644 --- a/templates/map.html +++ b/templates/map.html @@ -9,7 +9,7 @@ - +
@@ -17,14 +17,13 @@ let map=L.map("map",{center:[38.2,-85.75],zoom:13,layers:[L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")]}); let stops={{stops}}; for (stop in stops){ - L.circle(stops[stop]).bindPopup(`Stop #${stop}`).addTo(map) + L.circle(stops[stop]).bindPopup(``).addTo(map) } let layerControl=L.control.layers().addTo(map); let busLayers={},busMarkers={}; function updateMap(){ let routes={}; fetch("tarc.csv").then(response=>response.text()).then(csv=>{ - if(csv=="")return; csv.split("\n").forEach(line=>{ let [lat,lng,r,id,p,d,s,t]=line.split(","); p=parseInt(p); @@ -42,6 +41,7 @@ function updateMap(){ } layerControl.remove(); layerControl=L.control.layers(null,overlayLayers,{collapsed:window.innerWidth