/****
* 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.305772, -73.254490);
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.593169, -73.185226, 'red', '175.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Thu, 06 Jun 2024 17:40'],
[45.425325, -72.807918, 'red', '174.9 ¢/Litre
rue principale
Saint-Paul-dAbbotsford
Thu, 06 Jun 2024 17:12'],
[45.593169, -73.185226, 'red', '174.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Thu, 06 Jun 2024 17:39'],
[45.342316, -72.783502, 'red', '172.9 ¢/Litre
Rte 139 / Aut 10 (Sortie 68)
Saint-Alphonse-de-Granby
Thu, 06 Jun 2024 15:30'],
[45.329043, -72.817201, 'red', '172.9 ¢/Litre
Rte 139 / Aut 10 (Sortie 68)
Saint-Alphonse-de-Granby
Thu, 06 Jun 2024 15:30'],
[45.515478, -73.490700, 'blue', '169.9 ¢/Litre
Curé Poirier / Ste-Hélène
Longueuil
Thu, 06 Jun 2024 17:26'],
[45.467640, -73.538519, 'blue', '169.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sat, 08 Jun 2024 13:20'],
[45.523773, -73.302032, 'blue', '169.9 ¢/Litre
Millenaire / Sir-Wilfrid-Laurier / Rte 116
Saint-Basile-le-Grand
Thu, 06 Jun 2024 17:36'],
[45.455084, -73.443046, 'blue', '169.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Thu, 06 Jun 2024 15:30'],
[45.571289, -73.177673, 'blue', '169.9 ¢/Litre
Sir Wilfrid Laurier / Bernard
Mont-Saint-Hilaire
Thu, 06 Jun 2024 17:39'],
[45.470898, -73.496523, 'blue', '169.9 ¢/Litre
Marie Victorin / Provencher
Brossard
Fri, 07 Jun 2024 08:49'],
[45.567523, -73.450137, 'blue', '169.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Fri, 07 Jun 2024 08:53'],
[45.470437, -73.495625, 'blue', '169.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Fri, 07 Jun 2024 08:49'],
[45.364946, -72.934102, 'blue', '169.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Thu, 06 Jun 2024 17:12'],
[45.362059, -72.934853, 'blue', '169.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Thu, 06 Jun 2024 17:12'],
[0.000000, 0.000000, 'blue', '169.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
LAnge-Gardien (Montérégie)
Thu, 06 Jun 2024 17:11'],
[45.365866, -72.933780, 'blue', '169.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Thu, 06 Jun 2024 17:11'],
[45.443962, -73.246705, 'blue', '168.9 ¢/Litre
510 Blvd Richelieu / Ch des Patriotes
Richelieu
Thu, 06 Jun 2024 17:35'],
[45.528552, -73.290176, 'blue', '168.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Thu, 06 Jun 2024 17:36'],
[45.459100, -73.256330, 'blue', '168.9 ¢/Litre
123 CH des Patriotes
Saint-Mathias-sur-Richelieu
Thu, 06 Jun 2024 17:34'],
[45.496101, -73.513824, 'blue', '168.9 ¢/Litre
Riverside / Edison
Saint-Lambert
Fri, 07 Jun 2024 08:50'],
[45.542115, -73.187408, 'blue', '168.9 ¢/Litre
Ozias-Leduc / De La Montagne
Otterburn Park
Thu, 06 Jun 2024 17:38'],
[45.464810, -73.585022, 'blue', '168.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Thu, 06 Jun 2024 22:30'],
[45.447459, -73.610181, 'blue', '166.9 ¢/Litre
boul.newmen/angrignon
LaSalle
Thu, 06 Jun 2024 13:03'],
[45.525696, -73.551544, 'blue', '166.9 ¢/Litre
De Maisonneuve / De Lorimier
Ville-Marie (Montreal)
Thu, 06 Jun 2024 17:25'],
[45.536768, -73.499334, 'blue', 'Super Gaz - 165.9 ¢/Litre
Chambly / Le Moyne
Longueuil
Thu, 06 Jun 2024 14:30'],
[45.458904, -73.419386, 'blue', '164.9 ¢/Litre
Grande-Allée / Du Quartier
Brossard
Thu, 06 Jun 2024 17:33'],
[45.495558, -73.474528, 'blue', '164.9 ¢/Litre
Grande Allée / Albert
Saint-Hubert
Thu, 06 Jun 2024 17:24'],
[45.456332, -73.415714, 'blue', '164.3 ¢/Litre
Grande Allée / Aut 30
Brossard
Thu, 06 Jun 2024 17:27'],
[45.470785, -73.468103, 'blue', '164.3 ¢/Litre
Taschereau / Lapiniére
Brossard
Thu, 06 Jun 2024 17:27'],
[45.479275, -73.465158, 'blue', '164.3 ¢/Litre
Taschereau / Angèle
Brossard
Thu, 06 Jun 2024 17:28'],
[45.576824, -73.327727, 'green', '163.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Thu, 06 Jun 2024 17:19'],
[45.521868, -73.463538, 'green', '162.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Thu, 06 Jun 2024 17:19'],
[45.538301, -73.480087, 'green', '162.9 ¢/Litre
Rolland Therrien / Du Lac
Longueuil
Thu, 06 Jun 2024 17:18'],
[45.529366, -73.481586, 'green', '162.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Thu, 06 Jun 2024 17:17'],
[45.547999, -73.495463, 'green', '162.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Thu, 06 Jun 2024 17:18'],
[45.511796, -73.439486, 'green', '161.9 ¢/Litre
Chambly / Vauquelin
Saint-Hubert
Thu, 06 Jun 2024 17:24'],
[45.521714, -73.463444, 'green', '161.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Thu, 06 Jun 2024 17:16'],
[45.519459, -73.457760, 'green', '161.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Thu, 06 Jun 2024 17:17'],
[45.433637, -73.477474, 'green', 'Costco - 159.9 ¢/Litre
Taschereau / Matte
Brossard
Thu, 06 Jun 2024 21:30'],
[45.486921, -73.552297, 'green', 'Costco - 159.9 ¢/Litre
Bridge / Mill
Montréal-Ouest
Sat, 08 Jun 2024 06:50'],
[45.486768, -73.551440, 'green', 'Costco - 159.0 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Sat, 08 Jun 2024 06:23'],
[45.370650, -73.517754, 'green', 'Costco - 159.0 ¢/Litre
60 bld strabourg
Candiac
Thu, 06 Jun 2024 15:48'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 156.0 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Fri, 07 Jun 2024 08: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+");});");
}
}