/****
* 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.40032, -74.025437);
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
Mon, 10 Jun 2024 00:34'],
[45.495855, -73.654884, 'red', '172.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Mon, 10 Jun 2024 00:37'],
[45.518665, -73.698429, 'red', '171.9 ¢/Litre
Poirier / Grenet
Saint-Laurent
Tue, 11 Jun 2024 02:12'],
[45.493232, -73.709000, 'red', '171.9 ¢/Litre
Côte Vertu / Begin
Saint-Laurent
Tue, 11 Jun 2024 02:12'],
[45.539876, -73.643047, 'red', '171.9 ¢/Litre
Crémazie / St Urbain
Ahuntsic-Cartierville
Tue, 11 Jun 2024 02:09'],
[45.539179, -73.643545, 'red', '171.9 ¢/Litre
155 Cremazie O / Waverly
Ahuntsic-Cartierville
Tue, 11 Jun 2024 02:10'],
[45.539136, -73.642870, 'red', '171.9 ¢/Litre
Cremazie O / Esplanade
Parc-Extension
Tue, 11 Jun 2024 02:11'],
[45.492127, -73.710676, 'red', '171.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Tue, 11 Jun 2024 02:11'],
[45.495543, -73.655560, 'red', '171.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Mon, 10 Jun 2024 00:36'],
[45.525817, -73.713348, 'red', '171.9 ¢/Litre
Lachapelle / Laurentien / Salaberry
Saint-Laurent
Mon, 10 Jun 2024 00:36'],
[45.443789, -73.647980, 'red', '171.9 ¢/Litre
St Jacques / St Pierre
Lachine
Tue, 11 Jun 2024 13:51'],
[45.455117, -73.632777, 'red', '171.9 ¢/Litre
St-Jacques / St-Anne-de-Bellevue
Notre-Dame-de-Grâce
Tue, 11 Jun 2024 13:51'],
[45.447754, -73.610053, 'red', '171.9 ¢/Litre
Newman / Angrignon
LaSalle
Tue, 11 Jun 2024 13:50'],
[45.490100, -73.567215, 'red', '171.9 ¢/Litre
Guy / Notre Dame O.
Le Sud-Ouest
Mon, 10 Jun 2024 00:34'],
[45.481060, -73.578331, 'red', '171.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Mon, 10 Jun 2024 00:33'],
[45.533296, -73.656549, 'blue', '171.1 ¢/Litre
lAcadie / Chabanel
Ahuntsic-Cartierville
Tue, 11 Jun 2024 02:09'],
[45.485007, -73.632753, 'blue', '170.9 ¢/Litre
Decarie / Isabella
Côte-des-Neiges
Tue, 11 Jun 2024 13:50'],
[45.464810, -73.585022, 'blue', '170.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Tue, 11 Jun 2024 13:49'],
[45.439289, -73.621925, 'blue', '169.9 ¢/Litre
Lapierre / Newman
LaSalle
Tue, 11 Jun 2024 13:49'],
[45.568407, -73.887552, 'blue', '169.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Mon, 10 Jun 2024 11:47'],
[45.574931, -73.876109, 'blue', 'Belisle - 168.9 ¢/Litre
St-Laurent
Saint-Eustache
Tue, 11 Jun 2024 10:19'],
[45.436609, -73.625192, 'blue', '167.9 ¢/Litre
Newman / Thierry
LaSalle
Tue, 11 Jun 2024 13:48'],
[45.404236, -74.037960, 'green', 'Costco - 159.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Tue, 11 Jun 2024 13:53'],
[45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Tue, 11 Jun 2024 15:53'],
[45.569115, -73.760742, 'green', 'Costco - 159.9 ¢/Litre
2999 440 ouest
Laval
Sun, 09 Jun 2024 23:19'],
[45.486768, -73.551440, 'green', 'Costco - 159.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Tue, 11 Jun 2024 13:48']];
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+");});");
}
}