/****
* 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.337857, -73.160578);
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.493326, -73.478896, 'red', '
176.9 ¢/Litre
Taschereau / Georges
Saint-Hubert
Mon, 01 Jul 2024 13:16'],
[45.435239, -73.489912, 'red', '
176.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Mon, 01 Jul 2024 11:30'],
[45.408875, -73.472737, 'red', '
176.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Mon, 01 Jul 2024 13:17'],
[45.414839, -73.485305, 'red', '
176.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Mon, 01 Jul 2024 13:17'],
[45.501483, -73.423506, 'red', '
176.9 ¢/Litre
Cousineau / Montée St-Hubert
Saint-Hubert
Sun, 30 Jun 2024 22:30'],
[45.467640, -73.538519, 'red', '
175.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Mon, 01 Jul 2024 06:43'],
[45.593169, -73.185226, 'red', '
175.9 ¢/Litre
Brunet / Aut 20 (Sortie 113)
Mont-Saint-Hilaire
Mon, 01 Jul 2024 10:21'],
[45.536265, -73.513074, 'red', '
174.9 ¢/Litre
St-Charles / St-Sylvestre
Longueuil
Mon, 01 Jul 2024 13:22'],
[45.495146, -73.409293, 'red', '
174.9 ¢/Litre
Cousineau / Gaétan Boucher
Saint-Hubert
Mon, 01 Jul 2024 13:20'],
[45.595344, -73.095492, 'blue', '
171.9 ¢/Litre
Route 116
Mont-Saint-Hilaire
Mon, 01 Jul 2024 10:22'],
[45.511796, -73.439486, 'blue', '
170.9 ¢/Litre
Chambly / Vauquelin
Saint-Hubert
Sun, 30 Jun 2024 22:00'],
[45.414653, -72.718391, 'blue', '
169.9 ¢/Litre
Dufferin (coin Bourget)
Granby
Mon, 01 Jul 2024 12:46'],
[45.481291, -73.388865, 'blue', '
169.9 ¢/Litre
Cousineau / Moïse Vincent / Aut 30
Saint-Hubert
Mon, 01 Jul 2024 13:20'],
[45.502445, -73.426215, 'green', '
165.9 ¢/Litre
5175 Cousineau / Perras
Saint-Hubert
Sun, 30 Jun 2024 21:30'],
[45.365866, -72.933780, 'green', '
165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Mon, 01 Jul 2024 12:00'],
[45.470851, -73.564091, 'green', '
165.9 ¢/Litre
Wellington / Gilberte-Dubé / Henri-Duhamel
Verdun
Sun, 30 Jun 2024 22:32'],
[45.481980, -73.464589, 'green', '
165.9 ¢/Litre
Taschereau / Adam
Greenfield Park
Mon, 01 Jul 2024 12:00'],
[45.364946, -72.934102, 'green', '
165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Mon, 01 Jul 2024 12:00'],
[45.329043, -72.817201, 'green', '
165.9 ¢/Litre
Rte 139 / Aut 10 (Sortie 68)
Saint-Alphonse-de-Granby
Mon, 01 Jul 2024 01:07'],
[45.458904, -73.419386, 'green', '
164.9 ¢/Litre
Grande-Allée / Du Quartier
Brossard
Mon, 01 Jul 2024 13:15'],
[45.458885, -73.419335, 'green', '
164.9 ¢/Litre
Grande Allée / du Quartier / Moïse Vincent
Saint-Hubert
Mon, 01 Jul 2024 13:13'],
[45.433637, -73.477474, 'green', 'Costco - 162.9 ¢/Litre
Taschereau / Matte
Brossard
Sun, 30 Jun 2024 20:30'],
[45.475969, -73.361190, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
Chambly / Daniel
Saint-Hubert
Mon, 01 Jul 2024 07:02'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
8855 ch chambly
Longuueil
Mon, 01 Jul 2024 07:02'],
[45.439112, -73.190249, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
chemin chambly
Saint-Hubert
Mon, 01 Jul 2024 07:02'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 162.9 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Mon, 01 Jul 2024 07:02'],
[45.576824, -73.327727, 'green', '
161.9 ¢/Litre
Fer-à-Cheval / Nobel / Aut 20 (Sortie 102)
Sainte-Julie
Mon, 01 Jul 2024 12:00'],
[45.352015, -73.293630, 'green', '
159.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Mon, 01 Jul 2024 13:19'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 159.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Mon, 01 Jul 2024 13:18']];
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+");});");
}
}