1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| var trace1 = [new google.maps.LatLng(42.61791, 2.420511), new google.maps.LatLng(42.61817, 2.420297), new google.maps.LatLng(42.618273, 2.420404), new google.maps.LatLng(42.618376, 2.42049), new google.maps.LatLng(42.618423, 2.420769), new google.maps.LatLng(42.618549, 2.421273), new google.maps.LatLng(42.618644, 2.421305), new google.maps.LatLng(42.618786, 2.421327), new google.maps.LatLng(42.618794, 2.421606), new google.maps.LatLng(42.618818, 2.422013), new google.maps.LatLng(42.618873, 2.422357), new google.maps.LatLng(42.618905, 2.422518), new google.maps.LatLng(42.618802, 2.422614), new google.maps.LatLng(42.618526, 2.422796), new google.maps.LatLng(42.61847, 2.422657), new google.maps.LatLng(42.618384, 2.422485), new google.maps.LatLng(42.618336, 2.422185), new google.maps.LatLng(42.618352, 2.42197), new google.maps.LatLng(42.618368, 2.421767), new google.maps.LatLng(42.618455, 2.421595), new google.maps.LatLng(42.618336, 2.421584), new google.maps.LatLng(42.618257, 2.421391), new google.maps.LatLng(42.618091, 2.421016), new google.maps.LatLng(42.617997, 2.420758), new google.maps.LatLng(42.617902, 2.42049)];
var trace2 = [new google.maps.LatLng(42.617894, 2.420511), new google.maps.LatLng(42.617507, 2.420737), new google.maps.LatLng(42.61716, 2.421026), new google.maps.LatLng(42.616923, 2.421176), new google.maps.LatLng(42.617105, 2.421595), new google.maps.LatLng(42.617302, 2.422078), new google.maps.LatLng(42.617491, 2.422442), new google.maps.LatLng(42.617626, 2.422721), new google.maps.LatLng(42.61776, 2.422678), new google.maps.LatLng(42.617902, 2.422518), new google.maps.LatLng(42.617973, 2.422314), new google.maps.LatLng(42.618076, 2.42211), new google.maps.LatLng(42.618139, 2.422035), new google.maps.LatLng(42.618328, 2.42197)];
var parcours9 = [trace1, trace2];
map = {};
map['lundi'] = {};
map['Ravo545'] = {};
map['lundi']['Ravo545'] = [
[parcours9, 'green', 'Matin']
];
if (choixfiltre1 == "Ravo545" || choixfiltre1 == "Toutes") {
switch (choixfiltre) {
case 'Lundi':
for (var i = 0; i < map[choixfiltre][choixfiltre1].length; i++) {
for (var j = 0; j < map[choixfiltre][choixfiltre1][i][0].length; j++) {
var visible = ((choixfiltre3 == map[choixfiltre][choixfiltre1][i][2]) || (choixfiltre3 == "Journee")) ? opacite_Ravo545 : 0;
var traceParcours = new google.maps.Polyline({
path: map[choixfiltre][choixfiltre1][i][0][j], //window[choixfiltre+choixfiltre1][i][0][j],
strokeColor: map[choixfiltre][choixfiltre1][i][1],
strokeOpacity: visible,
strokeWeight: 4
});
traceParcours.setMap(map);
}
}
break; |
Partager