/****
* 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.356067, -72.939177);
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.417408, -73.239377, 'red', '
174.9 ¢/Litre
2350 Ch des patriotes / Aut10
Richelieu
Fri, 14 Jun 2024 13:15'],
[45.571289, -73.177673, 'red', '
172.9 ¢/Litre
Sir Wilfrid Laurier / Bernard
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:24'],
[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.198690, -72.662206, 'blue', '
169.9 ¢/Litre
Ch Knowlton (104) / Ch West Brome (139)
West-Brome
Sun, 16 Jun 2024 00:49'],
[45.375975, -73.029238, 'blue', '
169.9 ¢/Litre
320 rang des ecossais
Sainte-Brigide-dIberville
Fri, 14 Jun 2024 13:49'],
[45.210419, -72.768813, 'red', '
169.9 ¢/Litre
de la Rivière / Hanson
Cowansville
Fri, 14 Jun 2024 10:30'],
[45.210608, -72.768878, 'red', '
169.9 ¢/Litre
Rivere / Hanson
Cowansville
Fri, 14 Jun 2024 10:30'],
[45.334200, -72.651372, 'blue', '
169.9 ¢/Litre
Boul. Bromont / Aut. 10
Bromont
Sun, 16 Jun 2024 23:30'],
[45.190486, -72.755388, 'blue', '
169.9 ¢/Litre
104 / Rue du Sud
Cowansville
Mon, 17 Jun 2024 02:17'],
[45.203181, -72.686271, 'blue', '
169.9 ¢/Litre
Knowlton / Vallée Bleu
West-Brome
Mon, 17 Jun 2024 02:16'],
[45.335737, -72.703528, 'blue', '
169.9 ¢/Litre
Pierre Laporte / Aut 10 (Sortie 74)
Bromont
Sun, 16 Jun 2024 23:00'],
[45.191015, -72.755007, 'blue', '
169.9 ¢/Litre
Rue du Sud / Rte 202 / Jaques Bertrand
Cowansville
Mon, 17 Jun 2024 02:18'],
[45.331377, -72.648969, 'red', '
169.9 ¢/Litre
Bromont / Aut 10 (Sortie 78)
Bromont
Fri, 14 Jun 2024 11:30'],
[45.334628, -72.650518, 'red', '
169.9 ¢/Litre
130 Boul du carrefour
Bromont
Fri, 14 Jun 2024 11:30'],
[45.562616, -73.188010, 'blue', '
169.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:22'],
[45.528552, -73.290176, 'blue', '
169.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Fri, 14 Jun 2024 13:21'],
[45.562847, -73.224587, 'red', '
169.9 ¢/Litre
235 Blvd Yvon-lHeureux Nord
Beloeil
Fri, 14 Jun 2024 11:30'],
[45.452430, -73.301341, 'blue', '
169.9 ¢/Litre
930 Périgny / Brassard
Chambly
Fri, 14 Jun 2024 13:07'],
[45.443962, -73.246705, 'red', '
168.9 ¢/Litre
510 Blvd Richelieu / Ch des Patriotes
Richelieu
Fri, 14 Jun 2024 11:00'],
[45.562421, -73.188442, 'blue', '
168.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Fri, 14 Jun 2024 13:20'],
[0.000000, 0.000000, 'green', '
165.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 13:54'],
[45.365866, -72.933780, 'green', '
165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 13:50'],
[45.362059, -72.934853, 'green', '
165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 13:54'],
[45.362053, -73.307166, 'green', '
161.9 ¢/Litre
St-Luc / Bélair
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 13:31'],
[45.355527, -73.297120, 'green', '
157.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 13:30'],
[45.351623, -73.292885, 'red', 'Pétrole Maurice - 157.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Fri, 14 Jun 2024 11:33']];
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+");});");
}
}