/****
* 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.358146, -73.927216);
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.447754, -73.610053, 'red', '
174.9 ¢/Litre
Newman / Angrignon
LaSalle
Thu, 20 Jun 2024 16:26'],
[45.525224, -73.552013, 'red', '
174.9 ¢/Litre
De Maisonneuve / De Lorimier
Ville-Marie (Montreal)
Tue, 18 Jun 2024 23:30'],
[45.463450, -73.578391, 'red', '
174.9 ¢/Litre
1125 Ave de lEglise & Rue Cool
Verdun
Tue, 18 Jun 2024 23:30'],
[45.492127, -73.710676, 'red', '
174.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Wed, 19 Jun 2024 02:32'],
[45.439289, -73.621925, 'red', '
174.9 ¢/Litre
Lapierre / Newman
LaSalle
Tue, 18 Jun 2024 23:30'],
[45.464810, -73.585022, 'red', '
173.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Thu, 20 Jun 2024 19:00'],
[45.610827, -73.608259, 'red', '
173.9 ¢/Litre
Henri Bourassa / Langelier
Montréal-Nord
Thu, 20 Jun 2024 16:30'],
[45.463308, -73.578714, 'red', '
173.9 ¢/Litre
De lEglise / Champlain
Verdun
Thu, 20 Jun 2024 19:00'],
[45.575530, -73.874862, 'red', '
172.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Thu, 20 Jun 2024 14:56'],
[45.512585, -73.569802, 'blue', '
171.9 ¢/Litre
Sherbrooke O / St-Laurent
Plateau Mont-Royal
Thu, 20 Jun 2024 16:25'],
[45.493232, -73.709000, 'blue', '
171.9 ¢/Litre
Côte Vertu / Begin
Saint-Laurent
Wed, 19 Jun 2024 02:30'],
[45.497098, -73.624101, 'blue', '
171.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Thu, 20 Jun 2024 14:30'],
[45.593235, -73.907617, 'blue', '
170.9 ¢/Litre
25ième ave
Saint-Eustache
Wed, 19 Jun 2024 14:52'],
[45.408875, -73.472737, 'blue', '
170.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Tue, 18 Jun 2024 12:48'],
[45.560186, -73.887346, 'blue', '
170.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Thu, 20 Jun 2024 14:56'],
[45.420024, -73.486377, 'blue', '
170.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Tue, 18 Jun 2024 12:48'],
[45.414839, -73.485305, 'blue', '
170.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Tue, 18 Jun 2024 12:47'],
[45.548806, -73.635140, 'blue', '
169.9 ¢/Litre
Crémazie / St-Hubert
Villeray-Saint-Michel
Thu, 20 Jun 2024 16:29'],
[45.533296, -73.656549, 'blue', '
169.9 ¢/Litre
lAcadie / Chabanel
Ahuntsic-Cartierville
Thu, 20 Jun 2024 16:28'],
[45.467640, -73.538519, 'blue', '
168.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 20 Jun 2024 01:00'],
[45.495855, -73.654884, 'blue', '
168.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Thu, 20 Jun 2024 16:28'],
[45.574931, -73.876109, 'blue', 'Belisle - 167.9 ¢/Litre
St-Laurent
Saint-Eustache
Thu, 20 Jun 2024 14:55'],
[45.568407, -73.887552, 'blue', '
167.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Thu, 20 Jun 2024 14:56'],
[45.495543, -73.655560, 'green', '
166.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Thu, 20 Jun 2024 16:26'],
[45.580715, -73.760447, 'green', 'Costco - 161.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Thu, 20 Jun 2024 00:58'],
[45.486768, -73.551440, 'green', 'Costco - 161.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Thu, 20 Jun 2024 16:24'],
[45.523409, -73.554148, 'green', '
159.9 ¢/Litre
Papineau / De Maisonneuve
Ville-Marie (Montreal)
Thu, 20 Jun 2024 19:30'],
[45.371582, -73.515440, 'green', 'Costco - 159.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Thu, 20 Jun 2024 14:00'],
[45.404236, -74.037960, 'green', 'Costco - 158.7 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Thu, 20 Jun 2024 16:23']];
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+");});");
}
}