/****
* 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.55855, -73.896075);
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.443789, -73.647980, 'red', '171.9 ¢/Litre
St Jacques / St Pierre
Lachine
Fri, 14 Jun 2024 13:37'],
[45.471419, -73.648055, 'red', '171.9 ¢/Litre
Cote St Luc / Cavendish
Notre-Dame-de-Grâce
Fri, 14 Jun 2024 13:37'],
[45.469156, -73.649957, 'red', '171.9 ¢/Litre
Cote St Luc / Montclair
Côte-Saint-Luc
Fri, 14 Jun 2024 13:36'],
[45.474096, -73.609107, 'red', '171.9 ¢/Litre
Decarie / Sherbrooke
Notre-Dame-de-Grâce
Fri, 14 Jun 2024 13:36'],
[45.486054, -73.633837, 'red', '171.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Fri, 14 Jun 2024 13:35'],
[45.447798, -73.854344, 'red', '171.9 ¢/Litre
St Charles / Kirkland
Kirkland
Fri, 14 Jun 2024 13:39'],
[45.467640, -73.538519, 'red', '171.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Fri, 14 Jun 2024 23:37'],
[45.449479, -73.855608, 'red', '170.9 ¢/Litre
St Charles / Hymus
Kirkland
Fri, 14 Jun 2024 13:38'],
[45.483866, -73.579463, 'red', '170.9 ¢/Litre
Atwater / St Jacques
Le Sud-Ouest
Fri, 14 Jun 2024 13:35'],
[45.449631, -73.855814, 'red', '170.9 ¢/Litre
St Charles / Hymus
Kirkland
Fri, 14 Jun 2024 13:39'],
[45.529202, -73.512815, 'red', '169.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Fri, 14 Jun 2024 13:27'],
[45.529330, -73.512732, 'red', '169.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Fri, 14 Jun 2024 13:27'],
[45.481416, -73.577714, 'red', '169.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Fri, 14 Jun 2024 13:34'],
[45.481060, -73.578331, 'red', '169.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Fri, 14 Jun 2024 13:34'],
[45.578564, -73.575518, 'red', '169.9 ¢/Litre
Bélanger E / lAssomption
Rosemont
Fri, 14 Jun 2024 13:41'],
[45.489274, -73.724608, 'blue', '168.9 ¢/Litre
8300 Trans Canada (aut 40) / Montee de Liesse
Saint-Laurent
Fri, 14 Jun 2024 13:38'],
[45.574931, -73.876109, 'blue', 'Belisle - 168.9 ¢/Litre
St-Laurent
Saint-Eustache
Fri, 14 Jun 2024 09:13'],
[45.524007, -73.495670, 'blue', 'Ekonogaz - 168.9 ¢/Litre
Ste-Foy / Emma
Longueuil
Fri, 14 Jun 2024 13:26'],
[45.529366, -73.481586, 'blue', '167.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Fri, 14 Jun 2024 13:18'],
[45.432634, -73.637114, 'blue', '167.9 ¢/Litre
Dollard / Bédard
LaSalle
Fri, 14 Jun 2024 13:33'],
[45.439289, -73.621925, 'blue', '167.9 ¢/Litre
Lapierre / Newman
LaSalle
Fri, 14 Jun 2024 13:34'],
[45.575530, -73.874862, 'blue', '166.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Thu, 13 Jun 2024 10:13'],
[45.652417, -73.536275, 'blue', '165.9 ¢/Litre
Henri-Bourassa / St Jean Baptiste
Montréal
Fri, 14 Jun 2024 13:40'],
[45.471666, -73.563345, 'blue', 'Mobil - 165.9 ¢/Litre
3000 Wellington / Gilberte-Dubé / Henri Duhamel
Verdun
Fri, 14 Jun 2024 12:30'],
[45.519459, -73.457760, 'blue', '165.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Fri, 14 Jun 2024 13:17'],
[45.496541, -73.484126, 'green', '164.9 ¢/Litre
Taschereau / Mary
Greenfield Park
Fri, 14 Jun 2024 13:24'],
[45.481980, -73.464589, 'green', '164.9 ¢/Litre
Taschereau / Adam
Greenfield Park
Fri, 14 Jun 2024 13:25'],
[45.486768, -73.551440, 'green', 'Costco - 161.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Fri, 14 Jun 2024 13:32'],
[45.721626, -73.506924, 'green', 'Costco - 161.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Fri, 14 Jun 2024 15:35'],
[45.522034, -73.464228, 'green', '160.9 ¢/Litre
2720 Ch.de Chambly/Bl Jacques Cartier
Longueuil
Thu, 13 Jun 2024 16:49'],
[45.574156, -73.756927, 'green', 'Costco - 159.9 ¢/Litre
2999 440 oest
Laval
Thu, 13 Jun 2024 04:44'],
[45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Fri, 14 Jun 2024 13:44'],
[45.404236, -74.037960, 'green', 'Costco - 159.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Fri, 14 Jun 2024 13:44'],
[45.763549, -74.018241, 'green', 'Costco - 158.9 ¢/Litre
Jean-Baptiste-Rolland O / Brière
Saint-Jérôme
Fri, 14 Jun 2024 13:43']];
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+");});");
}
}