/****
* 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=e *
****/
function mapload() {
var latlng = new google.maps.LatLng(45.533374, -73.932932);
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.578564, -73.575518, 'red', '177.9 ¢/Litre
Bélanger E / lAssomption
Rosemont
Wed, 15 May 2024 23:49'],
[45.489585, -73.641865, 'red', '176.9 ¢/Litre
Décarie / Van Horne
Côte-des-Neiges
Wed, 15 May 2024 23:48'],
[45.486054, -73.633837, 'red', '176.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Wed, 15 May 2024 22:00'],
[45.485007, -73.632753, 'red', '176.9 ¢/Litre
Decarie / Isabella
Côte-des-Neiges
Wed, 15 May 2024 23:46'],
[45.497098, -73.624101, 'red', '176.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Wed, 15 May 2024 23:45'],
[45.492127, -73.710676, 'red', '176.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Fri, 17 May 2024 01:00'],
[45.479640, -73.571470, 'red', '176.9 ¢/Litre
Charlevoix / St-Patrick
Le Sud-Ouest
Wed, 15 May 2024 23:45'],
[45.493232, -73.709000, 'red', '175.9 ¢/Litre
Côte Vertu / Begin
Saint-Laurent
Fri, 17 May 2024 01:30'],
[45.512585, -73.569802, 'red', '175.9 ¢/Litre
Sherbrooke O / St-Laurent
Plateau Mont-Royal
Fri, 17 May 2024 00:00'],
[45.431217, -73.618933, 'red', '175.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Wed, 15 May 2024 23:44'],
[45.574931, -73.876109, 'blue', 'Belisle - 175.0 ¢/Litre
St-Laurent
Saint-Eustache
Thu, 16 May 2024 11:57'],
[45.495543, -73.655560, 'blue', '174.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Wed, 15 May 2024 23:47'],
[45.467640, -73.538519, 'blue', '174.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 16 May 2024 15:12'],
[45.535775, -73.666173, 'blue', '174.8 ¢/Litre
lAcadie / Sauvé O
Ahuntsic-Cartierville
Wed, 15 May 2024 23:48'],
[45.568407, -73.887552, 'green', '170.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Thu, 16 May 2024 15:21'],
[45.560186, -73.887346, 'green', '170.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Wed, 15 May 2024 10:17'],
[45.721626, -73.506924, 'green', 'Costco - 169.9 ¢/Litre
870 MTE DE PIONNIERS
Terrebonne
Thu, 16 May 2024 09:37'],
[45.721453, -73.508422, 'green', 'Costco - 169.9 ¢/Litre
des Pionniers / Yves-Blais
Terrebonne
Wed, 15 May 2024 11:47'],
[45.607988, -73.584409, 'green', 'Costco - 169.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Wed, 15 May 2024 11:48'],
[45.721626, -73.506924, 'green', 'Costco - 169.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Wed, 15 May 2024 16:14'],
[45.449479, -73.855608, 'green', '168.9 ¢/Litre
St Charles / Hymus
Kirkland
Fri, 17 May 2024 00:00'],
[45.763549, -74.018241, 'green', 'Costco - 167.9 ¢/Litre
Jean-Baptiste-Rolland O / Brière
Saint-Jérôme
Wed, 15 May 2024 11:46'],
[45.623870, -73.774409, 'green', '166.9 ¢/Litre
2a Blvd Sainte-Rose & Ave Olier-Payette
Laval
Fri, 17 May 2024 03:06'],
[45.486768, -73.551440, 'green', 'Costco - 165.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Wed, 15 May 2024 21:30'],
[45.606620, -73.790860, 'green', '165.9 ¢/Litre
165 Boul. Curé-Labelle / Rue du Mont-Royal
Laval
Fri, 17 May 2024 02:00'],
[45.580715, -73.760447, 'green', 'Costco - 165.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Thu, 16 May 2024 15:18']];
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+");});");
}
}