/****
* 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.833373, -73.349577);
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', '
175.9 ¢/Litre
De La Marine / Rte 132
Varennes
Thu, 20 Jun 2024 17:07'],
[45.563198, -73.206169, 'red', '
175.9 ¢/Litre
Blv. Laurier/coin Duvernay
Beloeil
Fri, 21 Jun 2024 14:49'],
[45.611688, -73.582081, 'red', '
174.9 ¢/Litre
Louis-H. Lafontaine (Aut 25) / Bombardier
Anjou
Thu, 20 Jun 2024 17:31'],
[45.542687, -73.455710, 'red', '
174.9 ¢/Litre
Jacques-Cartier-E/ Du Tremblay
Longueuil
Thu, 20 Jun 2024 17:13'],
[45.611088, -73.582499, 'red', '
173.9 ¢/Litre
Louis-H.-Lafontaine / Aut 25 / Bombardier
Anjou
Thu, 20 Jun 2024 17:30'],
[45.610827, -73.608259, 'red', '
173.9 ¢/Litre
Henri Bourassa / Langelier
Montréal-Nord
Thu, 20 Jun 2024 17:30'],
[45.596853, -73.522632, 'blue', '
171.9 ¢/Litre
Hochelaga / St-Émile / Lapointe
Hochelaga-Maisonneuve
Thu, 20 Jun 2024 17:12'],
[45.598602, -73.552882, 'blue', '
170.9 ¢/Litre
Louis-H-Lafontaine / Aut 25 / Beaubien
Anjou
Thu, 20 Jun 2024 17:29'],
[45.577211, -73.332673, 'blue', '
169.9 ¢/Litre
Raymond Blais / Nobel
Sainte-Julie
Thu, 20 Jun 2024 17:11'],
[45.558456, -73.200076, 'blue', '
169.9 ¢/Litre
Ch des Patriotes S / Des Trentes
Mont-Saint-Hilaire
Thu, 20 Jun 2024 17:16'],
[45.547614, -73.206221, 'blue', '
169.9 ¢/Litre
539 Chemin des Patriotes
Otterburn Park
Thu, 20 Jun 2024 17:17'],
[45.542115, -73.187408, 'blue', '
168.9 ¢/Litre
Ozias-Leduc / De La Montagne
Otterburn Park
Thu, 20 Jun 2024 17:15'],
[45.542527, -73.187177, 'blue', '
168.9 ¢/Litre
Ozias-Leduc / de la Montagne
Otterburn Park
Thu, 20 Jun 2024 17:16'],
[45.540392, -73.368003, 'blue', '
167.9 ¢/Litre
Montarville / Parent / Aut 30 (Sortie 121)
Saint-Bruno-de-Montarville
Thu, 20 Jun 2024 17:10'],
[45.586172, -73.540959, 'blue', '
166.9 ¢/Litre
Sherbrooke / Haig
Hochelaga-Maisonneuve
Thu, 20 Jun 2024 17:27'],
[45.614041, -73.442844, 'blue', '
166.9 ¢/Litre
Montbrun / Général Vanier
Boucherville
Thu, 20 Jun 2024 17:07'],
[45.576640, -73.446699, 'green', '
165.9 ¢/Litre
Mortagne / Parfondeval
Boucherville
Thu, 20 Jun 2024 20:00'],
[45.582704, -73.426126, 'green', '
165.9 ¢/Litre
Montarville / Normandie
Boucherville
Thu, 20 Jun 2024 22:35'],
[45.607988, -73.584409, 'green', 'Costco - 163.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Fri, 21 Jun 2024 11:31'],
[45.577050, -73.403659, 'green', 'Costco - 158.9 ¢/Litre
635 ch de Touraine
Boucherville
Thu, 20 Jun 2024 17:08'],
[45.521868, -73.463538, 'green', '
158.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Thu, 20 Jun 2024 17:09'],
[45.519459, -73.457760, 'green', '
158.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Thu, 20 Jun 2024 20:30'],
[45.518884, -73.456728, 'green', '
158.9 ¢/Litre
Chambly / Des Ormeaux
Longueuil
Thu, 20 Jun 2024 20: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+");});");
}
}