From d7995f483b98ad6aad128a703939fa112e37075d Mon Sep 17 00:00:00 2001 From: Orfel-HermesAI-Bot Date: Fri, 26 Jun 2026 23:02:29 +0000 Subject: [PATCH] =?UTF-8?q?Tram-Geometrien=20komplett=20entfernt=20?= =?UTF-8?q?=E2=80=94=20nur=20Metro=20A/B/C=20+=20Haltestellen=20mit=20Lini?= =?UTF-8?q?en-Badges=20(Prag-Tram-Netz=20zu=20dicht=20f=C3=BCr=20visuelle?= =?UTF-8?q?=20Lesbarkeit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tourenplan-mit-tram.html | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) 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;