// 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.82818,12.59113] , {icon: flag_t1}).addTo(Karte);
marker_0.bindPopup("A8 Salzburg Richtung München
zwischen Bergen und Grabenstätt Gefahr durch ungesicherte Unfallstelle, linker Fahrstreifen blockiert, Rettungsfahrzeuge im Einsatz, Staugefahr");
var marker_1 = L.marker([47.828242,12.600748] , {icon: flag_t2}).addTo(Karte);
marker_1.bindPopup("A8 Salzburg Richtung München
zwischen Bergen und Grabenstätt, 2 km Stau (Zeitverlust: 17 Minuten)");
var marker_2 = L.marker([47.768447,12.943236] , {icon: flag_t2}).addTo(Karte);
marker_2.bindPopup("A8 Salzburg Richtung München
zwischen Grenzübergang Bad Reichenhall und Bad Reichenhall, dichter Verkehr (Zeitverlust: 1 Minute)");
var latlngs_0 = [[47.82818, 12.59113],[47.82823, 12.59005],[47.82828, 12.58924],[47.82833, 12.58852],[47.82838, 12.58763],[47.8284, 12.58727],[47.82846, 12.58631],[47.82848, 12.58596],[47.8285, 12.5855],[47.82851, 12.58503],[47.82851, 12.58441],[47.8285, 12.58398],[47.82849, 12.58364],[47.82848, 12.58346],[47.82846, 12.58317],[47.82843, 12.58282],[47.82839, 12.58241],[47.82837, 12.58219],[47.8283453, 12.5819303],[47.82829, 12.58135],[47.8282443, 12.5808725],[47.8282, 12.58041],[47.82817, 12.58013],[47.828, 12.57841],[47.82783, 12.57667],[47.8277802, 12.5761674],[47.82773, 12.57566],[47.8276692, 12.5750307],[47.82759, 12.57421],[47.82754, 12.57375],[47.82747, 12.57309],[47.82736, 12.57214],[47.82725, 12.57124],[47.82713, 12.57033],[47.82694, 12.56888],[47.82681, 12.56788],[47.82667, 12.56679],[47.8266, 12.56626],[47.82656, 12.5659],[47.82652, 12.56552],[47.82648, 12.56511],[47.82643, 12.56455],[47.8264097, 12.5641794],[47.82639, 12.56382],[47.82638, 12.56355],[47.82637, 12.56328],[47.82636, 12.56299],[47.82635, 12.56248],[47.82635, 12.56207],[47.82636, 12.56149],[47.82637, 12.56117],[47.82638, 12.56088],[47.8264, 12.56052],[47.82642, 12.56019],[47.82645, 12.55982],[47.82648, 12.55949],[47.82651, 12.55915],[47.82655, 12.55877],[47.82659, 12.55842],[47.82664, 12.55803],[47.82668, 12.55774],[47.82673, 12.5574],[47.82678, 12.55709],[47.82683, 12.55677],[47.82686, 12.55656],[47.82697, 12.55581],[47.82703, 12.55542],[47.8271258, 12.5547396],[47.82722, 12.55407],[47.82732, 12.55337],[47.82739, 12.55286],[47.82741, 12.55265],[47.82744, 12.55225],[47.82745, 12.55203],[47.82746, 12.55172],[47.82747, 12.55127],[47.82749, 12.55049],[47.8275, 12.55003],[47.82751, 12.54929],[47.82752, 12.54876],[47.82754, 12.54812],[47.82756, 12.54781],[47.82759, 12.5474],[47.82761, 12.54714],[47.82765, 12.54672],[47.82772, 12.54607],[47.82786, 12.5449],[47.82795, 12.54417],[47.828, 12.54374],[47.82819, 12.54211],[47.82823, 12.54173],[47.82828, 12.54125],[47.82833, 12.54077],[47.82837, 12.54033],[47.82841, 12.53986],[47.82844, 12.53946],[47.82847, 12.53905],[47.82851, 12.53851],[47.82854, 12.53808],[47.82857, 12.53764],[47.8286, 12.53719],[47.82862, 12.5369],[47.82864, 12.53661],[47.82867, 12.53618],[47.8287, 12.53572],[47.82878, 12.53449],[47.82885, 12.53346],[47.82889, 12.53289],[47.82893, 12.53232],[47.82897, 12.53184],[47.82901, 12.5314],[47.82905, 12.53098],[47.8291, 12.53051],[47.82915, 12.53007],[47.8292, 12.52966],[47.82925, 12.52925],[47.8293, 12.52888],[47.82935, 12.52851],[47.8294, 12.52817],[47.82945, 12.52784],[47.82951, 12.52746],[47.82956, 12.52715],[47.82962, 12.52677],[47.829711, 12.526212],[47.82977, 12.52585],[47.8298448, 12.5253822],[47.8299945, 12.5244468],[47.83013, 12.5236],[47.83016, 12.52339]];
var polyline_0 = L.polyline(latlngs_0, {color: 'red', opacity:0.8, weight:5}).addTo(Karte);
var latlngs_1 = [[47.828242, 12.600748],[47.828213, 12.600447],[47.828167, 12.599863],[47.828116, 12.598287],[47.828068, 12.597164],[47.828046, 12.596541],[47.828042, 12.596125],[47.828093, 12.593853],[47.828128, 12.592259],[47.828178, 12.591034],[47.828191, 12.590605],[47.828235, 12.589727],[47.828304, 12.588589],[47.828367, 12.587653],[47.828451, 12.58629],[47.828468, 12.586005],[47.828491, 12.585538],[47.828509, 12.585033],[47.828512, 12.584568],[47.8285, 12.584115],[47.828492, 12.583898],[47.828463, 12.583336],[47.828429, 12.582857],[47.828367, 12.582297],[47.828352, 12.582114],[47.828152, 12.580036],[47.828043, 12.578921],[47.82761, 12.574485],[47.82757, 12.574046],[47.827466, 12.573077],[47.827335, 12.571976],[47.827179, 12.570722],[47.826786, 12.567713],[47.826565, 12.565981],[47.826512, 12.565495],[47.82647, 12.565053],[47.826418, 12.564393],[47.826381, 12.563808],[47.82636, 12.563203],[47.826347, 12.562762],[47.826343, 12.562343],[47.82635, 12.561781],[47.826365, 12.56114],[47.826401, 12.560407],[47.826437, 12.559855],[47.826472, 12.559445],[47.826549, 12.558692],[47.826626, 12.558106],[47.826818, 12.556781],[47.827095, 12.554903],[47.827246, 12.553867],[47.827328, 12.553302],[47.827389, 12.552806],[47.827415, 12.552513],[47.827438, 12.552167],[47.827453, 12.551808],[47.827495, 12.549901],[47.827515, 12.548889],[47.827534, 12.548182],[47.82756, 12.547695],[47.827584, 12.547352],[47.827607, 12.547017],[47.827635, 12.546719],[47.827713778851, 12.546068853191]];
var polyline_1 = L.polyline(latlngs_1, {color: 'red', opacity:0.8, weight:5}).addTo(Karte);
var latlngs_2 = [[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.768143, 12.933135],[47.768098, 12.932473],[47.768053, 12.932062],[47.76793, 12.930745],[47.767636, 12.927355],[47.767618, 12.927162],[47.767463, 12.925382],[47.767378, 12.924457],[47.767198, 12.922334],[47.767144, 12.921683],[47.76707, 12.920836],[47.767023, 12.920297],[47.766831, 12.918122],[47.766779, 12.917524],[47.766281, 12.911938],[47.766156, 12.910599],[47.766089, 12.90981],[47.766068, 12.909321],[47.766066, 12.908838],[47.766093, 12.908107],[47.766174, 12.907206],[47.766234, 12.906764],[47.76625, 12.90665],[47.766409, 12.905842],[47.766496704433, 12.905503850684]];
var polyline_2 = L.polyline(latlngs_2, {color: 'red', opacity:0.8, weight:5}).addTo(Karte);