/****
* 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.583375, -73.332912);
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 21:00'],
[45.523183, -73.672493, 'red', '175.9 ¢/Litre
Cote Vertu / Muir
Saint-Laurent
Tue, 28 May 2024 00:00'],
[45.499602, -73.750851, 'red', '175.9 ¢/Litre
Pitfield / Aut 13 / Valiquette
Saint-Laurent
Mon, 27 May 2024 23:55'],
[45.489274, -73.724608, 'red', '175.9 ¢/Litre
8300 Trans Canada (aut 40) / Montee de Liesse
Saint-Laurent
Mon, 27 May 2024 23:56'],
[45.467640, -73.538519, 'red', '174.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Tue, 28 May 2024 21:23'],
[45.414839, -73.485305, 'red', '174.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Mon, 27 May 2024 23:51'],
[45.441121, -73.442392, 'red', '174.9 ¢/Litre
101-8075 boul. du Quartier
Brossard
Mon, 27 May 2024 23:50'],
[45.509854, -73.687819, 'red', '174.9 ¢/Litre
Marcel-Laurin / Côte-Vertu
Saint-Laurent
Mon, 27 May 2024 23:59'],
[45.420024, -73.486377, 'red', '174.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Mon, 27 May 2024 23:51'],
[45.528071, -73.669266, 'blue', '173.9 ¢/Litre
Cote Vertu / Lebeau
Saint-Laurent
Mon, 27 May 2024 23:57'],
[45.539179, -73.643545, 'blue', '173.9 ¢/Litre
155 Cremazie O / Waverly
Ahuntsic-Cartierville
Mon, 27 May 2024 23:58'],
[45.539876, -73.643047, 'blue', '173.9 ¢/Litre
Crémazie / St Urbain
Ahuntsic-Cartierville
Mon, 27 May 2024 23:58'],
[45.539136, -73.642870, 'blue', '173.9 ¢/Litre
Cremazie O / Esplanade
Parc-Extension
Mon, 27 May 2024 23:59'],
[45.582704, -73.426126, 'blue', '172.9 ¢/Litre
Montarville / Normandie
Boucherville
Mon, 27 May 2024 21:30'],
[45.408875, -73.472737, 'blue', '172.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Mon, 27 May 2024 23:49'],
[45.486616, -73.636535, 'blue', '172.9 ¢/Litre
Decarie / Dupuis / Cote Ste Catherine
Côte-des-Neiges
Mon, 27 May 2024 23:52'],
[45.486054, -73.633837, 'blue', '172.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Mon, 27 May 2024 23:53'],
[45.598981, -73.447627, 'blue', '170.9 ¢/Litre
Samuel de Champlain / Montarville
Boucherville
Mon, 27 May 2024 22:00'],
[45.456332, -73.415714, 'blue', '170.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Tue, 28 May 2024 18:56'],
[45.455084, -73.443046, 'blue', '170.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Mon, 27 May 2024 21:00'],
[45.495543, -73.655560, 'blue', '170.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Mon, 27 May 2024 23:57'],
[45.522034, -73.464228, 'blue', '169.9 ¢/Litre
2720, Ch.Chambly/Bl.Jacques Cartier
Longueuil
Mon, 27 May 2024 15:04'],
[45.607988, -73.584409, 'green', 'Costco - 168.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Mon, 27 May 2024 12:13'],
[45.433963, -73.477284, 'green', 'Costco - 167.9 ¢/Litre
9430 Boulevard Taschereau
Brossard
Tue, 28 May 2024 18:52'],
[45.433637, -73.477474, 'green', 'Costco - 167.9 ¢/Litre
Taschereau / Matte
Brossard
Mon, 27 May 2024 21:30'],
[45.685654, -73.439079, 'green', '166.9 ¢/Litre
Marie-Victorin
Varennes
Mon, 27 May 2024 17:05'],
[45.721626, -73.506924, 'green', 'Costco - 166.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Tue, 28 May 2024 14:12'],
[45.486768, -73.551440, 'green', 'Costco - 164.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Mon, 27 May 2024 22:00'],
[45.580715, -73.760447, 'green', 'Costco - 164.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Tue, 28 May 2024 21:21'],
[45.577050, -73.403659, 'green', 'Costco - 163.9 ¢/Litre
635 ch de Touraine
Boucherville
Mon, 27 May 2024 22:00'],
[45.577602, -73.405821, 'green', 'Costco - 163.9 ¢/Litre
635 ch de Touraine
Boucherville
Tue, 28 May 2024 09:58']];
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+");});");
}
}