/****
* 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.451542, -73.649206);
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.517865, -73.558761, 'red', '179.9 ¢/Litre
De Maisonneuve / Amherst
Ville-Marie (Montreal)
Mon, 01 Jul 2024 00:30'],
[45.593235, -73.907617, 'red', '177.9 ¢/Litre
25ième ave
Saint-Eustache
Sun, 30 Jun 2024 10:24'],
[45.560186, -73.887346, 'red', '177.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Sun, 30 Jun 2024 10:24'],
[45.525696, -73.551544, 'red', '176.9 ¢/Litre
De Maisonneuve / De Lorimier
Ville-Marie (Montreal)
Mon, 01 Jul 2024 00:59'],
[45.575375, -73.446954, 'red', '176.9 ¢/Litre
Mortagne / Ampére
Boucherville
Mon, 01 Jul 2024 00:58'],
[45.525224, -73.552013, 'red', '176.9 ¢/Litre
De Maisonneuve / De Lorimier
Ville-Marie (Montreal)
Mon, 01 Jul 2024 00:59'],
[45.501483, -73.423506, 'red', '176.9 ¢/Litre
Cousineau / Montée St-Hubert
Saint-Hubert
Sun, 30 Jun 2024 22:30'],
[45.523409, -73.554148, 'red', '176.9 ¢/Litre
Papineau / De Maisonneuve
Ville-Marie (Montreal)
Mon, 01 Jul 2024 00:59'],
[45.604836, -73.529933, 'red', '176.9 ¢/Litre
Sherbrooke E / Des Ormeaux
Hochelaga-Maisonneuve
Sun, 30 Jun 2024 23:29'],
[45.502798, -73.645054, 'red', '176.9 ¢/Litre
Jean Talon / Lucerne
Mont-Royal
Mon, 01 Jul 2024 01:03'],
[45.483405, -73.796368, 'red', '176.9 ¢/Litre
Sources / Brunswick
Dollard-des-Ormeaux
Mon, 01 Jul 2024 01:06'],
[45.568407, -73.887552, 'red', '176.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Sun, 30 Jun 2024 10:25'],
[45.483465, -73.796180, 'red', '176.9 ¢/Litre
Sources / Brunswick
Dollard-des-Ormeaux
Mon, 01 Jul 2024 01:05'],
[45.467640, -73.538519, 'blue', '175.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sun, 30 Jun 2024 23:35'],
[45.674232, -73.432368, 'blue', '175.9 ¢/Litre
65 Rue de lAqueduc
Varennes
Sun, 30 Jun 2024 23:30'],
[45.548637, -73.535375, 'blue', '173.9 ¢/Litre
Ste-Catherine E / Pie IX
Hochelaga-Maisonneuve
Sun, 30 Jun 2024 23:33'],
[45.486616, -73.636535, 'blue', '172.9 ¢/Litre
Decarie / Dupuis / Cote Ste Catherine
Côte-des-Neiges
Mon, 01 Jul 2024 01:00'],
[45.495543, -73.655560, 'blue', '172.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Mon, 01 Jul 2024 01:02'],
[45.445923, -73.741216, 'blue', '172.9 ¢/Litre
Dorval / Aut 20
Dorval
Sun, 30 Jun 2024 22:30'],
[45.574931, -73.876109, 'blue', 'Belisle - 172.9 ¢/Litre
St-Laurent
Saint-Eustache
Sun, 30 Jun 2024 10:23'],
[45.575530, -73.874862, 'blue', '171.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Sun, 30 Jun 2024 10:24'],
[45.511796, -73.439486, 'blue', '170.9 ¢/Litre
Chambly / Vauquelin
Saint-Hubert
Sun, 30 Jun 2024 22:00'],
[45.470851, -73.564091, 'green', '165.9 ¢/Litre
Wellington / Gilberte-Dubé / Henri-Duhamel
Verdun
Sun, 30 Jun 2024 22:32'],
[45.502445, -73.426215, 'green', '165.9 ¢/Litre
5175 Cousineau / Perras
Saint-Hubert
Sun, 30 Jun 2024 21:30'],
[45.564858, -73.587190, 'green', '165.9 ¢/Litre
Pie IX / Bélanger
Rosemont
Sun, 30 Jun 2024 22:30'],
[45.565046, -73.587783, 'green', '165.9 ¢/Litre
Pie IX / Bélanger
Villeray-Saint-Michel
Sun, 30 Jun 2024 22:30'],
[45.686705, -73.432357, 'green', '162.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Sun, 30 Jun 2024 23:31'],
[45.433637, -73.477474, 'green', 'Costco - 162.9 ¢/Litre
Taschereau / Matte
Brossard
Sun, 30 Jun 2024 20:30'],
[45.577050, -73.403659, 'green', 'Costco - 160.8 ¢/Litre
635 ch de Touraine
Boucherville
Sun, 30 Jun 2024 12:15'],
[45.486768, -73.551440, 'green', 'Costco - 158.0 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Sun, 30 Jun 2024 11: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+");});");
}
}