/****
* 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.633373, -73.516252);
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.486054, -73.633837, 'red', '
177.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Fri, 28 Jun 2024 11:36'],
[45.486616, -73.636535, 'red', '
177.9 ¢/Litre
Decarie / Dupuis / Cote Ste Catherine
Côte-des-Neiges
Fri, 28 Jun 2024 11:37'],
[45.467640, -73.538519, 'red', '
177.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Fri, 28 Jun 2024 15:19'],
[45.681034, -73.437497, 'red', '
177.9 ¢/Litre
De La Marine / Rte 132
Varennes
Fri, 28 Jun 2024 17:24'],
[45.445236, -73.438325, 'red', '
176.9 ¢/Litre
Leduc / Lepage
Brossard
Fri, 28 Jun 2024 11:33'],
[45.591175, -73.525419, 'red', '
176.9 ¢/Litre
Hochelaga / Curatteau / Aut 25
Hochelaga-Maisonneuve
Fri, 28 Jun 2024 17:24'],
[45.602901, -73.351848, 'red', '
176.9 ¢/Litre
Mteé Ste-Julie / N-P Lapierre
Sainte-Julie
Fri, 28 Jun 2024 17:23'],
[45.562616, -73.188010, 'red', '
176.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Fri, 28 Jun 2024 10:00'],
[45.592253, -73.592148, 'red', '
175.9 ¢/Litre
Robert / Albanel
Saint-Leonard
Fri, 28 Jun 2024 11:40'],
[45.512580, -73.499581, 'red', '
175.9 ¢/Litre
Taschereau / Ste Foy
Longueuil
Fri, 28 Jun 2024 17:20'],
[45.547999, -73.495463, 'red', '
175.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Fri, 28 Jun 2024 17:08'],
[45.538301, -73.480087, 'red', '
175.9 ¢/Litre
Rolland Therrien / Du Lac
Longueuil
Fri, 28 Jun 2024 17:08'],
[45.567523, -73.450137, 'red', '
174.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Fri, 28 Jun 2024 17:09'],
[45.567928, -73.450352, 'red', '
174.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Fri, 28 Jun 2024 17:09'],
[45.568999, -73.443687, 'red', '
174.9 ¢/Litre
Nobel / Volta
Boucherville
Fri, 28 Jun 2024 10:00'],
[45.421724, -73.635371, 'blue', '
173.9 ¢/Litre
Airlie / 80e Ave
LaSalle
Fri, 28 Jun 2024 11:36'],
[45.596853, -73.522632, 'blue', '
173.9 ¢/Litre
Hochelaga / St-Émile / Lapointe
Hochelaga-Maisonneuve
Fri, 28 Jun 2024 17:22'],
[45.865525, -73.145475, 'blue', '
173.9 ¢/Litre
4950 des patriotes
Contrecoeur
Fri, 28 Jun 2024 23:07'],
[45.632293, -73.391157, 'blue', '
173.9 ¢/Litre
1459 Lionnel boulet / Ch Energie
Varennes
Fri, 28 Jun 2024 17:22'],
[45.595021, -73.576689, 'blue', '
173.9 ¢/Litre
Aut 40 / Langelier
Saint-Leonard
Fri, 28 Jun 2024 11:39'],
[45.851462, -73.245437, 'blue', '
173.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Fri, 28 Jun 2024 23:07'],
[45.574931, -73.876109, 'blue', 'Belisle - 172.9 ¢/Litre
St-Laurent
Saint-Eustache
Fri, 28 Jun 2024 10:52'],
[45.454187, -73.301763, 'blue', '
172.9 ¢/Litre
875 Périgny / St-Joseph
Chambly
Fri, 28 Jun 2024 11:32'],
[45.470785, -73.468103, 'blue', '
172.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Fri, 28 Jun 2024 11:34'],
[45.536768, -73.499334, 'blue', 'Super Gaz - 171.9 ¢/Litre
Chambly / Le Moyne
Longueuil
Fri, 28 Jun 2024 11:26'],
[45.536265, -73.513074, 'blue', '
171.9 ¢/Litre
St-Charles / St-Sylvestre
Longueuil
Fri, 28 Jun 2024 17:20'],
[45.656168, -73.421819, 'blue', '
171.9 ¢/Litre
De La Marine / Rte 132
Varennes
Fri, 28 Jun 2024 17:21'],
[45.473253, -73.402898, 'blue', '
170.9 ¢/Litre
Cousineau / Moïse Vincent
Saint-Hubert
Fri, 28 Jun 2024 11:32'],
[45.481291, -73.388865, 'blue', '
170.9 ¢/Litre
Cousineau / Moïse Vincent / Aut 30
Saint-Hubert
Fri, 28 Jun 2024 11:31'],
[45.562421, -73.188442, 'blue', '
169.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Fri, 28 Jun 2024 11:29'],
[45.592512, -73.197819, 'blue', '
169.9 ¢/Litre
Serge-Pepin / André Labadie
Beloeil
Fri, 28 Jun 2024 11:28'],
[45.521868, -73.463538, 'green', '
167.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Fri, 28 Jun 2024 17:19'],
[45.603946, -73.101863, 'green', '
164.9 ¢/Litre
St-Simon / Aut 20 (Sortie 120)
Sainte-Madeleine
Fri, 28 Jun 2024 11:29'],
[45.456332, -73.415714, 'green', '
164.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Fri, 28 Jun 2024 15:30'],
[45.462287, -73.453165, 'green', '
164.3 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Fri, 28 Jun 2024 15:30'],
[45.607988, -73.584409, 'green', 'Costco - 163.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Fri, 28 Jun 2024 17:18'],
[45.721453, -73.508422, 'green', 'Costco - 162.9 ¢/Litre
des Pionniers / Yves-Blais
Terrebonne
Fri, 28 Jun 2024 11:52'],
[45.475037, -73.358947, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
Chemin Chambly / Montée Daniel
Saint-Hubert
Fri, 28 Jun 2024 17:14'],
[45.580715, -73.760447, 'green', 'Costco - 162.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Fri, 28 Jun 2024 17:18'],
[45.371582, -73.515440, 'green', 'Costco - 161.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Fri, 28 Jun 2024 17:17'],
[45.433637, -73.477474, 'green', 'Costco - 160.9 ¢/Litre
Taschereau / Matte
Brossard
Fri, 28 Jun 2024 17:12'],
[45.577602, -73.405821, 'green', 'Costco - 160.8 ¢/Litre
635 ch de Touraine
Boucherville
Fri, 28 Jun 2024 10:16'],
[45.577739, -73.405651, 'green', 'Costco - 160.8 ¢/Litre
635 Ch de Touraine
Boucherville
Fri, 28 Jun 2024 17:09']];
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+");});");
}
}