/****
* 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.233375, -73.566256);
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.432974, -73.855976, 'red', '180.9 ¢/Litre
Elm / Allancroft
Beaconsfield
Tue, 04 Jun 2024 12:42'],
[45.319675, -73.739758, 'red', '179.9 ¢/Litre
676 St-Jean-Baptiste
Mercier
Mon, 03 Jun 2024 02:58'],
[45.435143, -73.476495, 'blue', '173.9 ¢/Litre
Taschereau / Matte
Brossard
Tue, 04 Jun 2024 10:00'],
[45.496989, -73.447439, 'blue', '172.9 ¢/Litre
Soucy / Maricourt
Saint-Hubert
Tue, 04 Jun 2024 12:56'],
[45.506039, -73.430198, 'blue', '172.9 ¢/Litre
Cousineau / Chambly
Saint-Hubert
Tue, 04 Jun 2024 12:57'],
[45.502445, -73.426215, 'blue', '172.9 ¢/Litre
5175 Cousineau / Perras
Saint-Hubert
Tue, 04 Jun 2024 12:57'],
[45.420024, -73.486377, 'blue', '172.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Tue, 04 Jun 2024 12:58'],
[45.467640, -73.538519, 'blue', '172.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Tue, 04 Jun 2024 18:34'],
[45.501483, -73.423506, 'blue', '172.9 ¢/Litre
Cousineau / Montée St-Hubert
Saint-Hubert
Tue, 04 Jun 2024 12:58'],
[45.470437, -73.495625, 'blue', '172.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Tue, 04 Jun 2024 12:56'],
[45.470898, -73.496523, 'blue', '172.9 ¢/Litre
Marie Victorin / Provencher
Brossard
Tue, 04 Jun 2024 12:53'],
[45.494571, -73.500633, 'blue', '172.9 ¢/Litre
Sir Wilfrid Laurier / Victoria / St Louis
Saint-Lambert
Mon, 03 Jun 2024 01:00'],
[45.493703, -73.479352, 'blue', '172.9 ¢/Litre
Taschereau / Georges
Greenfield Park
Mon, 03 Jun 2024 01:00'],
[45.496541, -73.484126, 'blue', '172.9 ¢/Litre
Taschereau / Mary
Greenfield Park
Mon, 03 Jun 2024 01:00'],
[45.452802, -73.572274, 'blue', '172.9 ¢/Litre
Verdun / Woodland
Verdun
Tue, 04 Jun 2024 13:08'],
[45.463450, -73.578391, 'blue', '172.9 ¢/Litre
1125 Ave de lEglise & Rue Cool
Verdun
Tue, 04 Jun 2024 13:08'],
[45.464810, -73.585022, 'blue', '172.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Tue, 04 Jun 2024 13:09'],
[45.483866, -73.579463, 'blue', '172.9 ¢/Litre
Atwater / St Jacques
Le Sud-Ouest
Tue, 04 Jun 2024 13:07'],
[45.454885, -73.465571, 'blue', '172.9 ¢/Litre
Taschereau / Rome
Brossard
Mon, 03 Jun 2024 11:15'],
[45.408875, -73.472737, 'blue', '172.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Mon, 03 Jun 2024 11:14'],
[45.493232, -73.709000, 'blue', '172.9 ¢/Litre
Côte Vertu / Begin
Saint-Laurent
Tue, 04 Jun 2024 13:12'],
[45.486054, -73.633837, 'blue', '172.9 ¢/Litre
Décarie / Edouard Montpetit / Lacombe
Côte-des-Neiges
Mon, 03 Jun 2024 11:19'],
[45.486616, -73.636535, 'blue', '172.9 ¢/Litre
Decarie / Dupuis / Cote Ste Catherine
Côte-des-Neiges
Mon, 03 Jun 2024 11:18'],
[45.492127, -73.710676, 'blue', '172.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Tue, 04 Jun 2024 13:13'],
[45.474096, -73.609107, 'blue', '171.9 ¢/Litre
Decarie / Sherbrooke
Notre-Dame-de-Grâce
Mon, 03 Jun 2024 10:00'],
[45.652417, -73.536275, 'blue', '171.9 ¢/Litre
Henri-Bourassa / St Jean Baptiste
Montréal
Tue, 04 Jun 2024 11:30'],
[45.437545, -73.691945, 'blue', '171.9 ¢/Litre
32e Ave / Remembrance
Lachine
Tue, 04 Jun 2024 12:00'],
[45.445236, -73.438325, 'blue', '171.9 ¢/Litre
Leduc / Lepage
Brossard
Tue, 04 Jun 2024 11:00'],
[45.421724, -73.635371, 'blue', '171.4 ¢/Litre
Airlie / 80e Ave
LaSalle
Mon, 03 Jun 2024 11:17'],
[45.435239, -73.489912, 'blue', '170.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Mon, 03 Jun 2024 10:00'],
[45.414839, -73.485305, 'blue', '169.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Mon, 03 Jun 2024 11:13'],
[45.313099, -73.228636, 'blue', 'Pétroles Trudo - 169.9 ¢/Litre
Rte 104
Mont-Saint-Grégoire
Mon, 03 Jun 2024 11:05'],
[45.447681, -73.609652, 'blue', '167.9 ¢/Litre
Boulevard Angrigon / Boulevard Newman
LaSalle
Mon, 03 Jun 2024 13:45'],
[45.439289, -73.621925, 'blue', '166.9 ¢/Litre
Lapierre / Newman
LaSalle
Tue, 04 Jun 2024 11:00'],
[45.431217, -73.618933, 'blue', '166.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Tue, 04 Jun 2024 13:06'],
[45.471666, -73.563345, 'blue', 'Mobil - 166.9 ¢/Litre
3000 Wellington / Gilberte-Dubé / Henri Duhamel
Verdun
Mon, 03 Jun 2024 09:00'],
[45.448085, -73.747369, 'green', '165.9 ¢/Litre
Aut 20 / Fénelon / Côte de Liesse
Dorval
Tue, 04 Jun 2024 13:10'],
[45.306225, -73.283867, 'green', '165.9 ¢/Litre
Industriel/St Jacques
Saint-Jean-sur-Richelieu
Mon, 03 Jun 2024 13:52'],
[45.470785, -73.468103, 'green', '164.3 ¢/Litre
Taschereau / Lapiniére
Brossard
Tue, 04 Jun 2024 11:00'],
[45.486768, -73.551440, 'green', 'Costco - 163.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Tue, 04 Jun 2024 13:05'],
[45.314787, -73.264700, 'green', '163.9 ¢/Litre
Séminaire / St-Joseph
Saint-Jean-sur-Richelieu
Tue, 04 Jun 2024 08:09'],
[45.342527, -73.302757, 'green', '161.9 ¢/Litre
Rue Bernier / Rue Pierre-Brosseau
Saint-Jean-sur-Richelieu
Tue, 04 Jun 2024 13:05'],
[45.433637, -73.477474, 'green', 'Costco - 161.9 ¢/Litre
Taschereau / Matte
Brossard
Tue, 04 Jun 2024 13:30'],
[45.434703, -73.476459, 'green', 'Costco - 161.9 ¢/Litre
Bld. Matte / Bld. Taschereau
Brossard
Tue, 04 Jun 2024 09:40'],
[45.434703, -73.476459, 'green', 'Costco - 161.9 ¢/Litre
Boul. Taschereau & Matte
Brossard
Mon, 03 Jun 2024 20:59'],
[45.371582, -73.515440, 'green', 'Costco - 160.5 ¢/Litre
Strasbourg / Sardaigne
Candiac
Tue, 04 Jun 2024 13:17'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 160.3 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Mon, 03 Jun 2024 19:52'],
[45.475037, -73.358947, 'green', 'Pétrole Maurice - 159.9 ¢/Litre
Chemin Chambly / Montée Daniel
Saint-Hubert
Tue, 04 Jun 2024 13:03'],
[45.355527, -73.297120, 'green', '159.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Tue, 04 Jun 2024 13:04'],
[45.333285, -73.294644, 'green', '159.9 ¢/Litre
Omer-Marcil / Alexis Lebert
Saint-Jean-sur-Richelieu
Mon, 03 Jun 2024 13:51'],
[45.352015, -73.293630, 'green', '159.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Tue, 04 Jun 2024 13:03'],
[45.338756, -73.286105, 'green', '159.9 ¢/Litre
1315 rue Douglas
Saint-Jean-sur-Richelieu
Mon, 03 Jun 2024 11:20'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 156.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Tue, 04 Jun 2024 13:01']];
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+");});");
}
}