/****
* 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.650042, -74.082937);
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.492127, -73.710676, 'red', '184.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Thu, 02 May 2024 13:21'],
[45.476861, -73.838663, 'red', '183.9 ¢/Litre
St Jean / Westminster
Dollard-des-Ormeaux
Thu, 02 May 2024 13:21'],
[45.593235, -73.907617, 'blue', '180.9 ¢/Litre
25ième ave
Saint-Eustache
Thu, 02 May 2024 15:42'],
[45.458785, -73.821857, 'blue', '180.9 ¢/Litre
St-Jean / Hymus
Pointe-Claire
Thu, 02 May 2024 13:18'],
[45.575530, -73.874862, 'blue', '180.9 ¢/Litre
25e Avenue / St-Laurent
Saint-Eustache
Thu, 02 May 2024 15:42'],
[45.514779, -73.719469, 'blue', '179.9 ¢/Litre
Henri-Bourassa / Lafrance
Saint-Laurent
Thu, 02 May 2024 13:17'],
[45.490275, -73.802855, 'blue', '179.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Fri, 03 May 2024 23:10'],
[45.509854, -73.687819, 'blue', '179.9 ¢/Litre
Marcel-Laurin / Côte-Vertu
Saint-Laurent
Fri, 03 May 2024 23:10'],
[45.502091, -73.815540, 'blue', '179.9 ¢/Litre
Sources / Anselme Lavigne
Dollard-des-Ormeaux
Fri, 03 May 2024 23:10'],
[45.493315, -73.807043, 'blue', '179.9 ¢/Litre
Sources / Churchill
Dollard-des-Ormeaux
Fri, 03 May 2024 23:09'],
[45.467053, -73.828876, 'blue', '179.9 ¢/Litre
St-Jean / Brunswick
Pointe-Claire
Fri, 03 May 2024 23:09'],
[45.471133, -73.832636, 'blue', '179.9 ¢/Litre
St-Jean / Blue Heaven
Dollard-des-Ormeaux
Fri, 03 May 2024 23:07'],
[45.566892, -73.907459, 'blue', '178.9 ¢/Litre
Arthur-Sauvé / Pie-XII / Aut 640
Saint-Eustache
Thu, 02 May 2024 15:41'],
[45.539876, -73.643047, 'blue', '178.9 ¢/Litre
Crémazie / St Urbain
Ahuntsic-Cartierville
Thu, 02 May 2024 13:14'],
[45.574931, -73.876109, 'blue', 'Belisle - 178.9 ¢/Litre
St-Laurent
Saint-Eustache
Fri, 03 May 2024 11:14'],
[45.554884, -73.668566, 'blue', '177.9 ¢/Litre
Henri-Bourassa E / Berri / Lajeunesse
Ahuntsic-Cartierville
Thu, 02 May 2024 13:13'],
[45.503398, -73.756933, 'green', '176.9 ¢/Litre
3550 Boul Pitfield / Salaberry
Pierrefonds
Fri, 03 May 2024 23:06'],
[45.565770, -73.647547, 'green', '175.9 ¢/Litre
Papineau / Sauvé E
Ahuntsic-Cartierville
Fri, 03 May 2024 21:30'],
[45.575639, -73.892358, 'green', '175.9 ¢/Litre
Antoine-Séguin/rue Dubois
Saint-Eustache
Thu, 02 May 2024 15:42'],
[45.470420, -73.832197, 'green', '174.9 ¢/Litre
St Jean / Devon
Dollard-des-Ormeaux
Fri, 03 May 2024 23:05'],
[45.580715, -73.760447, 'green', 'Costco - 174.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Thu, 02 May 2024 22:24'],
[45.721626, -73.506924, 'green', 'Costco - 174.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Fri, 03 May 2024 17:12'],
[45.574968, -73.742588, 'green', '174.0 ¢/Litre
Le Corbusier
Laval
Thu, 02 May 2024 10:08']];
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+");});");
}
}