/**** * 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.549977, -73.471023); 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.598981, -73.447627, 'red', '170.9 ¢/Litre
Samuel de Champlain / Montarville
Boucherville
Fri, 07 Jun 2024 09:53'], [45.593235, -73.907617, 'red', '169.9 ¢/Litre
25ième ave
Saint-Eustache
Fri, 07 Jun 2024 10:56'], [45.567523, -73.450137, 'red', '169.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Fri, 07 Jun 2024 09:53'], [45.576640, -73.446699, 'red', '169.9 ¢/Litre
Mortagne / Parfondeval
Boucherville
Fri, 07 Jun 2024 09:52'], [45.575375, -73.446954, 'red', '169.9 ¢/Litre
Mortagne / Ampére
Boucherville
Fri, 07 Jun 2024 09:50'], [45.470437, -73.495625, 'red', '169.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Fri, 07 Jun 2024 09:49'], [45.470898, -73.496523, 'red', '169.9 ¢/Litre
Marie Victorin / Provencher
Brossard
Fri, 07 Jun 2024 09:49'], [45.579334, -73.447128, 'blue', '168.9 ¢/Litre
Mortagne / Industriel
Boucherville
Fri, 07 Jun 2024 09:52'], [45.470420, -73.832197, 'blue', '168.9 ¢/Litre
St Jean / Devon
Dollard-des-Ormeaux
Fri, 07 Jun 2024 01:49'], [45.496101, -73.513824, 'blue', '168.9 ¢/Litre
Riverside / Edison
Saint-Lambert
Fri, 07 Jun 2024 09:50'], [45.467640, -73.538519, 'blue', '168.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Fri, 07 Jun 2024 00:07'], [45.464810, -73.585022, 'blue', '168.9 ¢/Litre
La Verendrye / De l’Église
Le Sud-Ouest
Thu, 06 Jun 2024 23:30'], [45.449479, -73.855608, 'blue', '167.9 ¢/Litre
St Charles / Hymus
Kirkland
Fri, 07 Jun 2024 01:49'], [45.574931, -73.876109, 'blue', 'Belisle - 167.9 ¢/Litre
St-Laurent
Saint-Eustache
Fri, 07 Jun 2024 10:56'], [45.483405, -73.796368, 'green', '163.9 ¢/Litre
Sources / Brunswick
Dollard-des-Ormeaux
Fri, 07 Jun 2024 01:48'], [45.502091, -73.815540, 'green', '161.9 ¢/Litre
Sources / Anselme Lavigne
Dollard-des-Ormeaux
Fri, 07 Jun 2024 01:47'], [45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Fri, 07 Jun 2024 00:05'], [45.577602, -73.405821, 'green', 'Costco - 159.9 ¢/Litre
635 ch de Touraine
Boucherville
Fri, 07 Jun 2024 09:51'], [45.351623, -73.292885, 'green', 'Pétrole Maurice - 156.0 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Fri, 07 Jun 2024 09:26']]; 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+");});"); } }