/****
* 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.703335, -73.927084);
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.591175, -73.525419, 'red', '
175.9 ¢/Litre
Hochelaga / Curatteau / Aut 25
Hochelaga-Maisonneuve
Fri, 21 Jun 2024 16:35'],
[45.604836, -73.529933, 'red', '
174.9 ¢/Litre
Sherbrooke E / Des Ormeaux
Hochelaga-Maisonneuve
Fri, 21 Jun 2024 16:42'],
[45.612289, -73.555207, 'red', '
174.9 ¢/Litre
Roi-René /Chateauneuf
Anjou
Fri, 21 Jun 2024 16:46'],
[45.611688, -73.582081, 'red', '
174.9 ¢/Litre
Louis-H. Lafontaine (Aut 25) / Bombardier
Anjou
Thu, 20 Jun 2024 16:31'],
[45.529959, -73.622510, 'red', '
174.9 ¢/Litre
Parc / Jean Talon O
Parc-Extension
Fri, 21 Jun 2024 16:53'],
[45.495759, -73.610051, 'red', '
173.9 ¢/Litre
Cote-des-Neiges / Ridgewood
Côte-des-Neiges
Fri, 21 Jun 2024 16:48'],
[45.611088, -73.582499, 'red', '
173.9 ¢/Litre
Louis-H.-Lafontaine / Aut 25 / Bombardier
Anjou
Thu, 20 Jun 2024 16:30'],
[45.610827, -73.608259, 'red', '
173.9 ¢/Litre
Henri Bourassa / Langelier
Montréal-Nord
Thu, 20 Jun 2024 16:30'],
[45.533296, -73.656549, 'red', '
172.9 ¢/Litre
lAcadie / Chabanel
Ahuntsic-Cartierville
Fri, 21 Jun 2024 15:00'],
[45.535775, -73.666173, 'red', '
172.9 ¢/Litre
lAcadie / Sauvé O
Ahuntsic-Cartierville
Fri, 21 Jun 2024 15:00'],
[45.470420, -73.832197, 'red', '
172.9 ¢/Litre
St Jean / Devon
Dollard-des-Ormeaux
Fri, 21 Jun 2024 16:56'],
[45.575530, -73.874862, 'red', '
172.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Thu, 20 Jun 2024 14:56'],
[45.579789, -73.531915, 'blue', '
171.9 ¢/Litre
Hochelaga / Langelier
Hochelaga-Maisonneuve
Fri, 21 Jun 2024 16:41'],
[45.596853, -73.522632, 'blue', '
171.9 ¢/Litre
Hochelaga / St-Émile / Lapointe
Hochelaga-Maisonneuve
Fri, 21 Jun 2024 16:40'],
[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.476861, -73.838663, 'blue', '
171.9 ¢/Litre
St Jean / Westminster
Dollard-des-Ormeaux
Fri, 21 Jun 2024 16:55'],
[45.512585, -73.569802, 'blue', '
171.9 ¢/Litre
Sherbrooke O / St-Laurent
Plateau Mont-Royal
Thu, 20 Jun 2024 16:25'],
[45.598602, -73.552882, 'blue', '
170.9 ¢/Litre
Louis-H-Lafontaine / Aut 25 / Beaubien
Anjou
Thu, 20 Jun 2024 16:29'],
[45.560186, -73.887346, 'blue', '
170.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Thu, 20 Jun 2024 14:56'],
[45.523183, -73.672493, 'blue', '
170.9 ¢/Litre
Cote Vertu / Muir
Saint-Laurent
Fri, 21 Jun 2024 16:52'],
[45.574931, -73.876109, 'blue', 'Belisle - 170.9 ¢/Litre
St-Laurent
Saint-Eustache
Sat, 22 Jun 2024 13:55'],
[45.548806, -73.635140, 'blue', '
169.9 ¢/Litre
Crémazie / St-Hubert
Villeray-Saint-Michel
Thu, 20 Jun 2024 16:29'],
[45.551729, -73.656110, 'blue', '
169.9 ¢/Litre
Lajeunesse / Sauvé
Ahuntsic-Cartierville
Fri, 21 Jun 2024 16:51'],
[45.507728, -73.662553, 'blue', '
168.9 ¢/Litre
Côte-de-Liesse / Lucerne
Mont-Royal
Fri, 21 Jun 2024 16:51'],
[45.593235, -73.907617, 'blue', '
168.9 ¢/Litre
25ième ave
Saint-Eustache
Sat, 22 Jun 2024 13:55'],
[45.495855, -73.654884, 'blue', '
168.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Thu, 20 Jun 2024 16:28'],
[45.568407, -73.887552, 'blue', '
167.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Thu, 20 Jun 2024 14:56'],
[45.483405, -73.796368, 'blue', '
167.9 ¢/Litre
Sources / Brunswick
Dollard-des-Ormeaux
Fri, 21 Jun 2024 15:00'],
[45.495543, -73.655560, 'blue', '
166.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Thu, 20 Jun 2024 16:26'],
[45.586172, -73.540959, 'blue', '
166.9 ¢/Litre
Sherbrooke / Haig
Hochelaga-Maisonneuve
Thu, 20 Jun 2024 16:27'],
[45.508042, -73.663470, 'blue', '
166.9 ¢/Litre
Ste-Croix / Cote-de-Liesse
Saint-Laurent
Fri, 21 Jun 2024 16:50'],
[45.489274, -73.724608, 'blue', '
165.9 ¢/Litre
8300 Trans Canada (aut 40) / Montee de Liesse
Saint-Laurent
Fri, 21 Jun 2024 16:54'],
[45.607988, -73.584409, 'green', 'Costco - 163.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Fri, 21 Jun 2024 16:45'],
[45.580715, -73.760447, 'green', 'Costco - 161.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Fri, 21 Jun 2024 18:55'],
[45.404236, -74.037960, 'green', 'Costco - 158.7 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Thu, 20 Jun 2024 16:23'],
[45.560162, -73.726882, 'green', '
150.0 ¢/Litre
Le Corbusier / Souvenir
Laval
Sat, 22 Jun 2024 08:34']];
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+");});");
}
}