/****
* 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.263399, -74.023898);
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.458151, -73.864134, 'red', '
176.9 ¢/Litre
St-Charles / Du Barry
Kirkland
Mon, 24 Jun 2024 22:54'],
[45.443789, -73.647980, 'red', '
176.9 ¢/Litre
St Jacques / St Pierre
Lachine
Mon, 24 Jun 2024 11:30'],
[45.437545, -73.691945, 'red', '
176.4 ¢/Litre
32e Ave / Remembrance
Lachine
Mon, 24 Jun 2024 22:00'],
[45.560186, -73.887346, 'blue', '
173.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Tue, 25 Jun 2024 10:11'],
[45.571185, -73.913286, 'blue', '
173.9 ¢/Litre
Arthur-Sauvé/Grignon (Hôpital
Saint-Eustache
Mon, 24 Jun 2024 10:26'],
[45.573392, -73.913867, 'blue', '
173.9 ¢/Litre
Boul Sauvé/Boul. Industriel
Saint-Eustache
Mon, 24 Jun 2024 10:26'],
[45.568407, -73.887552, 'blue', '
173.9 ¢/Litre
Saint-Laurent / boul. goyer
Saint-Eustache
Mon, 24 Jun 2024 10:25'],
[45.575639, -73.892358, 'blue', '
173.9 ¢/Litre
Antoine-Séguin/rue Dubois
Saint-Eustache
Mon, 24 Jun 2024 10:27'],
[45.593235, -73.907617, 'blue', '
173.9 ¢/Litre
25ième ave
Saint-Eustache
Mon, 24 Jun 2024 10:27'],
[45.439289, -73.621925, 'blue', '
172.9 ¢/Litre
Lapierre / Newman
LaSalle
Tue, 25 Jun 2024 16:28'],
[45.432706, -73.646336, 'blue', '
172.9 ¢/Litre
Lafleur / Clément
LaSalle
Tue, 25 Jun 2024 16:27'],
[45.436609, -73.625192, 'blue', '
172.9 ¢/Litre
Newman / Thierry
LaSalle
Tue, 25 Jun 2024 16:26'],
[45.574931, -73.876109, 'blue', 'Belisle - 172.9 ¢/Litre
St-Laurent
Saint-Eustache
Tue, 25 Jun 2024 10:11'],
[45.432549, -73.628853, 'blue', '
172.9 ¢/Litre
8390 BOUL NEWMAN
LaSalle
Tue, 25 Jun 2024 16:27'],
[45.552447, -73.893806, 'blue', '
171.9 ¢/Litre
7 chemin dOka
Saint-Eustache
Mon, 24 Jun 2024 10:27'],
[45.431217, -73.618933, 'blue', '
169.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Tue, 25 Jun 2024 16:26'],
[45.432634, -73.637114, 'blue', '
169.9 ¢/Litre
Dollard / Bédard
LaSalle
Tue, 25 Jun 2024 16:25'],
[45.421724, -73.635371, 'blue', '
169.9 ¢/Litre
Airlie / 80e Ave
LaSalle
Tue, 25 Jun 2024 16:26'],
[45.450633, -73.862039, 'blue', '
169.9 ¢/Litre
St Charles / Aut 40
Kirkland
Mon, 24 Jun 2024 23:21'],
[45.445923, -73.741216, 'green', '
168.9 ¢/Litre
Dorval / Aut 20
Dorval
Mon, 24 Jun 2024 21:00'],
[45.490275, -73.802855, 'green', '
164.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Mon, 24 Jun 2024 21:00'],
[45.493315, -73.807043, 'green', '
164.9 ¢/Litre
Sources / Churchill
Dollard-des-Ormeaux
Mon, 24 Jun 2024 21:00'],
[45.404236, -74.037960, 'green', 'Costco - 161.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Tue, 25 Jun 2024 16:22']];
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+");});");
}
}