/****
* 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.517671, -73.617411);
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.520053, -73.318720, 'red', '178.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Thu, 23 May 2024 15:52'],
[45.467640, -73.538519, 'red', '178.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 23 May 2024 14:01'],
[45.567869, -73.522612, 'red', '177.9 ¢/Litre
Notre-Dame E / Bossuet
Hochelaga-Maisonneuve
Thu, 23 May 2024 15:46'],
[45.455084, -73.443046, 'red', '177.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Thu, 23 May 2024 15:51'],
[45.496101, -73.513824, 'red', '176.9 ¢/Litre
Riverside / Edison
Saint-Lambert
Thu, 23 May 2024 14:30'],
[45.524679, -73.338112, 'red', '176.9 ¢/Litre
Montarville / Seigneurial
Saint-Bruno-de-Montarville
Thu, 23 May 2024 15:51'],
[45.477996, -73.386635, 'red', '175.9 ¢/Litre
Cousineau / Aut 30
Saint-Hubert
Thu, 23 May 2024 15:50'],
[45.614041, -73.442844, 'red', '175.9 ¢/Litre
Montbrun / Général Vanier
Boucherville
Thu, 23 May 2024 15:45'],
[45.459100, -73.256330, 'blue', '174.9 ¢/Litre
123 CH des Patriotes
Saint-Mathias-sur-Richelieu
Thu, 23 May 2024 15:50'],
[45.496541, -73.484126, 'blue', '174.9 ¢/Litre
Taschereau / Mary
Greenfield Park
Thu, 23 May 2024 15:54'],
[45.575530, -73.874862, 'blue', '174.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Thu, 23 May 2024 15:21'],
[45.542687, -73.455710, 'blue', '172.9 ¢/Litre
Jacques-Cartier-E/ Du Tremblay
Longueuil
Thu, 23 May 2024 15:43'],
[45.574931, -73.876109, 'blue', 'Belisle - 172.9 ¢/Litre
St-Laurent
Saint-Eustache
Thu, 23 May 2024 11:16'],
[45.529330, -73.512732, 'blue', '172.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Thu, 23 May 2024 15:53'],
[45.536265, -73.513074, 'blue', '172.9 ¢/Litre
St-Charles / St-Sylvestre
Longueuil
Thu, 23 May 2024 15:54'],
[45.593235, -73.907617, 'blue', '172.9 ¢/Litre
25ième ave
Saint-Eustache
Thu, 23 May 2024 15:21'],
[45.529202, -73.512815, 'blue', '172.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Thu, 23 May 2024 15:52'],
[45.447681, -73.609652, 'blue', '171.9 ¢/Litre
Boulevard Angrigon / Boulevard Newman
LaSalle
Thu, 23 May 2024 15:34'],
[45.521972, -73.463278, 'green', '168.9 ¢/Litre
2715 Chemin de Chambly
Longueuil
Thu, 23 May 2024 17:51'],
[45.607988, -73.584409, 'green', 'Costco - 168.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Thu, 23 May 2024 15:48'],
[45.371582, -73.515440, 'green', 'Costco - 167.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Thu, 23 May 2024 15:47'],
[45.577602, -73.405821, 'green', 'Costco - 166.9 ¢/Litre
635 ch de Touraine
Boucherville
Thu, 23 May 2024 11:18'],
[45.686705, -73.432357, 'green', '165.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Thu, 23 May 2024 09:39'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 165.9 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Thu, 23 May 2024 09:40'],
[45.404236, -74.037960, 'green', 'Costco - 165.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Thu, 23 May 2024 15:47'],
[45.580715, -73.760447, 'green', 'Costco - 164.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Thu, 23 May 2024 14:02'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 164.9 ¢/Litre
8855 ch chambly
Longuueil
Thu, 23 May 2024 07:59'],
[45.439112, -73.190249, 'green', 'Pétrole Maurice - 164.9 ¢/Litre
chemin chambly
Saint-Hubert
Thu, 23 May 2024 07:59'],
[45.475969, -73.361190, 'green', 'Pétrole Maurice - 164.9 ¢/Litre
Chambly / Daniel
Saint-Hubert
Thu, 23 May 2024 07:59']];
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+");});");
}
}