// 1) Karte initialisieren
var Karte = L.map('meineKarte').setView([47.8571272,12.1181047], 8);
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([48.0031,12.42937] , {icon: flag_t2}).addTo(Karte);
marker_0.bindPopup("B304 Wasserburg am Inn Richtung Freilassing
zwischen Hochbruck und Altenmarkt, dichter Verkehr (Zeitverlust: 3 Minuten)");
var latlngs_0 = [[48.0031, 12.42937],[48.00309, 12.42945],[48.00307, 12.42952],[48.00298, 12.42973],[48.00261, 12.43028],[48.00233, 12.43072],[48.00205, 12.43119],[48.00185, 12.43162],[48.00161, 12.43218],[48.00146, 12.43262],[48.00128, 12.43316],[48.00118, 12.43359],[48.00108, 12.43402],[48.001, 12.43442],[48.00094, 12.43488],[48.00089, 12.43534],[48.00086, 12.43579],[48.00083, 12.43637],[48.00081, 12.43783],[48.00078, 12.43839],[48.00074, 12.43888],[48.0007, 12.43931],[48.00064, 12.43973],[48.00059, 12.44003],[48.00052, 12.44042],[48.00044, 12.44079],[48.00032, 12.4413],[48.00015, 12.4419],[47.99997, 12.44244],[47.99977, 12.44301],[47.99962, 12.44343],[47.99912, 12.44475],[47.9987, 12.44592],[47.99759, 12.44892],[47.99746, 12.4493],[47.99735, 12.44964],[47.99728, 12.44989],[47.99721, 12.45017],[47.99715, 12.45044],[47.99711, 12.45074],[47.99709, 12.45096],[47.99708, 12.45116],[47.99708, 12.4514],[47.99708, 12.4516],[47.99711, 12.45188],[47.99715, 12.45221],[47.99724, 12.45266],[47.99737, 12.4531],[47.9977, 12.45402],[47.9984, 12.45587],[47.99909, 12.4577],[47.99999, 12.4601],[48.00084, 12.46236],[48.00192, 12.46523],[48.00213, 12.46601],[48.00253, 12.46756],[48.00258, 12.4678],[48.00263, 12.46797],[48.0028, 12.46867],[48.00299, 12.46942],[48.00301, 12.4695],[48.00316, 12.4701],[48.00322, 12.4703],[48.00337, 12.47078],[48.00357, 12.47132],[48.00368, 12.4716],[48.0039, 12.47221],[48.00488, 12.47475],[48.00489, 12.47479],[48.00501, 12.47509],[48.00532, 12.47587],[48.00537, 12.47602],[48.00541, 12.47613],[48.0055, 12.47639],[48.00556, 12.47663],[48.00562, 12.47696],[48.00567, 12.47727],[48.00573, 12.47778],[48.00582, 12.47872],[48.00596, 12.4804],[48.0061, 12.48218],[48.0061, 12.48226],[48.00615, 12.48274],[48.0062, 12.48331],[48.00626, 12.48366],[48.00629, 12.48386],[48.00638, 12.48427],[48.00653, 12.48502],[48.00672, 12.48587],[48.00688, 12.48664],[48.00697, 12.48706],[48.007, 12.48723],[48.00703, 12.48744],[48.00704, 12.4876],[48.00705, 12.48772],[48.00706, 12.48785],[48.00706, 12.48802],[48.00705, 12.48839],[48.00704, 12.48885],[48.007, 12.48946],[48.00696, 12.49066],[48.00695, 12.49122],[48.00695, 12.49155],[48.00696, 12.49187],[48.00697, 12.49218],[48.00699, 12.49245],[48.00701, 12.49267],[48.00706, 12.49303],[48.00714, 12.49356],[48.00725, 12.49425],[48.00736, 12.495],[48.0075, 12.4958],[48.00759, 12.4963],[48.00763, 12.49656],[48.00765, 12.49668],[48.00766, 12.49683],[48.00766, 12.49704],[48.00767, 12.49722],[48.00766, 12.49799],[48.00765, 12.49845],[48.00763, 12.50008],[48.00762, 12.50169],[48.00761, 12.50203],[48.0076, 12.50252],[48.00758, 12.5029],[48.00757, 12.50322],[48.00754, 12.50353],[48.00751, 12.50387],[48.0072, 12.50588],[48.00703, 12.50688],[48.00693, 12.50744],[48.00684, 12.50797],[48.0067, 12.5089],[48.00655, 12.51006],[48.00646, 12.51075],[48.006422120116, 12.51101095031]];
var polyline_0 = L.polyline(latlngs_0, {color: 'red', opacity:0.8, weight:5}).addTo(Karte);