/****
* 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.316709, -73.066241);
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.435239, -73.489912, 'red', '
176.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Mon, 24 Jun 2024 11:30'],
[45.506039, -73.430198, 'red', '
176.9 ¢/Litre
Cousineau / Chambly
Saint-Hubert
Mon, 24 Jun 2024 23:53'],
[45.435143, -73.476495, 'red', '
175.9 ¢/Litre
Taschereau / Matte
Brossard
Tue, 25 Jun 2024 00:12'],
[45.496989, -73.447439, 'red', '
174.9 ¢/Litre
Soucy / Maricourt
Saint-Hubert
Tue, 25 Jun 2024 00:09'],
[45.441121, -73.442392, 'blue', '
172.9 ¢/Litre
101-8075 boul. du Quartier
Brossard
Tue, 25 Jun 2024 00:11'],
[45.476955, -73.429460, 'blue', '
169.9 ¢/Litre
Gaétan Boucher / Payer
Saint-Hubert
Mon, 24 Jun 2024 13:46'],
[45.520131, -73.318072, 'blue', '
169.9 ¢/Litre
De Boucherville / 116
Saint-Bruno-de-Montarville
Mon, 24 Jun 2024 11:30'],
[45.287199, -72.992513, 'blue', '
169.9 ¢/Litre
Principale (Rte 104) / Rte 235
Farnham
Mon, 24 Jun 2024 12:00'],
[45.342316, -72.783502, 'blue', '
169.9 ¢/Litre
Rte 139 / Aut 10 (Sortie 68)
Saint-Alphonse-de-Granby
Mon, 24 Jun 2024 11:00'],
[45.335737, -72.703528, 'blue', '
169.9 ¢/Litre
Pierre Laporte / Aut 10 (Sortie 74)
Bromont
Mon, 24 Jun 2024 10:30'],
[45.212033, -72.715367, 'blue', '
169.9 ¢/Litre
763 Boul.J-A Déragon / Rte 241 / P-Laporte
Cowansville
Mon, 24 Jun 2024 10:30'],
[45.562847, -73.224587, 'blue', '
168.9 ¢/Litre
235 Blvd Yvon-lHeureux Nord
Beloeil
Mon, 24 Jun 2024 13:48'],
[45.567925, -73.203947, 'blue', '
168.9 ¢/Litre
St-Jean-Baptiste / Yvon-LHeureux
Beloeil
Mon, 24 Jun 2024 12:00'],
[45.502445, -73.426215, 'blue', '
165.9 ¢/Litre
5175 Cousineau / Perras
Saint-Hubert
Mon, 24 Jun 2024 13:45'],
[45.364946, -72.934102, 'blue', '
165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Mon, 24 Jun 2024 11:00'],
[0.000000, 0.000000, 'blue', '
165.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
LAnge-Gardien (Montérégie)
Mon, 24 Jun 2024 11:00'],
[45.365866, -72.933780, 'blue', '
165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Mon, 24 Jun 2024 11:00'],
[45.362059, -72.934853, 'blue', '
165.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Mon, 24 Jun 2024 11:00'],
[45.433637, -73.477474, 'green', 'Costco - 163.0 ¢/Litre
Taschereau / Matte
Brossard
Mon, 24 Jun 2024 14:35'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 155.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Mon, 24 Jun 2024 11:00']];
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+");});");
}
}