/****
* 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.496602, -73.609557);
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.435143, -73.476495, 'red', '173.9 ¢/Litre
Taschereau / Matte
Brossard
Wed, 05 Jun 2024 00:32'],
[45.453096, -73.584039, 'red', '172.9 ¢/Litre
Woodland / de la Verendrye
Le Sud-Ouest
Wed, 05 Jun 2024 00:32'],
[45.420024, -73.486377, 'red', '172.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Wed, 05 Jun 2024 00:31'],
[45.414839, -73.485305, 'blue', '169.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Wed, 05 Jun 2024 00:30'],
[45.468890, -73.463637, 'blue', '168.9 ¢/Litre
Lapinière / Auteuil
Brossard
Tue, 04 Jun 2024 23:30'],
[45.467640, -73.538519, 'blue', '168.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Wed, 05 Jun 2024 23:53'],
[45.489274, -73.724608, 'blue', '168.9 ¢/Litre
8300 Trans Canada (aut 40) / Montee de Liesse
Saint-Laurent
Wed, 05 Jun 2024 00:35'],
[45.555705, -73.619473, 'blue', '168.4 ¢/Litre
Papineau / Crémazie / Aut 40 / de Lorimer
Villeray-Saint-Michel
Wed, 05 Jun 2024 13:30'],
[45.435239, -73.489912, 'blue', '167.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Wed, 05 Jun 2024 00:00'],
[45.573392, -73.913867, 'blue', '166.9 ¢/Litre
Boul Sauvé/Boul. Industriel
Saint-Eustache
Wed, 05 Jun 2024 11:43'],
[45.571185, -73.913286, 'blue', '166.9 ¢/Litre
Arthur-Sauvé/Grignon (Hôpital
Saint-Eustache
Wed, 05 Jun 2024 11:43'],
[45.721453, -73.508422, 'blue', 'Costco - 166.9 ¢/Litre
des Pionniers / Yves-Blais
Terrebonne
Wed, 05 Jun 2024 18:49'],
[45.575639, -73.892358, 'blue', '166.9 ¢/Litre
Antoine-Séguin/rue Dubois
Saint-Eustache
Wed, 05 Jun 2024 11:43'],
[45.593235, -73.907617, 'blue', '166.9 ¢/Litre
25ième ave
Saint-Eustache
Wed, 05 Jun 2024 11:42'],
[45.574931, -73.876109, 'blue', 'Belisle - 166.9 ¢/Litre
St-Laurent
Saint-Eustache
Wed, 05 Jun 2024 11:42'],
[45.514779, -73.719469, 'blue', '166.9 ¢/Litre
Henri-Bourassa / Lafrance
Saint-Laurent
Wed, 05 Jun 2024 00:35'],
[45.408970, -73.472702, 'blue', '166.9 ¢/Litre
St-Jean / Palerme
La Prairie
Wed, 05 Jun 2024 00:31'],
[45.563198, -73.206169, 'blue', '165.9 ¢/Litre
Blv. Laurier/coin Duvernay
Beloeil
Tue, 04 Jun 2024 23:56'],
[45.486768, -73.551440, 'green', 'Costco - 163.0 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Wed, 05 Jun 2024 20:00'],
[45.490275, -73.802855, 'green', '162.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Wed, 05 Jun 2024 00:00'],
[45.577050, -73.403659, 'green', 'Costco - 162.9 ¢/Litre
635 ch de Touraine
Boucherville
Tue, 04 Jun 2024 22:00'],
[45.577602, -73.405821, 'green', 'Costco - 161.9 ¢/Litre
635 ch de Touraine
Boucherville
Wed, 05 Jun 2024 12:02'],
[45.462287, -73.453165, 'green', '160.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Wed, 05 Jun 2024 00:28'],
[45.434703, -73.476459, 'green', 'Costco - 159.9 ¢/Litre
Bld. Matte / Taschereau
Brossard
Wed, 05 Jun 2024 12:03'],
[45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Wed, 05 Jun 2024 23:52'],
[45.433637, -73.477474, 'green', 'Costco - 159.9 ¢/Litre
Taschereau / Matte
Brossard
Tue, 04 Jun 2024 22:00']];
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+");});");
}
}