// 1) Karte initialisieren var Karte = L.map('meineKarte').setView([47.8571272,12.118104700000004], 9); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { 'attribution': 'Kartendaten © OpenStreetMap Mitwirkende', 'useCache': true }).addTo(Karte); // 2) Icons definieren var flag_t0 = L.icon({ iconUrl: 'https://traffic.audiobroadcast.eu/images/ts_danger.png', popupAnchor: [-0.5, -6], iconAnchor: [20, 0] }); var flag_t1 = L.icon({ iconUrl: 'https://traffic.audiobroadcast.eu/images/ts_danger.png', popupAnchor: [-0.5, -6], iconAnchor: [20, 0] }); var flag_t2 = L.icon({ iconUrl: 'https://traffic.audiobroadcast.eu/images/ts_jam.png', popupAnchor: [-0.5, -6], iconAnchor: [20, 0] }); var flag_t3 = L.icon({ iconUrl: 'https://traffic.audiobroadcast.eu/images/ts_construction.png', popupAnchor: [-0.5, -6], iconAnchor: [20, 0] }); var flag_t4 = L.icon({ iconUrl: 'https://traffic.audiobroadcast.eu/images/ts_radar.png', popupAnchor: [-0.5, -6], iconAnchor: [20, 0] }); // 3) Marker und Polylines NACH Karte und Icons var marker_0 = L.marker([47.8128044,12.0263752] , {icon: flag_t1}).addTo(Karte); marker_0.bindPopup(" Kreis Rosenheim, St2010 Rosenheim Richtung Miesbach
zwischen Wasserwiesen und Kreisverkehr Torfwerk Feilnbach Gefahr durch 1 Gegenstand auf der Fahrbahn (totes Tier)"); var marker_1 = L.marker([47.768447,12.943236] , {icon: flag_t2}).addTo(Karte); marker_1.bindPopup("A8 Salzburg Richtung München
zwischen Grenzübergang Bad Reichenhall und Bad Reichenhall, dichter Verkehr (Zeitverlust: 1 Minute)"); var marker_2 = L.marker([47.85611,12.12913] , {icon: flag_t2}).addTo(Karte); marker_2.bindPopup(" Rosenheim, Ludwigsplatz bis Kaiserstraße
zwischen Kreisverkehr und Ellmaierstraße in beiden Richtungen gesperrt, Markt, zwischen Sa 07:30 Uhr und Sa 14:00 Uhr"); var latlngs_0 = [[47.8128044, 12.0263752],[47.8128, 12.02632],[47.81278, 12.0261],[47.81276, 12.0259],[47.81273, 12.02564],[47.8127, 12.02542],[47.81267, 12.02521],[47.81264, 12.02502],[47.81261, 12.02483],[47.81258, 12.02466],[47.81254, 12.02445],[47.81249, 12.02422],[47.81244, 12.024],[47.81239, 12.02379],[47.81233, 12.02356],[47.81227, 12.02335],[47.8122, 12.02311],[47.81212, 12.02286],[47.81204, 12.02262],[47.81196, 12.02239],[47.81187, 12.02215],[47.81177, 12.0219],[47.81166, 12.02165],[47.81156, 12.02143],[47.81146, 12.02122],[47.81135, 12.02101],[47.81123, 12.02078],[47.81111, 12.02056],[47.81097, 12.02032],[47.81077, 12.01998],[47.81061, 12.01972],[47.81044, 12.01944],[47.81026, 12.01916],[47.8101717, 12.0190157],[47.8099929, 12.0187237]]; var polyline_0 = L.polyline(latlngs_0, {color: 'red', opacity:0.8, weight:5}).addTo(Karte); var latlngs_1 = [[47.768447, 12.943236],[47.768433, 12.942498],[47.768437, 12.94202],[47.768439, 12.941793],[47.768436, 12.941226],[47.768425, 12.940806],[47.768412, 12.940258],[47.768367, 12.938486],[47.768347, 12.937802],[47.768318, 12.93655],[47.768301, 12.936037],[47.768249, 12.934802],[47.768198, 12.933938],[47.768171, 12.933541],[47.768145046663, 12.93316467662]]; var polyline_1 = L.polyline(latlngs_1, {color: 'red', opacity:0.8, weight:5}).addTo(Karte); var latlngs_2 = [[47.85611, 12.12913],[47.85618, 12.12907],[47.85629, 12.12896],[47.85638, 12.12888],[47.85665, 12.12864],[47.85677, 12.12852],[47.85685, 12.12845],[47.85692, 12.12841],[47.85703, 12.12837],[47.85728, 12.12833],[47.85749, 12.12831],[47.8577, 12.1283],[47.85803, 12.1283]]; var polyline_2 = L.polyline(latlngs_2, {color: 'red', opacity:0.8, weight:5}).addTo(Karte);