/****
* 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.48517, -73.864517);
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.470898, -73.496523, 'red', '177.9 ¢/Litre
Marie Victorin / Provencher
Brossard
Tue, 02 Jul 2024 12:32'],
[45.435239, -73.489912, 'red', '176.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Tue, 02 Jul 2024 10:30'],
[45.496541, -73.484126, 'red', '176.9 ¢/Litre
Taschereau / Mary
Greenfield Park
Tue, 02 Jul 2024 12:31'],
[45.493703, -73.479352, 'red', '176.9 ¢/Litre
Taschereau / Georges
Greenfield Park
Tue, 02 Jul 2024 12:31'],
[45.575639, -73.892358, 'red', '176.9 ¢/Litre
Antoine-Séguin/rue Dubois
Saint-Eustache
Tue, 02 Jul 2024 10:45'],
[45.571185, -73.913286, 'red', '176.9 ¢/Litre
Arthur-Sauvé/Grignon (Hôpital
Saint-Eustache
Tue, 02 Jul 2024 10:46'],
[45.467640, -73.538519, 'red', '176.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Tue, 02 Jul 2024 15:20'],
[45.619613, -73.553837, 'red', '176.9 ¢/Litre
Du Golf / Aut 40
Anjou
Tue, 02 Jul 2024 12:48'],
[45.598602, -73.552882, 'red', '176.9 ¢/Litre
Louis-H-Lafontaine / Aut 25 / Beaubien
Anjou
Tue, 02 Jul 2024 12:48'],
[45.471419, -73.648055, 'red', '176.9 ¢/Litre
Cote St Luc / Cavendish
Notre-Dame-de-Grâce
Tue, 02 Jul 2024 00:30'],
[45.469156, -73.649957, 'red', '176.9 ¢/Litre
Cote St Luc / Montclair
Côte-Saint-Luc
Tue, 02 Jul 2024 00:30'],
[45.468040, -73.638016, 'red', '176.9 ¢/Litre
Somerled / Cavendish
Notre-Dame-de-Grâce
Tue, 02 Jul 2024 00:30'],
[45.452802, -73.572274, 'red', '176.9 ¢/Litre
Verdun / Woodland
Verdun
Tue, 02 Jul 2024 12:34'],
[45.573392, -73.913867, 'red', '176.9 ¢/Litre
Boul Sauvé/Boul. Industriel
Saint-Eustache
Tue, 02 Jul 2024 10:46'],
[45.593235, -73.907617, 'red', '175.9 ¢/Litre
25ième ave
Saint-Eustache
Tue, 02 Jul 2024 10:45'],
[45.595107, -73.511586, 'red', '175.9 ¢/Litre
Notre-Dame / St Donat
Hochelaga-Maisonneuve
Tue, 02 Jul 2024 12:47'],
[45.597322, -73.550109, 'red', '175.9 ¢/Litre
Louis-H.-Lafontaine / Aut 25 / Yves Prévost
Anjou
Tue, 02 Jul 2024 10:30'],
[45.414839, -73.485305, 'blue', '174.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Tue, 02 Jul 2024 00:00'],
[45.420024, -73.486377, 'blue', '174.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Tue, 02 Jul 2024 00:00'],
[45.526139, -73.559993, 'blue', '174.9 ¢/Litre
Papineau / Ontario
Ville-Marie (Montreal)
Tue, 02 Jul 2024 00:30'],
[45.394885, -73.511659, 'blue', '173.9 ¢/Litre
de lIndustrie / Aut 15 (Sortie 44)
Candiac
Tue, 02 Jul 2024 12:33'],
[45.468890, -73.463637, 'blue', '172.9 ¢/Litre
Lapinière / Auteuil
Brossard
Tue, 02 Jul 2024 12:30'],
[45.574931, -73.876109, 'blue', 'Belisle - 172.9 ¢/Litre
St-Laurent
Saint-Eustache
Tue, 02 Jul 2024 10:45'],
[45.644168, -73.513834, 'blue', '171.9 ¢/Litre
Sherbrooke E / St Jean Baptiste
Pointe-aux-Trembles
Tue, 02 Jul 2024 12:46'],
[45.642334, -73.505225, 'blue', '171.9 ¢/Litre
St-jean-Baptiste / Montigny
Pointe-aux-Trembles
Tue, 02 Jul 2024 12:41'],
[45.643553, -73.513845, 'blue', '171.9 ¢/Litre
Sherbrooke E / St-Jean Baptiste
Pointe-aux-Trembles
Tue, 02 Jul 2024 12:45'],
[45.486616, -73.636535, 'blue', '170.9 ¢/Litre
Decarie / Dupuis / Cote Ste Catherine
Côte-des-Neiges
Tue, 02 Jul 2024 02:16'],
[45.536768, -73.499334, 'blue', 'Super Gaz - 170.9 ¢/Litre
Chambly / Le Moyne
Longueuil
Tue, 02 Jul 2024 12:40'],
[45.566713, -73.924678, 'green', 'Belisle - 165.9 ¢/Litre
Industriel / St-Eustache / de la Rivière N
Saint-Eustache
Tue, 02 Jul 2024 10:47'],
[45.568229, -73.924034, 'green', '165.9 ¢/Litre
207 boul industriel
Saint-Eustache
Tue, 02 Jul 2024 10:46'],
[45.607988, -73.584409, 'green', 'Costco - 164.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Tue, 02 Jul 2024 12:44'],
[45.486768, -73.551440, 'green', 'Costco - 164.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Tue, 02 Jul 2024 12:44'],
[45.462287, -73.453165, 'green', '164.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Tue, 02 Jul 2024 12:29'],
[45.433637, -73.477474, 'green', 'Costco - 162.9 ¢/Litre
Taschereau / Matte
Brossard
Tue, 02 Jul 2024 12:28'],
[45.580715, -73.760447, 'green', 'Costco - 162.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Tue, 02 Jul 2024 12:43'],
[45.371582, -73.515440, 'green', 'Costco - 161.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Tue, 02 Jul 2024 12:32'],
[45.404236, -74.037960, 'green', 'Costco - 161.1 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Tue, 02 Jul 2024 12:43']];
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+");});");
}
}