/****
* 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.536945, -73.510713);
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.441121, -73.442392, 'red', '177.9 ¢/Litre
101-8075 boul. du Quartier
Brossard
Wed, 15 May 2024 22:42'],
[45.435239, -73.489912, 'red', '177.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Wed, 15 May 2024 22:42'],
[45.578564, -73.575518, 'red', '177.9 ¢/Litre
Bélanger E / lAssomption
Rosemont
Wed, 15 May 2024 22:49'],
[45.406872, -73.497527, 'red', '177.9 ¢/Litre
Taschereau / Salaberry
La Prairie
Wed, 15 May 2024 22:41'],
[45.455084, -73.443046, 'red', '176.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Wed, 15 May 2024 22:41'],
[45.486054, -73.633837, 'red', '176.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Wed, 15 May 2024 21:00'],
[45.485007, -73.632753, 'red', '176.9 ¢/Litre
Decarie / Isabella
Côte-des-Neiges
Wed, 15 May 2024 22:46'],
[45.479640, -73.571470, 'red', '176.9 ¢/Litre
Charlevoix / St-Patrick
Le Sud-Ouest
Wed, 15 May 2024 22:45'],
[45.497098, -73.624101, 'red', '176.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Wed, 15 May 2024 22:45'],
[45.489585, -73.641865, 'red', '176.9 ¢/Litre
Décarie / Van Horne
Côte-des-Neiges
Wed, 15 May 2024 22:48'],
[45.435143, -73.476495, 'red', '176.9 ¢/Litre
Taschereau / Matte
Brossard
Wed, 15 May 2024 22:40'],
[45.431217, -73.618933, 'blue', '175.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Wed, 15 May 2024 22:44'],
[45.495543, -73.655560, 'blue', '174.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Wed, 15 May 2024 22:47'],
[45.538301, -73.480087, 'blue', '174.9 ¢/Litre
Rolland Therrien / Du Lac
Longueuil
Wed, 15 May 2024 22:32'],
[45.547999, -73.495463, 'blue', '174.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Wed, 15 May 2024 22:31'],
[45.355527, -73.297120, 'blue', '174.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Wed, 15 May 2024 22:50'],
[45.535775, -73.666173, 'blue', '174.8 ¢/Litre
lAcadie / Sauvé O
Ahuntsic-Cartierville
Wed, 15 May 2024 22:48'],
[45.420024, -73.486377, 'blue', '172.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Wed, 15 May 2024 22:40'],
[45.414839, -73.485305, 'blue', '172.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Wed, 15 May 2024 22:39'],
[45.433637, -73.477474, 'green', 'Costco - 169.9 ¢/Litre
Taschereau / Matte
Brossard
Wed, 15 May 2024 21:00'],
[45.721626, -73.506924, 'green', 'Costco - 169.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Wed, 15 May 2024 15:14'],
[45.577050, -73.403659, 'green', 'Costco - 168.9 ¢/Litre
635 ch de Touraine
Boucherville
Wed, 15 May 2024 21:00'],
[45.580715, -73.760447, 'green', 'Costco - 167.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Wed, 15 May 2024 19:04'],
[45.486768, -73.551440, 'green', 'Costco - 165.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Wed, 15 May 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+");});");
}
}