/****
* 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.883371, -73.282908);
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.681034, -73.437497, 'red', '177.9 ¢/Litre
De La Marine / Rte 132
Varennes
Fri, 28 Jun 2024 17:24'],
[45.602901, -73.351848, 'red', '176.9 ¢/Litre
Mteé Ste-Julie / N-P Lapierre
Sainte-Julie
Fri, 28 Jun 2024 17:23'],
[45.576640, -73.446699, 'red', '175.9 ¢/Litre
Mortagne / Parfondeval
Boucherville
Thu, 27 Jun 2024 12:00'],
[45.602682, -73.351633, 'red', '175.9 ¢/Litre
Mtée Ste-Julie/Boul. Lapierre
Sainte-Julie
Thu, 27 Jun 2024 13:58'],
[45.568999, -73.443687, 'red', '174.9 ¢/Litre
Nobel / Volta
Boucherville
Fri, 28 Jun 2024 10:00'],
[45.575375, -73.446954, 'red', '174.9 ¢/Litre
Mortagne / Ampére
Boucherville
Thu, 27 Jun 2024 13:54'],
[45.579334, -73.447128, 'red', '174.9 ¢/Litre
Mortagne / Industriel
Boucherville
Thu, 27 Jun 2024 13:58'],
[45.582704, -73.426126, 'red', '174.9 ¢/Litre
Montarville / Normandie
Boucherville
Thu, 27 Jun 2024 13:57'],
[45.851462, -73.245437, 'blue', '173.9 ¢/Litre
Marie-Victorin / Jacques
Contrecoeur
Fri, 28 Jun 2024 23:07'],
[45.865525, -73.145475, 'blue', '173.9 ¢/Litre
4950 des patriotes
Contrecoeur
Fri, 28 Jun 2024 23:07'],
[45.632293, -73.391157, 'blue', '173.9 ¢/Litre
1459 Lionnel boulet / Ch Energie
Varennes
Fri, 28 Jun 2024 17:22'],
[45.656168, -73.421819, 'blue', '171.9 ¢/Litre
De La Marine / Rte 132
Varennes
Fri, 28 Jun 2024 17:21'],
[46.039688, -73.107455, 'green', '167.9 ¢/Litre
145 Victoria
Sorel-Tracy
Fri, 28 Jun 2024 23:08'],
[46.026678, -73.080791, 'green', '167.9 ¢/Litre
boul. fiset
Sorel-Tracy
Fri, 28 Jun 2024 23:09'],
[46.032765, -73.131538, 'green', '167.9 ¢/Litre
2455 chemin Saint-Roch
Sorel-Tracy
Fri, 28 Jun 2024 23:10'],
[46.037744, -73.098582, 'green', '167.9 ¢/Litre
280 boul. Fiset
Sorel-Tracy
Fri, 28 Jun 2024 23:09'],
[45.606363, -73.103125, 'green', '164.9 ¢/Litre
5 rue St Simon/auto 20/sortie 120
Sainte-Madeleine
Thu, 27 Jun 2024 12:04'],
[45.603946, -73.101863, 'green', '164.9 ¢/Litre
St-Simon / Aut 20 (Sortie 120)
Sainte-Madeleine
Fri, 28 Jun 2024 11:29'],
[45.686705, -73.432357, 'green', '162.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Sat, 29 Jun 2024 09:51'],
[45.577739, -73.405651, 'green', 'Costco - 160.8 ¢/Litre
635 Ch de Touraine
Boucherville
Fri, 28 Jun 2024 17:09'],
[45.577602, -73.405821, 'green', 'Costco - 160.8 ¢/Litre
635 ch de Touraine
Boucherville
Fri, 28 Jun 2024 10:16']];
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+");});");
}
}