/****
* 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.21671, -73.732928);
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.495759, -73.610051, 'red', '186.9 ¢/Litre
Cote-des-Neiges / Ridgewood
Côte-des-Neiges
Thu, 02 May 2024 13:16'],
[45.455084, -73.443046, 'red', '185.9 ¢/Litre
Chevrier / Lapinière / Aut 10 (Sortie 11)
Brossard
Wed, 01 May 2024 11:07'],
[45.458915, -73.464943, 'red', '185.9 ¢/Litre
Taschereau / Mario
Brossard
Wed, 01 May 2024 11:06'],
[45.481060, -73.578331, 'red', '184.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Thu, 02 May 2024 13:16'],
[45.481416, -73.577714, 'red', '184.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Wed, 01 May 2024 11:09'],
[45.494571, -73.500633, 'red', '184.9 ¢/Litre
Sir Wilfrid Laurier / Victoria / St Louis
Saint-Lambert
Wed, 01 May 2024 11:04'],
[45.492127, -73.710676, 'red', '184.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Thu, 02 May 2024 13:21'],
[45.421724, -73.635371, 'red', '184.9 ¢/Litre
Airlie / 80e Ave
LaSalle
Wed, 01 May 2024 11:09'],
[45.467640, -73.538519, 'blue', '183.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 02 May 2024 22:26'],
[45.454885, -73.465571, 'blue', '183.9 ¢/Litre
Taschereau / Rome
Brossard
Thu, 02 May 2024 13:10'],
[45.464810, -73.585022, 'blue', '183.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Thu, 02 May 2024 13:12'],
[45.463308, -73.578714, 'blue', '183.9 ¢/Litre
De lEglise / Champlain
Verdun
Thu, 02 May 2024 13:12'],
[45.497098, -73.624101, 'blue', '183.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Thu, 02 May 2024 13:12'],
[45.476861, -73.838663, 'blue', '183.9 ¢/Litre
St Jean / Westminster
Dollard-des-Ormeaux
Thu, 02 May 2024 13:21'],
[45.445923, -73.741216, 'blue', '183.9 ¢/Litre
Dorval / Aut 20
Dorval
Wed, 01 May 2024 11:21'],
[45.474511, -73.608761, 'blue', '183.9 ¢/Litre
Decarie / Sherbrooke
Notre-Dame-de-Grâce
Wed, 01 May 2024 11:08'],
[45.474096, -73.609107, 'blue', '183.9 ¢/Litre
Decarie / Sherbrooke
Notre-Dame-de-Grâce
Wed, 01 May 2024 11:08'],
[45.450633, -73.862039, 'blue', '183.9 ¢/Litre
St Charles / Aut 40
Kirkland
Wed, 01 May 2024 11:20'],
[45.499602, -73.750851, 'blue', '183.9 ¢/Litre
Pitfield / Aut 13 / Valiquette
Saint-Laurent
Wed, 01 May 2024 11:18'],
[45.503398, -73.756933, 'blue', '183.9 ¢/Litre
3550 Boul Pitfield / Salaberry
Pierrefonds
Wed, 01 May 2024 11:19'],
[45.448085, -73.747369, 'blue', '182.9 ¢/Litre
Aut 20 / Fénelon / Côte de Liesse
Dorval
Wed, 01 May 2024 11:19'],
[45.470851, -73.564091, 'blue', '182.9 ¢/Litre
Wellington / Gilberte-Dubé / Henri-Duhamel
Verdun
Thu, 02 May 2024 13:11'],
[45.471666, -73.563345, 'blue', 'Mobil - 182.9 ¢/Litre
3000 Wellington / Gilberte-Dubé / Henri Duhamel
Verdun
Thu, 02 May 2024 13:11'],
[45.458785, -73.821857, 'green', '180.9 ¢/Litre
St-Jean / Hymus
Pointe-Claire
Thu, 02 May 2024 13:18'],
[45.470420, -73.832197, 'green', '180.9 ¢/Litre
St Jean / Devon
Dollard-des-Ormeaux
Thu, 02 May 2024 13:19'],
[45.471133, -73.832636, 'green', '180.9 ¢/Litre
St-Jean / Blue Heaven
Dollard-des-Ormeaux
Thu, 02 May 2024 13:19'],
[45.490275, -73.802855, 'green', '180.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Thu, 02 May 2024 13:20'],
[45.493315, -73.807043, 'green', '180.9 ¢/Litre
Sources / Churchill
Dollard-des-Ormeaux
Thu, 02 May 2024 13:20'],
[45.510830, -73.806914, 'green', '180.9 ¢/Litre
Gouin / Centre Commercial
Roxboro
Wed, 01 May 2024 11:17'],
[45.483465, -73.796180, 'green', '180.9 ¢/Litre
Sources / Brunswick
Dollard-des-Ormeaux
Wed, 01 May 2024 11:18'],
[45.467053, -73.828876, 'green', '180.9 ¢/Litre
St-Jean / Brunswick
Pointe-Claire
Thu, 02 May 2024 13:19'],
[45.514779, -73.719469, 'green', '179.9 ¢/Litre
Henri-Bourassa / Lafrance
Saint-Laurent
Thu, 02 May 2024 13:17'],
[45.501070, -73.632488, 'green', '179.9 ¢/Litre
Côte-des-Neiges / Van Horne
Côte-des-Neiges
Thu, 02 May 2024 13:14'],
[45.462287, -73.453165, 'green', '179.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Thu, 02 May 2024 13:08'],
[45.486768, -73.551440, 'green', 'Costco - 177.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Thu, 02 May 2024 13:10'],
[45.404236, -74.037960, 'green', 'Costco - 175.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Wed, 01 May 2024 11:24'],
[45.433637, -73.477474, 'green', 'Costco - 175.9 ¢/Litre
Taschereau / Matte
Brossard
Thu, 02 May 2024 11:00']];
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+");});");
}
}