/****
* 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=e *
****/
function mapload() {
var latlng = new google.maps.LatLng(45.825317, -73.359313);
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.571289, -73.177673, 'red', '
172.9 ¢/Litre
Sir Wilfrid Laurier / Bernard
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:24'],
[45.595047, -73.582150, 'red', '
172.9 ¢/Litre
Langelier / Jarry E
Saint-Leonard
Sun, 16 Jun 2024 00:57'],
[45.515478, -73.490700, 'red', '
172.9 ¢/Litre
Curé Poirier / Ste-Hélène
Longueuil
Sun, 16 Jun 2024 01:00'],
[45.575375, -73.446954, 'red', '
172.9 ¢/Litre
Mortagne / Ampére
Boucherville
Fri, 14 Jun 2024 23:38'],
[45.547999, -73.495463, 'red', '
171.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Sat, 15 Jun 2024 23:00'],
[45.523773, -73.302032, 'red', '
171.9 ¢/Litre
Millenaire / Sir-Wilfrid-Laurier / Rte 116
Saint-Basile-le-Grand
Fri, 14 Jun 2024 13:22'],
[45.520053, -73.318720, 'red', '
171.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 13:23'],
[45.520131, -73.318072, 'red', '
171.9 ¢/Litre
De Boucherville / 116
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 13:23'],
[45.851462, -73.245437, 'red', '
169.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Mon, 17 Jun 2024 08:48'],
[45.865525, -73.145475, 'red', '
169.9 ¢/Litre
4950 des patriotes
Contrecoeur
Mon, 17 Jun 2024 08:47'],
[45.529202, -73.512815, 'red', '
169.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Fri, 14 Jun 2024 13:27'],
[45.562616, -73.188010, 'red', '
169.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:22'],
[45.528552, -73.290176, 'red', '
169.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Fri, 14 Jun 2024 13:21'],
[45.578564, -73.575518, 'red', '
169.9 ¢/Litre
Bélanger E / lAssomption
Rosemont
Fri, 14 Jun 2024 13:41'],
[45.529330, -73.512732, 'red', '
169.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Fri, 14 Jun 2024 13:27'],
[45.562421, -73.188442, 'red', '
168.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:20'],
[45.537753, -73.356759, 'red', '
168.9 ¢/Litre
Montarville / Lavérendrye
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 13:18'],
[45.582704, -73.426126, 'blue', '
168.9 ¢/Litre
Montarville / Normandie
Boucherville
Sat, 15 Jun 2024 22:00'],
[45.524007, -73.495670, 'red', 'Ekonogaz - 168.9 ¢/Litre
Ste-Foy / Emma
Longueuil
Fri, 14 Jun 2024 13:26'],
[45.529366, -73.481586, 'red', '
167.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Fri, 14 Jun 2024 13:18'],
[45.519459, -73.457760, 'red', '
165.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Fri, 14 Jun 2024 13:17'],
[45.721626, -73.506924, 'green', 'Costco - 161.9 ¢/Litre
870 monte des pionniers
Terrebonne
Sat, 15 Jun 2024 12:00'],
[45.721626, -73.506924, 'green', 'Costco - 159.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Mon, 17 Jun 2024 12:36'],
[45.684327, -73.435514, 'green', '
159.9 ¢/Litre
Marie-Victorin / Vincent
Varennes
Mon, 17 Jun 2024 08:47'],
[45.686705, -73.432357, 'green', '
158.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Mon, 17 Jun 2024 10:59'],
[45.577050, -73.403659, 'green', 'Costco - 158.9 ¢/Litre
635 ch de Touraine
Boucherville
Sat, 15 Jun 2024 21:30']];
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+");});");
}
}