/****
* 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.305772, -73.254490);
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.467640, -73.538519, 'red', '177.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sat, 29 Jun 2024 14:15'],
[45.486054, -73.633837, 'red', '177.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Fri, 28 Jun 2024 10:36'],
[45.486616, -73.636535, 'red', '177.9 ¢/Litre
Decarie / Dupuis / Cote Ste Catherine
Côte-des-Neiges
Fri, 28 Jun 2024 10:37'],
[45.602901, -73.351848, 'red', '176.9 ¢/Litre
Mteé Ste-Julie / N-P Lapierre
Sainte-Julie
Fri, 28 Jun 2024 16:23'],
[45.528020, -73.478252, 'red', '176.9 ¢/Litre
Chambly / Benoît
Longueuil
Thu, 27 Jun 2024 12:00'],
[45.445236, -73.438325, 'red', '176.9 ¢/Litre
Leduc / Lepage
Brossard
Fri, 28 Jun 2024 10:33'],
[45.562616, -73.188010, 'red', '176.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Fri, 28 Jun 2024 09:00'],
[45.494872, -73.408831, 'red', '175.9 ¢/Litre
Cousineau / Gaetan - Boucher
Saint-Hubert
Thu, 27 Jun 2024 13:00'],
[45.512580, -73.499581, 'red', '175.9 ¢/Litre
Taschereau / Ste Foy
Longueuil
Fri, 28 Jun 2024 16:20'],
[45.547999, -73.495463, 'red', '175.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Fri, 28 Jun 2024 16:08'],
[45.538301, -73.480087, 'red', '175.9 ¢/Litre
Rolland Therrien / Du Lac
Longueuil
Fri, 28 Jun 2024 16:08'],
[45.602682, -73.351633, 'red', '175.9 ¢/Litre
Mtée Ste-Julie/Boul. Lapierre
Sainte-Julie
Thu, 27 Jun 2024 12:58'],
[45.567928, -73.450352, 'red', '174.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Fri, 28 Jun 2024 16:09'],
[45.567523, -73.450137, 'red', '174.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Fri, 28 Jun 2024 16:09'],
[45.536768, -73.499334, 'red', 'Super Gaz - 173.9 ¢/Litre
Chambly / Le Moyne
Longueuil
Sat, 29 Jun 2024 11:00'],
[45.421724, -73.635371, 'red', '173.9 ¢/Litre
Airlie / 80e Ave
LaSalle
Fri, 28 Jun 2024 10:36'],
[45.375975, -73.029238, 'blue', '172.9 ¢/Litre
320 rang des ecossais
Sainte-Brigide-dIberville
Fri, 28 Jun 2024 08:30'],
[45.470785, -73.468103, 'blue', '172.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Fri, 28 Jun 2024 10:34'],
[45.542687, -73.455710, 'blue', '172.9 ¢/Litre
Jacques-Cartier-E/ Du Tremblay
Longueuil
Thu, 27 Jun 2024 12:55'],
[45.454187, -73.301763, 'blue', '172.9 ¢/Litre
875 Périgny / St-Joseph
Chambly
Fri, 28 Jun 2024 10:32'],
[45.536265, -73.513074, 'blue', '171.9 ¢/Litre
St-Charles / St-Sylvestre
Longueuil
Fri, 28 Jun 2024 16:20'],
[45.481291, -73.388865, 'blue', '170.9 ¢/Litre
Cousineau / Moïse Vincent / Aut 30
Saint-Hubert
Fri, 28 Jun 2024 10:31'],
[45.473253, -73.402898, 'blue', '170.9 ¢/Litre
Cousineau / Moïse Vincent
Saint-Hubert
Fri, 28 Jun 2024 10:32'],
[45.537753, -73.356759, 'blue', '170.9 ¢/Litre
Montarville / Lavérendrye
Saint-Bruno-de-Montarville
Thu, 27 Jun 2024 12:57'],
[45.592512, -73.197819, 'blue', '169.9 ¢/Litre
Serge-Pepin / André Labadie
Beloeil
Fri, 28 Jun 2024 10:28'],
[45.562421, -73.188442, 'blue', '169.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Fri, 28 Jun 2024 10:29'],
[45.447681, -73.609652, 'blue', '169.9 ¢/Litre
Boulevard Angrigon / Boulevard Newman
LaSalle
Thu, 27 Jun 2024 12:31'],
[45.313099, -73.228636, 'blue', 'Pétroles Trudo - 167.9 ¢/Litre
Rte 104
Mont-Saint-Grégoire
Fri, 28 Jun 2024 11:42'],
[45.521868, -73.463538, 'blue', '167.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Fri, 28 Jun 2024 16:19'],
[45.120877, -72.987364, 'green', '165.9 ¢/Litre
Dupont / Route 202
Bedford
Fri, 28 Jun 2024 11:42'],
[45.495146, -73.409293, 'green', '165.9 ¢/Litre
Cousineau / Gaétan Boucher
Saint-Hubert
Thu, 27 Jun 2024 13:02'],
[45.606363, -73.103125, 'green', '164.9 ¢/Litre
5 rue St Simon/auto 20/sortie 120
Sainte-Madeleine
Thu, 27 Jun 2024 11:04'],
[45.456332, -73.415714, 'green', '164.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Fri, 28 Jun 2024 14:30'],
[45.603946, -73.101863, 'green', '164.9 ¢/Litre
St-Simon / Aut 20 (Sortie 120)
Sainte-Madeleine
Fri, 28 Jun 2024 10:29'],
[45.462287, -73.453165, 'green', '164.3 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Fri, 28 Jun 2024 14:30'],
[45.314787, -73.264700, 'green', '163.9 ¢/Litre
Séminaire / St-Joseph
Saint-Jean-sur-Richelieu
Thu, 27 Jun 2024 15:53'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Sat, 29 Jun 2024 08:51'],
[45.439112, -73.190249, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
chemin chambly
Saint-Hubert
Sat, 29 Jun 2024 08:51'],
[45.475969, -73.361190, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
Chambly / Daniel
Saint-Hubert
Sat, 29 Jun 2024 08:51'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
8855 ch chambly
Longuueil
Sat, 29 Jun 2024 08:51'],
[45.479275, -73.465158, 'green', '162.9 ¢/Litre
Taschereau / Angèle
Brossard
Thu, 27 Jun 2024 11:30'],
[45.475037, -73.358947, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
Chemin Chambly / Montée Daniel
Saint-Hubert
Fri, 28 Jun 2024 16:14'],
[45.371582, -73.515440, 'green', 'Costco - 161.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Fri, 28 Jun 2024 16:17'],
[45.433637, -73.477474, 'green', 'Costco - 160.9 ¢/Litre
Taschereau / Matte
Brossard
Fri, 28 Jun 2024 16:12'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 159.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Sat, 29 Jun 2024 08:51'],
[45.355527, -73.297120, 'green', '159.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Fri, 28 Jun 2024 10:30'],
[45.333285, -73.294644, 'green', '157.9 ¢/Litre
Omer-Marcil / Alexis Lebert
Saint-Jean-sur-Richelieu
Thu, 27 Jun 2024 15:52']];
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+");});");
}
}