/****
* 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.48093, -73.578118);
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.431217, -73.618933, 'red', '172.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Sun, 09 Jun 2024 23:34'],
[45.495855, -73.654884, 'red', '172.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Sun, 09 Jun 2024 23:37'],
[45.456332, -73.415714, 'red', '171.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Sun, 09 Jun 2024 23:30'],
[45.470785, -73.468103, 'red', '171.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Sun, 09 Jun 2024 23:30'],
[45.454885, -73.465571, 'red', '171.9 ¢/Litre
Taschereau / Rome
Brossard
Sun, 09 Jun 2024 23:31'],
[45.467640, -73.538519, 'red', '171.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sun, 09 Jun 2024 22:20'],
[45.458915, -73.464943, 'red', '171.9 ¢/Litre
Taschereau / Mario
Brossard
Sun, 09 Jun 2024 23:31'],
[45.458904, -73.419386, 'red', '171.9 ¢/Litre
Grande-Allée / Du Quartier
Brossard
Sun, 09 Jun 2024 23:29'],
[45.481060, -73.578331, 'red', '171.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Sun, 09 Jun 2024 23:33'],
[45.490100, -73.567215, 'red', '171.9 ¢/Litre
Guy / Notre Dame O.
Le Sud-Ouest
Sun, 09 Jun 2024 23:34'],
[45.458885, -73.419335, 'red', '171.9 ¢/Litre
Grande Allée / du Quartier / Moïse Vincent
Saint-Hubert
Sun, 09 Jun 2024 23:29'],
[45.525817, -73.713348, 'red', '171.9 ¢/Litre
Lachapelle / Laurentien / Salaberry
Saint-Laurent
Sun, 09 Jun 2024 23:36'],
[45.495543, -73.655560, 'red', '171.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Sun, 09 Jun 2024 23:36'],
[45.479275, -73.465158, 'red', '171.9 ¢/Litre
Taschereau / Angèle
Brossard
Sun, 09 Jun 2024 23:30'],
[45.435143, -73.476495, 'red', '170.9 ¢/Litre
Taschereau / Matte
Brossard
Sun, 09 Jun 2024 22:00'],
[45.452638, -73.301521, 'red', '169.9 ¢/Litre
Périgny / Brassard / Larivière
Chambly
Sun, 09 Jun 2024 23:32'],
[45.574931, -73.876109, 'red', 'Belisle - 169.9 ¢/Litre
St-Laurent
Saint-Eustache
Mon, 10 Jun 2024 10:46'],
[45.568407, -73.887552, 'red', '169.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Mon, 10 Jun 2024 10:47'],
[45.562727, -73.206394, 'red', '169.9 ¢/Litre
Sir Wilfrid Laurier / Duvernay
Beloeil
Sun, 09 Jun 2024 20:30'],
[45.435239, -73.489912, 'blue', '168.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Sun, 09 Jun 2024 21:30'],
[45.406872, -73.497527, 'blue', '168.9 ¢/Litre
Taschereau / Salaberry
La Prairie
Sun, 09 Jun 2024 21:30'],
[45.542527, -73.187177, 'blue', '167.9 ¢/Litre
Ozias-Leduc / de la Montagne
Otterburn Park
Sun, 09 Jun 2024 20:30'],
[45.533296, -73.656549, 'blue', '167.9 ¢/Litre
lAcadie / Chabanel
Ahuntsic-Cartierville
Sun, 09 Jun 2024 22:00'],
[45.549520, -73.219972, 'blue', '166.9 ¢/Litre
Sir Wilfrid Laurier / Bernard Pilon
Beloeil
Sun, 09 Jun 2024 20:00'],
[45.519459, -73.457760, 'blue', '165.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Mon, 10 Jun 2024 14:43'],
[45.477996, -73.386635, 'blue', '164.9 ¢/Litre
Cousineau / Aut 30
Saint-Hubert
Mon, 10 Jun 2024 14:46'],
[45.481291, -73.388865, 'blue', '164.9 ¢/Litre
Cousineau / Moïse Vincent / Aut 30
Saint-Hubert
Mon, 10 Jun 2024 14:47'],
[45.521714, -73.463444, 'blue', '163.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Mon, 10 Jun 2024 14:43'],
[45.521868, -73.463538, 'blue', '163.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Mon, 10 Jun 2024 14:42'],
[45.607988, -73.584409, 'green', 'Costco - 162.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Sat, 08 Jun 2024 10:10'],
[45.721626, -73.506924, 'green', 'Costco - 162.9 ¢/Litre
870 Montée des pionners
Terrebonne
Sun, 09 Jun 2024 08:52'],
[45.362053, -73.307166, 'green', '161.9 ¢/Litre
St-Luc / Bélair
Saint-Jean-sur-Richelieu
Mon, 10 Jun 2024 14:46'],
[45.542716, -73.588620, 'red', '161.9 ¢/Litre
De Lorimier / Des Carrières
Rosemont
Fri, 07 Jun 2024 19:01'],
[45.721937, -73.506507, 'green', 'Costco - 161.9 ¢/Litre
870 Des Pionniers
Lachenaie
Mon, 10 Jun 2024 13:55'],
[45.476955, -73.429460, 'green', '161.9 ¢/Litre
Gaétan Boucher / Payer
Saint-Hubert
Sun, 09 Jun 2024 23:26'],
[45.481980, -73.464589, 'green', '161.9 ¢/Litre
Taschereau / Adam
Greenfield Park
Sun, 09 Jun 2024 23:26'],
[45.721453, -73.508422, 'green', 'Costco - 161.9 ¢/Litre
des Pionniers / Yves-Blais
Terrebonne
Sun, 09 Jun 2024 22:23'],
[45.577602, -73.405821, 'green', 'Costco - 159.9 ¢/Litre
635 ch de Touraine
Boucherville
Mon, 10 Jun 2024 11:06'],
[45.486921, -73.552297, 'green', 'Costco - 159.9 ¢/Litre
Bridge / Mill
Montréal-Ouest
Sat, 08 Jun 2024 06:50'],
[45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Sat, 08 Jun 2024 17:21'],
[45.684327, -73.435514, 'green', '159.9 ¢/Litre
Marie-Victorin / Vincent
Varennes
Sun, 09 Jun 2024 20:14'],
[45.569115, -73.760742, 'green', 'Costco - 159.9 ¢/Litre
2999 440 ouest
Laval
Sun, 09 Jun 2024 22:19'],
[45.577050, -73.403659, 'green', 'Costco - 159.9 ¢/Litre
635 ch de Touraine
Boucherville
Sun, 09 Jun 2024 20:00'],
[45.577739, -73.405651, 'green', 'Costco - 159.9 ¢/Litre
635 Ch de Touraine
Boucherville
Mon, 10 Jun 2024 14:16'],
[45.486768, -73.551440, 'green', 'Costco - 159.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Mon, 10 Jun 2024 09:55'],
[45.434650, -73.480101, 'green', 'Costco - 159.9 ¢/Litre
9430 Boulevard Taschereau, Brossard
Brossard
Mon, 10 Jun 2024 15:05'],
[45.355527, -73.297120, 'green', '158.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Mon, 10 Jun 2024 14:45'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 155.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Mon, 10 Jun 2024 14:45']];
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+");});");
}
}