/****
* 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.551408, -73.216439, 'red', '
172.9 ¢/Litre
Boul. Laurier, route 116
Mont-Saint-Hilaire
Wed, 12 Jun 2024 23:03'],
[45.567869, -73.522612, 'red', '
171.9 ¢/Litre
Notre-Dame E / Bossuet
Hochelaga-Maisonneuve
Tue, 11 Jun 2024 12:37'],
[45.435239, -73.489912, 'red', '
171.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Mon, 10 Jun 2024 23:30'],
[45.435143, -73.476495, 'red', '
171.9 ¢/Litre
Taschereau / Matte
Brossard
Mon, 10 Jun 2024 23:30'],
[45.520053, -73.318720, 'red', '
171.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Tue, 11 Jun 2024 12:47'],
[45.595107, -73.511586, 'red', '
170.9 ¢/Litre
Notre-Dame / St Donat
Hochelaga-Maisonneuve
Tue, 11 Jun 2024 12:37'],
[45.434691, -73.291560, 'blue', '
169.9 ¢/Litre
Kennedy / Fréchette
Chambly
Tue, 11 Jun 2024 12:47'],
[45.452430, -73.301341, 'blue', '
169.9 ¢/Litre
930 Périgny / Brassard
Chambly
Tue, 11 Jun 2024 12:46'],
[45.851462, -73.245437, 'blue', '
169.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Thu, 13 Jun 2024 07:08'],
[45.865525, -73.145475, 'blue', '
169.9 ¢/Litre
4950 des patriotes
Contrecoeur
Thu, 13 Jun 2024 07:07'],
[45.563185, -73.206182, 'blue', '
169.9 ¢/Litre
coin Duvernay, route 116
Beloeil
Wed, 12 Jun 2024 23:10'],
[45.582704, -73.426126, 'blue', '
169.9 ¢/Litre
Montarville / Normandie
Boucherville
Mon, 10 Jun 2024 22:00'],
[45.567523, -73.450137, 'blue', '
169.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Mon, 10 Jun 2024 22:00'],
[45.432669, -73.306230, 'blue', '
169.9 ¢/Litre
1490 Boulevard Brassard
Chambly
Tue, 11 Jun 2024 12:46'],
[45.454187, -73.301763, 'blue', '
169.3 ¢/Litre
875 Périgny / St-Joseph
Chambly
Tue, 11 Jun 2024 12:45'],
[45.447754, -73.291977, 'blue', '
169.3 ¢/Litre
Périgny / Salaberry
Chambly
Tue, 11 Jun 2024 12:45'],
[45.512580, -73.499581, 'blue', '
168.9 ¢/Litre
Taschereau / Ste Foy
Longueuil
Tue, 11 Jun 2024 10:30'],
[45.547614, -73.206221, 'blue', '
168.9 ¢/Litre
539 Chemin des Patriotes
Otterburn Park
Wed, 12 Jun 2024 23:08'],
[45.567408, -73.406653, 'blue', '
168.9 ¢/Litre
Montarville / Eifel
Boucherville
Tue, 11 Jun 2024 12:36'],
[45.579334, -73.447128, 'blue', '
168.9 ¢/Litre
Mortagne / Industriel
Boucherville
Mon, 10 Jun 2024 22:00'],
[45.536265, -73.513074, 'blue', '
168.9 ¢/Litre
St-Charles / St-Sylvestre
Longueuil
Tue, 11 Jun 2024 10:30'],
[45.542741, -73.186994, 'blue', '
167.9 ¢/Litre
459 Chemin Ozias Leduc
Otterburn Park
Wed, 12 Jun 2024 23:07'],
[45.313099, -73.228636, 'blue', 'Pétroles Trudo - 167.9 ¢/Litre
Rte 104
Mont-Saint-Grégoire
Tue, 11 Jun 2024 12:34'],
[45.576640, -73.446699, 'blue', '
166.9 ¢/Litre
Mortagne / Parfondeval
Boucherville
Mon, 10 Jun 2024 22:00'],
[45.506039, -73.430198, 'blue', '
166.9 ¢/Litre
Cousineau / Chambly
Saint-Hubert
Tue, 11 Jun 2024 10:30'],
[45.496989, -73.447439, 'blue', '
166.9 ¢/Litre
Soucy / Maricourt
Saint-Hubert
Tue, 11 Jun 2024 10:30'],
[45.342527, -73.302757, 'blue', '
165.9 ¢/Litre
Rue Bernier / Rue Pierre-Brosseau
Saint-Jean-sur-Richelieu
Tue, 11 Jun 2024 12:44'],
[45.519459, -73.457760, 'red', '
165.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Mon, 10 Jun 2024 14:43'],
[45.542277, -73.187736, 'blue', '
165.9 ¢/Litre
511 Chemin Ozias-Leduc
Otterburn Park
Wed, 12 Jun 2024 23:06'],
[45.514231, -73.132863, 'blue', '
164.9 ¢/Litre
Principale / Rouville
Saint-Jean-Baptiste
Wed, 12 Jun 2024 23:02'],
[45.477996, -73.386635, 'red', '
164.9 ¢/Litre
Cousineau / Aut 30
Saint-Hubert
Mon, 10 Jun 2024 14:46'],
[45.456332, -73.415714, 'blue', '
164.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Tue, 11 Jun 2024 12:40'],
[45.458885, -73.419335, 'blue', '
164.9 ¢/Litre
Grande Allée / du Quartier / Moïse Vincent
Saint-Hubert
Tue, 11 Jun 2024 12:41'],
[45.575375, -73.446954, 'blue', '
164.9 ¢/Litre
Mortagne / Ampére
Boucherville
Mon, 10 Jun 2024 22:30'],
[45.481291, -73.388865, 'red', '
164.9 ¢/Litre
Cousineau / Moïse Vincent / Aut 30
Saint-Hubert
Mon, 10 Jun 2024 14:47'],
[45.521868, -73.463538, 'red', '
163.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Mon, 10 Jun 2024 14:42'],
[45.521714, -73.463444, 'red', '
163.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Mon, 10 Jun 2024 14:43'],
[45.362053, -73.307166, 'red', '
161.9 ¢/Litre
St-Luc / Bélair
Saint-Jean-sur-Richelieu
Mon, 10 Jun 2024 14:46'],
[45.887128, -73.281948, 'green', '
161.9 ¢/Litre
st antoine
Lavaltrie
Wed, 12 Jun 2024 17:04'],
[45.576824, -73.327727, 'green', '
161.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Tue, 11 Jun 2024 12:35'],
[45.576935, -73.327703, 'green', '
161.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Tue, 11 Jun 2024 12:36'],
[45.577739, -73.405651, 'red', 'Costco - 159.9 ¢/Litre
635 Ch de Touraine
Boucherville
Mon, 10 Jun 2024 14:16'],
[45.352015, -73.293630, 'green', '
159.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Tue, 11 Jun 2024 10:30'],
[45.434650, -73.480101, 'green', 'Costco - 159.9 ¢/Litre
9430 Boulevard Taschereau, Brossard
Brossard
Tue, 11 Jun 2024 13:30'],
[45.577050, -73.403659, 'green', 'Costco - 159.9 ¢/Litre
635 ch de Touraine
Boucherville
Mon, 10 Jun 2024 22:00'],
[45.577602, -73.405821, 'green', 'Costco - 159.9 ¢/Litre
635 ch de Touraine
Boucherville
Wed, 12 Jun 2024 10:28'],
[45.355527, -73.297120, 'green', '
158.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Tue, 11 Jun 2024 12:43'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 157.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Tue, 11 Jun 2024 10: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+");});");
}
}