/****
* 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.403097, -73.949044);
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.439289, -73.621925, 'red', '174.9 ¢/Litre
Lapierre / Newman
LaSalle
Wed, 19 Jun 2024 00:30'],
[45.463450, -73.578391, 'red', '174.9 ¢/Litre
1125 Ave de lEglise & Rue Cool
Verdun
Wed, 19 Jun 2024 00:30'],
[45.525224, -73.552013, 'red', '174.9 ¢/Litre
De Maisonneuve / De Lorimier
Ville-Marie (Montreal)
Wed, 19 Jun 2024 00:30'],
[45.492127, -73.710676, 'red', '174.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Wed, 19 Jun 2024 03:32'],
[45.463308, -73.578714, 'red', '173.9 ¢/Litre
De lEglise / Champlain
Verdun
Wed, 19 Jun 2024 00:30'],
[45.474511, -73.608761, 'red', '173.9 ¢/Litre
Decarie / Sherbrooke
Notre-Dame-de-Grâce
Mon, 17 Jun 2024 14:17'],
[45.474096, -73.609107, 'blue', '171.9 ¢/Litre
Decarie / Sherbrooke
Notre-Dame-de-Grâce
Mon, 17 Jun 2024 14:16'],
[45.575530, -73.874862, 'blue', '171.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Wed, 19 Jun 2024 15:52'],
[45.493232, -73.709000, 'blue', '171.9 ¢/Litre
Côte Vertu / Begin
Saint-Laurent
Wed, 19 Jun 2024 03:30'],
[45.595021, -73.576689, 'blue', '170.9 ¢/Litre
Aut 40 / Langelier
Saint-Leonard
Tue, 18 Jun 2024 15:02'],
[45.414839, -73.485305, 'blue', '170.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Tue, 18 Jun 2024 13:47'],
[45.420024, -73.486377, 'blue', '170.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Tue, 18 Jun 2024 13:48'],
[45.408875, -73.472737, 'blue', '170.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Tue, 18 Jun 2024 13:48'],
[45.538106, -73.699054, 'blue', '170.9 ¢/Litre
Salaberry / James Morrice
Ahuntsic-Cartierville
Mon, 17 Jun 2024 14:18'],
[45.574931, -73.876109, 'blue', 'Belisle - 170.9 ¢/Litre
St-Laurent
Saint-Eustache
Wed, 19 Jun 2024 10:28'],
[45.568407, -73.887552, 'blue', '170.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Wed, 19 Jun 2024 15:51'],
[45.560186, -73.887346, 'blue', '170.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Wed, 19 Jun 2024 15:52'],
[45.593235, -73.907617, 'blue', '170.9 ¢/Litre
25ième ave
Saint-Eustache
Wed, 19 Jun 2024 15:52'],
[45.501070, -73.632488, 'blue', '169.9 ¢/Litre
Côte-des-Neiges / Van Horne
Côte-des-Neiges
Mon, 17 Jun 2024 14:17'],
[45.599692, -73.612264, 'blue', '168.9 ¢/Litre
Lacordaire / Grandes Prairies
Saint-Leonard
Mon, 17 Jun 2024 14:06'],
[45.467640, -73.538519, 'blue', '168.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 20 Jun 2024 02:00'],
[45.584091, -73.591460, 'blue', '167.9 ¢/Litre
Lacordaire / Jarry E
Saint-Leonard
Tue, 18 Jun 2024 13:59'],
[45.580715, -73.760447, 'green', 'Costco - 161.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Thu, 20 Jun 2024 01:58'],
[45.371582, -73.515440, 'green', 'Costco - 159.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Tue, 18 Jun 2024 13:57'],
[45.486768, -73.551440, 'green', 'Costco - 159.5 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Mon, 17 Jun 2024 18:34'],
[45.404236, -74.037960, 'green', 'Costco - 157.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Mon, 17 Jun 2024 14:03'],
[45.370385, -73.515747, 'green', 'Costco - 155.9 ¢/Litre
60 rue de Strasbourg
Candiac
Mon, 17 Jun 2024 14:02']];
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+");});");
}
}