/****
* 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.261726, -73.788751);
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.469156, -73.649957, 'red', '177.9 ¢/Litre
Cote St Luc / Montclair
Côte-Saint-Luc
Wed, 15 May 2024 00:36'],
[45.406872, -73.497527, 'red', '177.9 ¢/Litre
Taschereau / Salaberry
La Prairie
Wed, 15 May 2024 23:41'],
[45.435239, -73.489912, 'red', '177.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Wed, 15 May 2024 23:42'],
[45.441121, -73.442392, 'red', '177.9 ¢/Litre
101-8075 boul. du Quartier
Brossard
Wed, 15 May 2024 23:42'],
[45.490275, -73.802855, 'red', '176.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Wed, 15 May 2024 00:38'],
[45.435143, -73.476495, 'red', '176.9 ¢/Litre
Taschereau / Matte
Brossard
Wed, 15 May 2024 23:40'],
[45.455084, -73.443046, 'red', '176.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Wed, 15 May 2024 23:41'],
[45.479640, -73.571470, 'red', '176.9 ¢/Litre
Charlevoix / St-Patrick
Le Sud-Ouest
Wed, 15 May 2024 23:45'],
[45.497098, -73.624101, 'red', '176.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Wed, 15 May 2024 23:45'],
[45.485007, -73.632753, 'red', '176.9 ¢/Litre
Decarie / Isabella
Côte-des-Neiges
Wed, 15 May 2024 23:46'],
[45.486054, -73.633837, 'red', '176.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Wed, 15 May 2024 22:00'],
[45.489585, -73.641865, 'red', '176.9 ¢/Litre
Décarie / Van Horne
Côte-des-Neiges
Wed, 15 May 2024 23:48'],
[45.439289, -73.621925, 'red', '176.9 ¢/Litre
Lapierre / Newman
LaSalle
Wed, 15 May 2024 00:35'],
[45.470437, -73.495625, 'red', '176.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Wed, 15 May 2024 00:29'],
[45.445923, -73.741216, 'red', '176.9 ¢/Litre
Dorval / Aut 20
Dorval
Wed, 15 May 2024 00:36'],
[45.493315, -73.807043, 'red', '176.9 ¢/Litre
Sources / Churchill
Dollard-des-Ormeaux
Wed, 15 May 2024 00:38'],
[45.471419, -73.648055, 'red', '176.9 ¢/Litre
Cote St Luc / Cavendish
Notre-Dame-de-Grâce
Wed, 15 May 2024 00:35'],
[45.431217, -73.618933, 'blue', '175.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Wed, 15 May 2024 23:44'],
[45.436609, -73.625192, 'blue', '175.9 ¢/Litre
Newman / Thierry
LaSalle
Wed, 15 May 2024 00:32'],
[45.574931, -73.876109, 'blue', 'Belisle - 175.0 ¢/Litre
St-Laurent
Saint-Eustache
Thu, 16 May 2024 11:57'],
[45.495543, -73.655560, 'blue', '174.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Wed, 15 May 2024 23:47'],
[45.467640, -73.538519, 'blue', '174.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 16 May 2024 15:12'],
[45.535775, -73.666173, 'blue', '174.8 ¢/Litre
lAcadie / Sauvé O
Ahuntsic-Cartierville
Wed, 15 May 2024 23:48'],
[45.420024, -73.486377, 'blue', '172.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Wed, 15 May 2024 23:40'],
[45.414839, -73.485305, 'blue', '172.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Wed, 15 May 2024 23:39'],
[45.568407, -73.887552, 'green', '170.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Thu, 16 May 2024 15:21'],
[45.560186, -73.887346, 'green', '170.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Wed, 15 May 2024 10:17'],
[45.433637, -73.477474, 'green', 'Costco - 169.9 ¢/Litre
Taschereau / Matte
Brossard
Wed, 15 May 2024 22:00'],
[45.371582, -73.515440, 'green', 'Costco - 168.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Wed, 15 May 2024 11:46'],
[45.486768, -73.551440, 'green', 'Costco - 165.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Wed, 15 May 2024 21:30']];
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+");});");
}
}