/****
* 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.451542, -73.649206);
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.575375, -73.446954, 'red', '
159.9 ¢/Litre
Mortagne / Ampére
Boucherville
Mon, 14 Jul 2025 22:17'],
[45.611373, -73.438346, 'red', '
158.9 ¢/Litre
Montbrun / Des Ateliers
Boucherville
Mon, 14 Jul 2025 21:00'],
[45.567928, -73.450352, 'blue', '
153.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Mon, 14 Jul 2025 22:16'],
[45.576640, -73.446699, 'blue', '
153.9 ¢/Litre
Mortagne / Parfondeval
Boucherville
Mon, 14 Jul 2025 22:17'],
[45.567523, -73.450137, 'blue', '
153.9 ¢/Litre
Jacques Cartier / Du Lac
Longueuil
Mon, 14 Jul 2025 22:16'],
[45.579334, -73.447128, 'blue', '
153.9 ¢/Litre
Mortagne / Industriel
Boucherville
Mon, 14 Jul 2025 22:17'],
[45.511796, -73.439486, 'blue', '
152.9 ¢/Litre
Chambly / Vauquelin
Saint-Hubert
Mon, 14 Jul 2025 22:32'],
[45.519459, -73.457760, 'blue', '
152.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Mon, 14 Jul 2025 22:33'],
[45.476955, -73.429460, 'blue', '
148.9 ¢/Litre
Gaétan Boucher / Payer
Saint-Hubert
Mon, 14 Jul 2025 22:30'],
[45.574931, -73.876109, 'blue', 'Belisle - 148.9 ¢/Litre
St-Laurent
Saint-Eustache
Tue, 15 Jul 2025 11:38'],
[45.569115, -73.760742, 'green', 'Costco - 147.9 ¢/Litre
2999 440 ouest
Laval
Tue, 15 Jul 2025 09:24'],
[45.486768, -73.551440, 'green', 'Costco - 147.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Mon, 14 Jul 2025 19:59'],
[45.475037, -73.358947, 'green', 'Pétrole Maurice - 143.9 ¢/Litre
Chemin Chambly / Montée Daniel
Saint-Hubert
Mon, 14 Jul 2025 22:29'],
[45.371582, -73.515440, 'green', 'Costco - 141.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Mon, 14 Jul 2025 21:00'],
[45.577642, -73.405780, 'green', 'Costco - 141.9 ¢/Litre
635 ch de Tourainei
Boucherville
Mon, 14 Jul 2025 22:18']];
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+");});");
}
}