/****
* 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.471967, -73.799019);
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.568999, -73.443687, 'red', '177.9 ¢/Litre
Nobel / Volta
Boucherville
Mon, 27 May 2024 20:00'],
[45.489274, -73.724608, 'red', '175.9 ¢/Litre
8300 Trans Canada (aut 40) / Montee de Liesse
Saint-Laurent
Mon, 27 May 2024 22:56'],
[45.504687, -73.778231, 'red', '175.9 ¢/Litre
Gouin O / Lalande
Pierrefonds
Mon, 27 May 2024 22:56'],
[45.523183, -73.672493, 'red', '175.9 ¢/Litre
Cote Vertu / Muir
Saint-Laurent
Mon, 27 May 2024 23:00'],
[45.469156, -73.649957, 'red', '175.9 ¢/Litre
Cote St Luc / Montclair
Côte-Saint-Luc
Sun, 26 May 2024 20:51'],
[45.499602, -73.750851, 'red', '175.9 ¢/Litre
Pitfield / Aut 13 / Valiquette
Saint-Laurent
Mon, 27 May 2024 22:55'],
[45.414839, -73.485305, 'blue', '174.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Mon, 27 May 2024 22:51'],
[45.420024, -73.486377, 'blue', '174.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Mon, 27 May 2024 22:51'],
[45.441121, -73.442392, 'blue', '174.9 ¢/Litre
101-8075 boul. du Quartier
Brossard
Mon, 27 May 2024 22:50'],
[45.575530, -73.874862, 'blue', '174.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Tue, 28 May 2024 10:16'],
[45.467640, -73.538519, 'blue', '174.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Tue, 28 May 2024 05:20'],
[45.509854, -73.687819, 'blue', '174.9 ¢/Litre
Marcel-Laurin / Côte-Vertu
Saint-Laurent
Mon, 27 May 2024 22:59'],
[45.468040, -73.638016, 'blue', '174.9 ¢/Litre
Somerled / Cavendish
Notre-Dame-de-Grâce
Sun, 26 May 2024 20:49'],
[45.494571, -73.500633, 'blue', '174.9 ¢/Litre
Sir Wilfrid Laurier / Victoria / St Louis
Saint-Lambert
Sun, 26 May 2024 20:48'],
[45.471419, -73.648055, 'blue', '174.9 ¢/Litre
Cote St Luc / Cavendish
Notre-Dame-de-Grâce
Sun, 26 May 2024 20:50'],
[45.539876, -73.643047, 'blue', '173.9 ¢/Litre
Crémazie / St Urbain
Ahuntsic-Cartierville
Mon, 27 May 2024 22:58'],
[45.539179, -73.643545, 'blue', '173.9 ¢/Litre
155 Cremazie O / Waverly
Ahuntsic-Cartierville
Mon, 27 May 2024 22:58'],
[45.539136, -73.642870, 'blue', '173.9 ¢/Litre
Cremazie O / Esplanade
Parc-Extension
Mon, 27 May 2024 22:59'],
[45.528071, -73.669266, 'blue', '173.9 ¢/Litre
Cote Vertu / Lebeau
Saint-Laurent
Mon, 27 May 2024 22:57'],
[45.571185, -73.913286, 'blue', '173.9 ¢/Litre
Arthur-Sauvé/Grignon (Hôpital
Saint-Eustache
Tue, 28 May 2024 10:15'],
[45.575639, -73.892358, 'blue', '173.9 ¢/Litre
Antoine-Séguin/rue Dubois
Saint-Eustache
Tue, 28 May 2024 10:15'],
[45.593235, -73.907617, 'blue', '173.9 ¢/Litre
25ième ave
Saint-Eustache
Tue, 28 May 2024 10:16'],
[45.574931, -73.876109, 'blue', 'Belisle - 172.9 ¢/Litre
St-Laurent
Saint-Eustache
Tue, 28 May 2024 10:14'],
[45.582704, -73.426126, 'blue', '172.9 ¢/Litre
Montarville / Normandie
Boucherville
Mon, 27 May 2024 20:30'],
[45.408875, -73.472737, 'blue', '172.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Mon, 27 May 2024 22:49'],
[45.486616, -73.636535, 'blue', '172.9 ¢/Litre
Decarie / Dupuis / Cote Ste Catherine
Côte-des-Neiges
Mon, 27 May 2024 22:52'],
[45.486054, -73.633837, 'blue', '172.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Mon, 27 May 2024 22:53'],
[45.490275, -73.802855, 'blue', '171.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Mon, 27 May 2024 22:55'],
[45.568407, -73.887552, 'blue', '171.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Mon, 27 May 2024 15:19'],
[45.455084, -73.443046, 'blue', '170.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Mon, 27 May 2024 20:00'],
[45.598981, -73.447627, 'blue', '170.9 ¢/Litre
Samuel de Champlain / Montarville
Boucherville
Mon, 27 May 2024 21:00'],
[45.482751, -73.788836, 'blue', '170.9 ¢/Litre
Aut 40 / Deacon / Sources
Dorval
Mon, 27 May 2024 22:54'],
[45.495543, -73.655560, 'blue', '170.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Mon, 27 May 2024 22:57'],
[45.476396, -73.789752, 'green', '169.9 ¢/Litre
Sources / Hymus
Pointe-Claire
Mon, 27 May 2024 22:53'],
[45.522034, -73.464228, 'green', '169.9 ¢/Litre
2720, Ch.Chambly/Bl.Jacques Cartier
Longueuil
Mon, 27 May 2024 14:04'],
[45.511796, -73.439486, 'green', '168.9 ¢/Litre
Chambly / Vauquelin
Saint-Hubert
Sun, 26 May 2024 20:47'],
[45.607988, -73.584409, 'green', 'Costco - 168.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Mon, 27 May 2024 11:13'],
[45.503398, -73.756933, 'green', '168.9 ¢/Litre
3550 Boul Pitfield / Salaberry
Pierrefonds
Mon, 27 May 2024 22:53'],
[45.433637, -73.477474, 'green', 'Costco - 167.9 ¢/Litre
Taschereau / Matte
Brossard
Mon, 27 May 2024 20:30'],
[45.721626, -73.506924, 'green', 'Costco - 166.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Tue, 28 May 2024 13:12'],
[45.515478, -73.490700, 'green', '166.9 ¢/Litre
Curé Poirier / Ste-Hélène
Longueuil
Sun, 26 May 2024 18:30'],
[45.580715, -73.760447, 'green', 'Costco - 164.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Tue, 28 May 2024 05:23'],
[45.486768, -73.551440, 'green', 'Costco - 164.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Mon, 27 May 2024 21:00'],
[45.577602, -73.405821, 'green', 'Costco - 163.9 ¢/Litre
635 ch de Touraine
Boucherville
Tue, 28 May 2024 08:58'],
[45.577050, -73.403659, 'green', 'Costco - 163.9 ¢/Litre
635 ch de Touraine
Boucherville
Mon, 27 May 2024 21:00']];
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+");});");
}
}