/****
* 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.483374, -73.599588);
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.575375, -73.446954, 'red', '172.9 ¢/Litre
Mortagne / Ampére
Boucherville
Sat, 15 Jun 2024 00:38'],
[45.457416, -73.492229, 'red', '172.9 ¢/Litre
Marie-Victorin / Rome
Brossard
Sun, 16 Jun 2024 01:55'],
[45.496541, -73.484126, 'red', '172.9 ¢/Litre
Taschereau / Mary
Greenfield Park
Sun, 16 Jun 2024 01:56'],
[45.493703, -73.479352, 'red', '172.9 ¢/Litre
Taschereau / Georges
Greenfield Park
Sun, 16 Jun 2024 01:56'],
[45.458915, -73.464943, 'red', '172.9 ¢/Litre
Taschereau / Mario
Brossard
Sun, 16 Jun 2024 01:57'],
[45.595047, -73.582150, 'red', '172.9 ¢/Litre
Langelier / Jarry E
Saint-Leonard
Sun, 16 Jun 2024 01:57'],
[45.515478, -73.490700, 'red', '172.9 ¢/Litre
Curé Poirier / Ste-Hélène
Longueuil
Sun, 16 Jun 2024 02:00'],
[45.547999, -73.495463, 'red', '171.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Sun, 16 Jun 2024 00:00'],
[45.476861, -73.838663, 'red', '171.9 ¢/Litre
St Jean / Westminster
Dollard-des-Ormeaux
Sun, 16 Jun 2024 00:00'],
[45.470437, -73.495625, 'red', '171.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Sun, 16 Jun 2024 00:00'],
[45.470898, -73.496523, 'red', '171.9 ¢/Litre
Marie Victorin / Provencher
Brossard
Sun, 16 Jun 2024 00:00'],
[45.420024, -73.486377, 'red', '171.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Sun, 16 Jun 2024 00:00'],
[45.414839, -73.485305, 'red', '171.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Sun, 16 Jun 2024 00:00'],
[45.493326, -73.478896, 'red', '171.9 ¢/Litre
Taschereau / Georges
Saint-Hubert
Sun, 16 Jun 2024 01:53'],
[45.478890, -73.478282, 'red', '171.9 ¢/Litre
Simard / Victoria
Saint-Lambert
Sun, 16 Jun 2024 01:52'],
[45.467640, -73.538519, 'red', '171.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sat, 15 Jun 2024 16:25'],
[45.574931, -73.876109, 'blue', 'Belisle - 168.9 ¢/Litre
St-Laurent
Saint-Eustache
Sun, 16 Jun 2024 10:44'],
[45.582704, -73.426126, 'blue', '168.9 ¢/Litre
Montarville / Normandie
Boucherville
Sat, 15 Jun 2024 23:00'],
[45.481980, -73.464589, 'green', '163.3 ¢/Litre
Taschereau / Adam
Greenfield Park
Sun, 16 Jun 2024 01:52'],
[45.721626, -73.506924, 'green', 'Costco - 161.9 ¢/Litre
870 monte des pionniers
Terrebonne
Sat, 15 Jun 2024 13:00'],
[45.721626, -73.506924, 'green', 'Costco - 161.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Sun, 16 Jun 2024 09:51'],
[45.433637, -73.477474, 'green', 'Costco - 159.9 ¢/Litre
Taschereau / Matte
Brossard
Sat, 15 Jun 2024 22:30'],
[45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Sat, 15 Jun 2024 16:23'],
[45.577050, -73.403659, 'green', 'Costco - 158.9 ¢/Litre
635 ch de Touraine
Boucherville
Sat, 15 Jun 2024 22:30']];
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+");});");
}
}