/**** * 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.166709, -73.516255); 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.458915, -73.464943, 'red', '185.9 ¢/Litre
Taschereau / Mario
Brossard
Wed, 01 May 2024 11:06'], [45.455084, -73.443046, 'red', '185.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Wed, 01 May 2024 11:07'], [45.481416, -73.577714, 'red', '184.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Wed, 01 May 2024 11:09'], [45.481060, -73.578331, 'red', '184.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Thu, 02 May 2024 13:16'], [45.421724, -73.635371, 'red', '184.9 ¢/Litre
Airlie / 80e Ave
LaSalle
Wed, 01 May 2024 11:09'], [45.463308, -73.578714, 'red', '183.9 ¢/Litre
De l’Eglise / Champlain
Verdun
Thu, 02 May 2024 13:12'], [45.464810, -73.585022, 'red', '183.9 ¢/Litre
La Verendrye / De l’Église
Le Sud-Ouest
Thu, 02 May 2024 13:12'], [45.454885, -73.465571, 'red', '183.9 ¢/Litre
Taschereau / Rome
Brossard
Thu, 02 May 2024 13:10'], [45.467640, -73.538519, 'red', '183.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 02 May 2024 22:26'], [45.471666, -73.563345, 'blue', 'Mobil - 182.9 ¢/Litre
3000 Wellington / Gilberte-Dubé / Henri Duhamel
Verdun
Thu, 02 May 2024 13:11'], [45.470851, -73.564091, 'blue', '182.9 ¢/Litre
Wellington / Gilberte-Dubé / Henri-Duhamel
Verdun
Thu, 02 May 2024 13:11'], [45.462287, -73.453165, 'blue', '179.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Thu, 02 May 2024 13:08'], [45.486768, -73.551440, 'green', 'Costco - 177.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Thu, 02 May 2024 13:10'], [45.433637, -73.477474, 'green', 'Costco - 175.9 ¢/Litre
Taschereau / Matte
Brossard
Thu, 02 May 2024 11:00'], [45.352015, -73.293630, 'green', '175.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Wed, 01 May 2024 11:16'], [45.338756, -73.286105, 'green', '172.9 ¢/Litre
1315 rue Douglas
Saint-Jean-sur-Richelieu
Wed, 01 May 2024 11:15'], [45.355527, -73.297120, 'green', '171.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Wed, 01 May 2024 11:15'], [45.351623, -73.292885, 'green', 'Pétrole Maurice - 169.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Thu, 02 May 2024 07:52']]; 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+");});"); } }