/****
* 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.617529, -72.962532);
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 16:23'],
[45.417408, -73.239377, 'red', '174.9 ¢/Litre
2350 Ch des patriotes / Aut10
Richelieu
Fri, 14 Jun 2024 14:15'],
[45.571289, -73.177673, 'red', '172.9 ¢/Litre
Sir Wilfrid Laurier / Bernard
Mont-Saint-Hilaire
Fri, 14 Jun 2024 14:24'],
[45.520053, -73.318720, 'blue', '171.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 14:23'],
[45.523773, -73.302032, 'blue', '171.9 ¢/Litre
Millenaire / Sir-Wilfrid-Laurier / Rte 116
Saint-Basile-le-Grand
Fri, 14 Jun 2024 14:22'],
[45.520131, -73.318072, 'blue', '171.9 ¢/Litre
De Boucherville / 116
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 14:23'],
[45.865525, -73.145475, 'blue', '169.9 ¢/Litre
4950 des patriotes
Contrecoeur
Thu, 13 Jun 2024 08:07'],
[45.851462, -73.245437, 'blue', '169.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Thu, 13 Jun 2024 08:08'],
[45.452430, -73.301341, 'blue', '169.9 ¢/Litre
930 Périgny / Brassard
Chambly
Fri, 14 Jun 2024 14:07'],
[45.375975, -73.029238, 'blue', '169.9 ¢/Litre
320 rang des ecossais
Sainte-Brigide-dIberville
Fri, 14 Jun 2024 14:49'],
[45.562847, -73.224587, 'blue', '169.9 ¢/Litre
235 Blvd Yvon-lHeureux Nord
Beloeil
Fri, 14 Jun 2024 12:30'],
[45.528552, -73.290176, 'blue', '169.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Fri, 14 Jun 2024 14:21'],
[45.562616, -73.188010, 'blue', '169.9 ¢/Litre
328 Boul Sir-Wilfrid-Laurier / Radisson
Mont-Saint-Hilaire
Fri, 14 Jun 2024 14:22'],
[45.537753, -73.356759, 'blue', '168.9 ¢/Litre
Montarville / Lavérendrye
Saint-Bruno-de-Montarville
Fri, 14 Jun 2024 14:18'],
[45.562421, -73.188442, 'blue', '168.9 ¢/Litre
324 sir-wilfrid-laurier
Mont-Saint-Hilaire
Fri, 14 Jun 2024 14:20'],
[45.443962, -73.246705, 'blue', '168.9 ¢/Litre
510 Blvd Richelieu / Ch des Patriotes
Richelieu
Fri, 14 Jun 2024 12:00'],
[45.542277, -73.187736, 'blue', '167.9 ¢/Litre
511 Chemin Ozias Leduc
Otterburn Park
Thu, 13 Jun 2024 16:24'],
[0.000000, 0.000000, 'green', '165.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 14:54'],
[45.362059, -72.934853, 'green', '165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 14:54'],
[45.365866, -72.933780, 'green', '165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Fri, 14 Jun 2024 14:50'],
[45.606363, -73.103125, 'green', '161.9 ¢/Litre
5 rue St Simon/auto 20/sortie 120
Sainte-Madeleine
Thu, 13 Jun 2024 16:23'],
[45.585563, -73.326783, 'green', '159.9 ¢/Litre
Fer-à-Cheval / St Joseph / Aut 20 (Sortie 102)
Sainte-Julie
Fri, 14 Jun 2024 12: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+");});");
}
}