/****
* 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.595282, -73.095677);
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.593169, -73.185226, 'red', '175.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Thu, 13 Jun 2024 15:23'],
[45.417408, -73.239377, 'red', '174.9 ¢/Litre
2350 Ch des patriotes / Aut10
Richelieu
Fri, 14 Jun 2024 13:15'],
[45.575375, -73.446954, 'red', '172.9 ¢/Litre
Mortagne / Ampére
Boucherville
Fri, 14 Jun 2024 23:38'],
[45.551408, -73.216439, 'red', '172.9 ¢/Litre
Boul. Laurier, route 116
Mont-Saint-Hilaire
Wed, 12 Jun 2024 23:03'],
[45.571289, -73.177673, 'red', '172.9 ¢/Litre
Sir Wilfrid Laurier / Bernard
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:24'],
[45.520131, -73.318072, 'red', '171.9 ¢/Litre
De Boucherville / 116
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 13:23'],
[45.520053, -73.318720, 'red', '171.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 13:23'],
[45.523773, -73.302032, 'red', '171.9 ¢/Litre
Millenaire / Sir-Wilfrid-Laurier / Rte 116
Saint-Basile-le-Grand
Fri, 14 Jun 2024 13:22'],
[45.470898, -73.496523, 'red', '171.9 ¢/Litre
Marie Victorin / Provencher
Brossard
Fri, 14 Jun 2024 23:38'],
[45.470437, -73.495625, 'red', '171.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Fri, 14 Jun 2024 23:38'],
[45.567408, -73.406653, 'red', '171.9 ¢/Litre
Montarville / Eifel
Boucherville
Fri, 14 Jun 2024 11:30'],
[45.529202, -73.512815, 'blue', '169.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Fri, 14 Jun 2024 13:27'],
[45.529330, -73.512732, 'blue', '169.9 ¢/Litre
St-Laurent / Joliette
Longueuil
Fri, 14 Jun 2024 13:27'],
[45.865525, -73.145475, 'blue', '169.9 ¢/Litre
4950 des patriotes
Contrecoeur
Thu, 13 Jun 2024 07:07'],
[45.458915, -73.464943, 'blue', '169.9 ¢/Litre
Taschereau / Mario
Brossard
Fri, 14 Jun 2024 13:30'],
[45.851462, -73.245437, 'blue', '169.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Thu, 13 Jun 2024 07:08'],
[45.333285, -73.294644, 'blue', '169.9 ¢/Litre
Omer-Marcil / Alexis Lebert
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 02:42'],
[45.563185, -73.206182, 'blue', '169.9 ¢/Litre
coin Duvernay, route 116
Beloeil
Wed, 12 Jun 2024 23:10'],
[45.452430, -73.301341, 'blue', '169.9 ¢/Litre
930 Périgny / Brassard
Chambly
Fri, 14 Jun 2024 13:07'],
[45.562847, -73.224587, 'blue', '169.9 ¢/Litre
235 Blvd Yvon-lHeureux Nord
Beloeil
Fri, 14 Jun 2024 11:30'],
[45.528552, -73.290176, 'blue', '169.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Fri, 14 Jun 2024 13:21'],
[45.562616, -73.188010, 'blue', '169.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:22'],
[45.375975, -73.029238, 'blue', '169.9 ¢/Litre
320 rang des ecossais
Sainte-Brigide-dIberville
Fri, 14 Jun 2024 13:49'],
[45.547614, -73.206221, 'blue', '168.9 ¢/Litre
539 Chemin des Patriotes
Otterburn Park
Wed, 12 Jun 2024 23:08'],
[45.537753, -73.356759, 'blue', '168.9 ¢/Litre
Montarville / Lavérendrye
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 13:18'],
[45.562421, -73.188442, 'blue', '168.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:20'],
[45.524007, -73.495670, 'blue', 'Ekonogaz - 168.9 ¢/Litre
Ste-Foy / Emma
Longueuil
Fri, 14 Jun 2024 13:26'],
[45.443962, -73.246705, 'blue', '168.9 ¢/Litre
510 Blvd Richelieu / Ch des Patriotes
Richelieu
Fri, 14 Jun 2024 11:00'],
[45.542277, -73.187736, 'blue', '167.9 ¢/Litre
511 Chemin Ozias Leduc
Otterburn Park
Thu, 13 Jun 2024 15:24'],
[45.529366, -73.481586, 'blue', '167.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Fri, 14 Jun 2024 13:18'],
[45.542741, -73.186994, 'blue', '167.9 ¢/Litre
459 Chemin Ozias Leduc
Otterburn Park
Wed, 12 Jun 2024 23:07'],
[45.470785, -73.468103, 'blue', '166.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Fri, 14 Jun 2024 13:29'],
[45.365866, -72.933780, 'blue', '165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 13:50'],
[45.542277, -73.187736, 'blue', '165.9 ¢/Litre
511 Chemin Ozias-Leduc
Otterburn Park
Wed, 12 Jun 2024 23:06'],
[45.362059, -72.934853, 'blue', '165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 13:54'],
[45.519459, -73.457760, 'blue', '165.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Fri, 14 Jun 2024 13:17'],
[0.000000, 0.000000, 'blue', '165.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 13:54'],
[45.506039, -73.430198, 'blue', '165.9 ¢/Litre
Cousineau / Chambly
Saint-Hubert
Fri, 14 Jun 2024 13:26'],
[45.481980, -73.464589, 'green', '164.9 ¢/Litre
Taschereau / Adam
Greenfield Park
Fri, 14 Jun 2024 13:25'],
[45.479275, -73.465158, 'green', '164.9 ¢/Litre
Taschereau / Angèle
Brossard
Fri, 14 Jun 2024 13:29'],
[45.496541, -73.484126, 'green', '164.9 ¢/Litre
Taschereau / Mary
Greenfield Park
Fri, 14 Jun 2024 13:24'],
[45.514231, -73.132863, 'green', '164.9 ¢/Litre
Principale / Rouville
Saint-Jean-Baptiste
Wed, 12 Jun 2024 23:02'],
[45.306225, -73.283867, 'green', '163.9 ¢/Litre
Industriel/St Jacques
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 02:43'],
[45.314787, -73.264700, 'green', '163.9 ¢/Litre
Séminaire / St-Joseph
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 02:44'],
[45.606363, -73.103125, 'green', '161.9 ¢/Litre
5 rue St Simon/auto 20/sortie 120
Sainte-Madeleine
Thu, 13 Jun 2024 15:23'],
[45.362053, -73.307166, 'green', '161.9 ¢/Litre
St-Luc / Bélair
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 13:31'],
[45.887128, -73.281948, 'red', '161.9 ¢/Litre
st antoine
Lavaltrie
Wed, 12 Jun 2024 17:04'],
[45.522034, -73.464228, 'green', '160.9 ¢/Litre
2720 Ch.de Chambly/Bl Jacques Cartier
Longueuil
Thu, 13 Jun 2024 16:49'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 160.9 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Fri, 14 Jun 2024 11:34'],
[45.585563, -73.326783, 'green', '159.9 ¢/Litre
Fer-à-Cheval / St Joseph / Aut 20 (Sortie 102)
Sainte-Julie
Fri, 14 Jun 2024 11:30'],
[45.577602, -73.405821, 'green', 'Costco - 159.9 ¢/Litre
635 ch de Touraine
Boucherville
Fri, 14 Jun 2024 10:47'],
[45.433637, -73.477474, 'green', 'Costco - 159.9 ¢/Litre
Taschereau / Matte
Brossard
Fri, 14 Jun 2024 13:28'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 157.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 11:33'],
[45.355527, -73.297120, 'green', '157.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 13: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+");});");
}
}