/****
* 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.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.570811, -73.572556, 'red', '
176.9 ¢/Litre
Beaubien / Viau
Rosemont
Mon, 24 Jun 2024 10:30'],
[45.689419, -73.782069, 'red', '
176.9 ¢/Litre
Saint-François / Côte St Louis / Rte 335
Terrebonne
Mon, 24 Jun 2024 22:55'],
[45.593169, -73.185226, 'red', '
175.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Tue, 25 Jun 2024 16:13'],
[45.512580, -73.499581, 'red', '
175.9 ¢/Litre
Taschereau / Ste Foy
Longueuil
Sun, 23 Jun 2024 19:29'],
[45.567928, -73.450352, 'red', '
175.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Mon, 24 Jun 2024 11:30'],
[45.656168, -73.421819, 'red', '
175.9 ¢/Litre
De La Marine / Rte 132
Varennes
Tue, 25 Jun 2024 16:10'],
[45.686516, -73.431196, 'red', '
175.9 ¢/Litre
Quévillon / René-Gaultier
Varennes
Tue, 25 Jun 2024 16:14'],
[45.681034, -73.437497, 'red', '
175.9 ¢/Litre
De La Marine / Rte 132
Varennes
Tue, 25 Jun 2024 16:10'],
[45.593169, -73.185226, 'red', '
174.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Tue, 25 Jun 2024 16:14'],
[45.596853, -73.522632, 'red', '
173.9 ¢/Litre
Hochelaga / St-Émile / Lapointe
Hochelaga-Maisonneuve
Tue, 25 Jun 2024 16:09'],
[45.595107, -73.511586, 'red', '
173.9 ¢/Litre
Notre-Dame / St Donat
Hochelaga-Maisonneuve
Mon, 24 Jun 2024 12:51'],
[45.598602, -73.552882, 'blue', '
173.6 ¢/Litre
Louis-H-Lafontaine / Aut 25 / Beaubien
Anjou
Tue, 25 Jun 2024 15:00'],
[45.611373, -73.438346, 'blue', '
172.9 ¢/Litre
Montbrun / Des Ateliers
Boucherville
Tue, 25 Jun 2024 16:09'],
[45.520053, -73.318720, 'blue', '
171.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Tue, 25 Jun 2024 16:41'],
[45.865525, -73.145475, 'blue', '
171.9 ¢/Litre
4950 des patriotes
Contrecoeur
Wed, 26 Jun 2024 06:40'],
[45.595021, -73.576689, 'blue', '
171.9 ¢/Litre
Aut 40 / Langelier
Saint-Leonard
Mon, 24 Jun 2024 21:00'],
[45.851462, -73.245437, 'blue', '
171.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Wed, 26 Jun 2024 06:40'],
[45.528552, -73.290176, 'blue', '
171.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Tue, 25 Jun 2024 16:40'],
[46.032765, -73.131538, 'blue', '
171.9 ¢/Litre
2455 chemin Saint-Roch
Sorel-Tracy
Sun, 23 Jun 2024 18:03'],
[45.523773, -73.302032, 'blue', '
171.9 ¢/Litre
Millenaire / Sir-Wilfrid-Laurier / Rte 116
Saint-Basile-le-Grand
Tue, 25 Jun 2024 16:41'],
[45.540392, -73.368003, 'blue', '
170.9 ¢/Litre
Montarville / Parent / Aut 30 (Sortie 121)
Saint-Bruno-de-Montarville
Tue, 25 Jun 2024 16:08'],
[45.571289, -73.177673, 'blue', '
169.9 ¢/Litre
Sir Wilfrid Laurier / Bernard
Mont-Saint-Hilaire
Tue, 25 Jun 2024 16:12'],
[45.562616, -73.188010, 'blue', '
169.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Tue, 25 Jun 2024 16:13'],
[45.549520, -73.219972, 'blue', '
169.9 ¢/Litre
Sir Wilfrid Laurier / Bernard Pilon
Beloeil
Tue, 25 Jun 2024 16:10'],
[45.562421, -73.188442, 'blue', '
169.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Tue, 25 Jun 2024 16:11'],
[45.520131, -73.318072, 'blue', '
169.9 ¢/Litre
De Boucherville / 116
Saint-Bruno-de-Montarville
Tue, 25 Jun 2024 16:40'],
[45.562847, -73.224587, 'blue', '
168.9 ¢/Litre
235 Blvd Yvon-lHeureux Nord
Beloeil
Mon, 24 Jun 2024 12:48'],
[45.567925, -73.203947, 'blue', '
168.9 ¢/Litre
St-Jean-Baptiste / Yvon-LHeureux
Beloeil
Mon, 24 Jun 2024 11:00'],
[46.043999, -73.104706, 'blue', '
167.9 ¢/Litre
Fiset / Hotel-Dieu
Sorel-Tracy
Sun, 23 Jun 2024 18:04'],
[46.029181, -73.144576, 'blue', '
167.9 ¢/Litre
Boul, St-Louis
Sorel-Tracy
Sun, 23 Jun 2024 18:04'],
[45.720799, -73.464294, 'green', '
166.9 ¢/Litre
Notre-Dame / Bord-de-leau
Repentigny
Tue, 25 Jun 2024 16:14'],
[45.607988, -73.584409, 'green', 'Costco - 164.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Tue, 25 Jun 2024 14:00'],
[45.576935, -73.327703, 'green', '
163.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Tue, 25 Jun 2024 16:08'],
[45.576824, -73.327727, 'green', '
163.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Tue, 25 Jun 2024 16:07'],
[45.721453, -73.508422, 'red', 'Costco - 161.9 ¢/Litre
des Pionniers / Yves-Blais
Terrebonne
Sun, 23 Jun 2024 11:42'],
[45.635377, -73.316982, 'green', '
160.9 ¢/Litre
Principale / Adam
Saint-Amable
Mon, 24 Jun 2024 23:07'],
[45.684327, -73.435514, 'green', '
160.9 ¢/Litre
Marie-Victorin / Vincent
Varennes
Tue, 25 Jun 2024 08:32'],
[45.577739, -73.405651, 'green', 'Costco - 160.0 ¢/Litre
635 Ch de Touraine
Boucherville
Tue, 25 Jun 2024 23:09'],
[45.721626, -73.506924, 'green', 'Costco - 159.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Mon, 24 Jun 2024 12:04']];
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+");});");
}
}