/****
* 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.630689, -72.956339);
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.364946, -72.934102, 'red', '176.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Wed, 26 Jun 2024 12:10'],
[45.401205, -72.760404, 'red', '176.9 ¢/Litre
Maisonneuve / Simmonds
Granby
Tue, 25 Jun 2024 16:33'],
[0.000000, 0.000000, 'red', '176.9 ¢/Litre
2019 ROUTE 112
Saint-Césaire
Wed, 26 Jun 2024 12:10'],
[45.562616, -73.188010, 'red', '176.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Fri, 28 Jun 2024 09:00'],
[45.416735, -72.760960, 'red', '176.9 ¢/Litre
Principale / Des Colombes
Granby
Wed, 26 Jun 2024 12:04'],
[45.396802, -72.751605, 'red', '176.9 ¢/Litre
Brignon
Granby
Tue, 25 Jun 2024 16:34'],
[45.602682, -73.351633, 'red', '175.9 ¢/Litre
Mtée Ste-Julie/Boul. Lapierre
Sainte-Julie
Thu, 27 Jun 2024 12:58'],
[45.593169, -73.185226, 'red', '175.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Tue, 25 Jun 2024 16:13'],
[45.593169, -73.185226, 'red', '174.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Tue, 25 Jun 2024 16:14'],
[45.454187, -73.301763, 'blue', '172.9 ¢/Litre
875 Périgny / St-Joseph
Chambly
Fri, 28 Jun 2024 10:32'],
[45.528552, -73.290176, 'blue', '171.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Tue, 25 Jun 2024 16:40'],
[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.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.851462, -73.245437, 'blue', '171.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Wed, 26 Jun 2024 06:40'],
[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.537753, -73.356759, 'blue', '170.9 ¢/Litre
Montarville / Lavérendrye
Saint-Bruno-de-Montarville
Thu, 27 Jun 2024 12:57'],
[45.592512, -73.197819, 'blue', '169.9 ¢/Litre
Serge-Pepin / André Labadie
Beloeil
Fri, 28 Jun 2024 10:28'],
[45.549520, -73.219972, 'blue', '169.9 ¢/Litre
Sir Wilfrid Laurier / Bernard Pilon
Beloeil
Wed, 26 Jun 2024 09:00'],
[45.471612, -72.904342, 'blue', '169.9 ¢/Litre
791 Route 112
Saint-Césaire
Wed, 26 Jun 2024 12:09'],
[45.562421, -73.188442, 'blue', '169.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Fri, 28 Jun 2024 10:29'],
[45.571289, -73.177673, 'blue', '169.9 ¢/Litre
Sir Wilfrid Laurier / Bernard
Mont-Saint-Hilaire
Wed, 26 Jun 2024 10:30'],
[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', '169.9 ¢/Litre
235 Blvd Yvon-lHeureux Nord
Beloeil
Wed, 26 Jun 2024 11:47'],
[45.438019, -73.043068, 'blue', '169.9 ¢/Litre
Grande-Caroline / Pierre Préfontaine
Rougemont
Tue, 25 Jun 2024 16:36'],
[45.439865, -73.196669, 'green', '168.9 ¢/Litre
Chambly / des Peupliers / Rte 112
Marieville
Wed, 26 Jun 2024 11:48'],
[0.000000, 0.000000, 'green', '165.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
LAnge-Gardien (Montérégie)
Wed, 26 Jun 2024 11:00'],
[45.365866, -72.933780, 'red', '165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Tue, 25 Jun 2024 15:00'],
[45.362059, -72.934853, 'green', '165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Wed, 26 Jun 2024 12:08'],
[45.603946, -73.101863, 'green', '164.9 ¢/Litre
St-Simon / Aut 20 (Sortie 120)
Sainte-Madeleine
Fri, 28 Jun 2024 10:29'],
[45.606363, -73.103125, 'green', '164.9 ¢/Litre
5 rue St Simon/auto 20/sortie 120
Sainte-Madeleine
Thu, 27 Jun 2024 11:04'],
[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']];
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+");});");
}
}