diff --git a/tourenplan-mit-tram.html b/tourenplan-mit-tram.html index c112637..91f2e1e 100644 --- a/tourenplan-mit-tram.html +++ b/tourenplan-mit-tram.html @@ -226,7 +226,7 @@
@@ -458,6 +458,9 @@ locations.forEach(loc => { const lineLayers = {}; function renderLine(lineKey, color, weight, opacity) { + // Tram-Linien-Geometrien sind deaktiviert — Prag-Tram-Netz zu dicht, einzelne Linien nicht lesbar + // Stattdessen zeigen wir die Haltestellen mit Linien-Badges (siehe IMPORTANT_STOPS) + if (lineKey.startsWith('tram_')) return null; const coords = LINES[lineKey]; if (!coords) return null; const shadow = L.polyline(coords, { @@ -493,8 +496,11 @@ function toggleLine(lineKey, visible) { removeLine(lineKey); } } +// Initial: nur Metro-Linien rendern (Tram-Linien standardmäßig AUS — Prag-Tram-Netz ist zu dicht für JGA-Übersicht) Object.entries(LINES_CONFIG).forEach(([key, cfg]) => { - renderLine(key, cfg.color, cfg.weight, cfg.opacity); + if (key.startsWith('metro_')) { + renderLine(key, cfg.color, cfg.weight, cfg.opacity); + } }); IMPORTANT_STOPS.forEach(stop => { const stopMarker = L.circleMarker([stop.lat, stop.lon], { @@ -508,7 +514,7 @@ IMPORTANT_STOPS.forEach(stop => { const fg = isMetro && l === 'B' ? '#1a1a1a' : 'white'; return `${l}`; }).join(''); - const popupHtml = ``; + const popupHtml = ``; stopMarker.bindPopup(popupHtml, {className: 'tram-popup'}); const labelMarker = L.marker([stop.lat, stop.lon], { icon: L.divIcon({ @@ -535,16 +541,8 @@ toggleControl.onAdd = function() { ${num} `; }); - html += '
Tram
'; - Object.keys(LINES_CONFIG).filter(k => k.startsWith('tram_')).sort((a,b) => parseInt(a.split('_')[1])-parseInt(b.split('_')[1])).forEach(key => { - const cfg = LINES_CONFIG[key]; - const num = key.split('_')[1]; - html += ``; - }); + // Tram-Linien-Toggles entfernt — Prag-Tram-Netz zu dicht für visuelle Darstellung + // Stattdessen: Linien-Badges an den Haltestellen zeigen welche Trams dort halten div.innerHTML = html; div.addEventListener('change', (e) => { const lineKey = e.target.dataset.line; @@ -579,8 +577,8 @@ legend.onAdd = function() { 🚇 Metro: A · B · C
- 🚋 Tram: 2/4/7/13/17/18/22
- Toggle oben rechts + 🚋 Tram: Haltestellen mit Linien-Badges
+ Marker anklicken für Details `; return div;