/****
* 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.498333, -73.406507);
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, 13 Jun 2024 15:23'],
[45.551408, -73.216439, 'red', '172.9 ¢/Litre
Boul. Laurier, route 116
Mont-Saint-Hilaire
Wed, 12 Jun 2024 23:03'],
[45.567869, -73.522612, 'red', '171.9 ¢/Litre
Notre-Dame E / Bossuet
Hochelaga-Maisonneuve
Tue, 11 Jun 2024 12:37'],
[45.520053, -73.318720, 'red', '171.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Tue, 11 Jun 2024 12:47'],
[45.447754, -73.610053, 'red', '171.9 ¢/Litre
Newman / Angrignon
LaSalle
Tue, 11 Jun 2024 12:50'],
[45.455117, -73.632777, 'red', '171.9 ¢/Litre
St-Jacques / St-Anne-de-Bellevue
Notre-Dame-de-Grâce
Tue, 11 Jun 2024 12:51'],
[45.443789, -73.647980, 'red', '171.9 ¢/Litre
St Jacques / St Pierre
Lachine
Tue, 11 Jun 2024 12:51'],
[45.485007, -73.632753, 'red', '170.9 ¢/Litre
Decarie / Isabella
Côte-des-Neiges
Tue, 11 Jun 2024 12:50'],
[45.464810, -73.585022, 'red', '170.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Tue, 11 Jun 2024 12:49'],
[45.595107, -73.511586, 'red', '170.9 ¢/Litre
Notre-Dame / St Donat
Hochelaga-Maisonneuve
Tue, 11 Jun 2024 12:37'],
[45.439289, -73.621925, 'red', '169.9 ¢/Litre
Lapierre / Newman
LaSalle
Tue, 11 Jun 2024 12:49'],
[45.432669, -73.306230, 'red', '169.9 ¢/Litre
1490 Boulevard Brassard
Chambly
Tue, 11 Jun 2024 12:46'],
[45.563185, -73.206182, 'blue', '169.9 ¢/Litre
coin Duvernay, route 116
Beloeil
Wed, 12 Jun 2024 23:10'],
[45.434691, -73.291560, 'red', '169.9 ¢/Litre
Kennedy / Fréchette
Chambly
Tue, 11 Jun 2024 12:47'],
[45.452430, -73.301341, 'red', '169.9 ¢/Litre
930 Périgny / Brassard
Chambly
Tue, 11 Jun 2024 12:46'],
[45.333285, -73.294644, 'blue', '169.9 ¢/Litre
Omer-Marcil / Alexis Lebert
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 02:42'],
[45.447754, -73.291977, 'red', '169.3 ¢/Litre
Périgny / Salaberry
Chambly
Tue, 11 Jun 2024 12:45'],
[45.454187, -73.301763, 'red', '169.3 ¢/Litre
875 Périgny / St-Joseph
Chambly
Tue, 11 Jun 2024 12:45'],
[45.547614, -73.206221, 'blue', '168.9 ¢/Litre
539 Chemin des Patriotes
Otterburn Park
Wed, 12 Jun 2024 23:08'],
[45.567408, -73.406653, 'red', '168.9 ¢/Litre
Montarville / Eifel
Boucherville
Tue, 11 Jun 2024 12:36'],
[45.542277, -73.187736, 'blue', '167.9 ¢/Litre
511 Chemin Ozias Leduc
Otterburn Park
Thu, 13 Jun 2024 15:24'],
[45.436609, -73.625192, 'red', '167.9 ¢/Litre
Newman / Thierry
LaSalle
Tue, 11 Jun 2024 12:48'],
[45.313099, -73.228636, 'red', 'Pétroles Trudo - 167.9 ¢/Litre
Rte 104
Mont-Saint-Grégoire
Tue, 11 Jun 2024 12:34'],
[45.542741, -73.186994, 'blue', '167.9 ¢/Litre
459 Chemin Ozias Leduc
Otterburn Park
Wed, 12 Jun 2024 23:07'],
[45.467640, -73.538519, 'blue', '167.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 13 Jun 2024 13:37'],
[45.342527, -73.302757, 'red', '165.9 ¢/Litre
Rue Bernier / Rue Pierre-Brosseau
Saint-Jean-sur-Richelieu
Tue, 11 Jun 2024 12:44'],
[45.542277, -73.187736, 'blue', '165.9 ¢/Litre
511 Chemin Ozias-Leduc
Otterburn Park
Wed, 12 Jun 2024 23:06'],
[45.458885, -73.419335, 'red', '164.9 ¢/Litre
Grande Allée / du Quartier / Moïse Vincent
Saint-Hubert
Tue, 11 Jun 2024 12:41'],
[45.456332, -73.415714, 'red', '164.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Tue, 11 Jun 2024 12:40'],
[45.514231, -73.132863, 'blue', '164.9 ¢/Litre
Principale / Rouville
Saint-Jean-Baptiste
Wed, 12 Jun 2024 23:02'],
[45.306225, -73.283867, 'green', '163.9 ¢/Litre
Industriel/St Jacques
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 02:43'],
[45.314787, -73.264700, 'green', '163.9 ¢/Litre
Séminaire / St-Joseph
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 02:44'],
[45.606363, -73.103125, 'green', '161.9 ¢/Litre
5 rue St Simon/auto 20/sortie 120
Sainte-Madeleine
Thu, 13 Jun 2024 15:23'],
[45.576824, -73.327727, 'red', '161.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Tue, 11 Jun 2024 12:35'],
[45.576935, -73.327703, 'red', '161.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Tue, 11 Jun 2024 12:36'],
[45.721626, -73.506924, 'red', 'Costco - 161.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Tue, 11 Jun 2024 13:24'],
[45.522034, -73.464228, 'green', '160.9 ¢/Litre
2720 Ch.de Chambly/Bl Jacques Cartier
Longueuil
Thu, 13 Jun 2024 16:49'],
[45.486768, -73.551440, 'red', 'Costco - 159.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Tue, 11 Jun 2024 12:48'],
[45.574156, -73.756927, 'green', 'Costco - 159.9 ¢/Litre
2999 440 oest
Laval
Thu, 13 Jun 2024 04:44'],
[45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Thu, 13 Jun 2024 13:36'],
[45.434650, -73.480101, 'red', 'Costco - 159.9 ¢/Litre
9430 Boulevard Taschereau, Brossard
Brossard
Tue, 11 Jun 2024 13:30'],
[45.577602, -73.405821, 'green', 'Costco - 159.9 ¢/Litre
635 ch de Touraine
Boucherville
Wed, 12 Jun 2024 10:28'],
[45.355527, -73.297120, 'red', '158.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Tue, 11 Jun 2024 12:43']];
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+");});");
}
}