/**** * IMPORTANT! PLEASE READ! * * The informamation contained in this file is the property of Essence Montreal. * To remain in accordance with this website's Terms and Conditions (the "Terms"), * you may not, copy, store, reproduce, reuse, sell, redistribute or republish any * information found on this page or found anywhere else on this website. * * The use of any of the information from this page or anywhere else on this website * for any use outside of the website's functionality is stricly prohibited. * * You may review our Terms here: * https://www.essencemontreal.com/terms.php?l=f * ****/ function mapload() { var latlng = new google.maps.LatLng(45.630689, -72.956339); var myOptions = { zoom: 10, center: latlng, navigationControl: true, navigationControlOptions: {style: google.maps.NavigationControlStyle.ZOOM_PAN}, mapTypeControl: true, //streetViewControl: true, scaleControl: false, scrollwheel: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("stationmap"), myOptions); infoWindow = new google.maps.InfoWindow(); setMarkers(map, stations); } /** * Data for the markers */ var stations = [ [45.580515, -73.214191, 'red', '182.9 ¢/Litre
St-Jean Baptiste / Yvon l’Heureux
Beloeil
Thu, 02 May 2024 12:22'], [0.000000, 0.000000, 'red', '182.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
L’Ange-Gardien (Montérégie)
Thu, 02 May 2024 12:30'], [45.362059, -72.934853, 'red', '182.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
L’Ange-Gardien (Montérégie)
Thu, 02 May 2024 12:29'], [45.364946, -72.934102, 'red', '182.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
L’Ange-Gardien (Montérégie)
Thu, 02 May 2024 12:30'], [45.416735, -72.760960, 'red', '181.9 ¢/Litre
Principale / Des Colombes
Granby
Thu, 02 May 2024 10:30'], [45.851462, -73.245437, 'red', '181.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Fri, 03 May 2024 07:22'], [45.865525, -73.145475, 'red', '181.9 ¢/Litre
4950 des patriotes
Contrecoeur
Fri, 03 May 2024 07:22'], [45.396920, -72.740783, 'red', '181.9 ¢/Litre
Robinson
Granby
Thu, 02 May 2024 12:22'], [45.514231, -73.132863, 'blue', '180.9 ¢/Litre
Principale / Rouville
Saint-Jean-Baptiste
Thu, 02 May 2024 15:15'], [45.520053, -73.318720, 'blue', '179.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Fri, 03 May 2024 21:55'], [45.540392, -73.368003, 'blue', '179.9 ¢/Litre
Montarville / Parent / Aut 30 (Sortie 121)
Saint-Bruno-de-Montarville
Sat, 04 May 2024 12:03'], [45.592500, -73.342699, 'blue', '179.3 ¢/Litre
Auto20/sortie 102
Sainte-Julie
Fri, 03 May 2024 05:49'], [45.576824, -73.327727, 'green', '174.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Sat, 04 May 2024 12:02'], [45.576935, -73.327703, 'green', '174.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Sat, 04 May 2024 12:02']]; function setMarkers(map, locations) { // Add markers to the map var redicon = new google.maps.MarkerImage('https://www.essencemontreal.com/images/map/redmarker.png', new google.maps.Size(20, 32), new google.maps.Point(0,0), new google.maps.Point(0, 32)); var blueicon = new google.maps.MarkerImage('https://www.essencemontreal.com/images/map/bluemarker.png', new google.maps.Size(20, 32), new google.maps.Point(0,0), new google.maps.Point(0, 32)); var greenicon = new google.maps.MarkerImage('https://www.essencemontreal.com/images/map/greenmarker.png', new google.maps.Size(20, 32), new google.maps.Point(0,0), new google.maps.Point(0, 32)); var shadow = new google.maps.MarkerImage('https://www.essencemontreal.com/images/map/shadow50.png', new google.maps.Size(37, 32), new google.maps.Point(0,0), new google.maps.Point(0, 32)); var shape = { coord: [1, 1, 1, 20, 18, 20, 18 , 1], type: 'poly' }; for (var i = 0; i < locations.length; i++) { var stn = locations[i]; if(stn[2] == "red") {iconcolor = redicon;} else if(stn[2] == "green") {iconcolor = greenicon;} else if(stn[2] == "blue") {iconcolor = blueicon; } var myLatLng = new google.maps.LatLng(stn[0], stn[1]); eval("var marker"+i+" = new google.maps.Marker({position: myLatLng, map: map,shadow: shadow, icon: iconcolor, shape: shape});"); eval("google.maps.event.addListener(marker"+i+", 'click', function() {infoWindow.setContent(locations["+i+"][3]); infoWindow.open(map, marker"+i+");});"); } }