/****
* 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.183375, -73.399584);
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.467640, -73.538519, 'red', '185.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Tue, 30 Apr 2024 19:48'],
[45.464810, -73.585022, 'red', '185.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Sun, 28 Apr 2024 23:29'],
[45.439289, -73.621925, 'red', '185.9 ¢/Litre
Lapierre / Newman
LaSalle
Sun, 28 Apr 2024 23:29'],
[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.408970, -73.472702, 'red', '185.9 ¢/Litre
St-Jean / Palerme
La Prairie
Sun, 28 Apr 2024 23:26'],
[45.456332, -73.415714, 'red', '185.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Sun, 28 Apr 2024 21:00'],
[45.454885, -73.465571, 'red', '185.9 ¢/Litre
Taschereau / Rome
Brossard
Wed, 01 May 2024 11:06'],
[45.481416, -73.577714, 'red', '184.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Wed, 01 May 2024 11:09'],
[45.421724, -73.635371, 'red', '184.9 ¢/Litre
Airlie / 80e Ave
LaSalle
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.406872, -73.497527, 'red', '184.9 ¢/Litre
Taschereau / Salaberry
La Prairie
Sun, 28 Apr 2024 23:25'],
[45.414839, -73.485305, 'red', '184.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Sun, 28 Apr 2024 23:25'],
[45.483866, -73.579463, 'red', '184.9 ¢/Litre
Atwater / St Jacques
Le Sud-Ouest
Sun, 28 Apr 2024 23:29'],
[45.420024, -73.486377, 'red', '182.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Sun, 28 Apr 2024 23:24'],
[45.400803, -73.550399, 'red', '180.9 ¢/Litre
Marie-Victorin / des Cascades
Sainte-Catherine
Sun, 28 Apr 2024 23:28'],
[45.436609, -73.625192, 'red', '179.9 ¢/Litre
Newman / Thierry
LaSalle
Sun, 28 Apr 2024 23:28'],
[45.452430, -73.301341, 'blue', '179.9 ¢/Litre
930 Périgny / Brassard
Chambly
Wed, 01 May 2024 14:00'],
[45.503734, -73.420799, 'blue', '179.9 ¢/Litre
5335 Ch Chambly / Gelineau
Saint-Hubert
Wed, 01 May 2024 09:30'],
[45.431217, -73.618933, 'red', '179.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Sun, 28 Apr 2024 23:27'],
[45.502445, -73.426215, 'blue', '178.9 ¢/Litre
5175 Cousineau / Perras
Saint-Hubert
Wed, 01 May 2024 10:00'],
[45.417250, -73.497849, 'red', '178.9 ¢/Litre
St-Henri / Aut 15
La Prairie
Sun, 28 Apr 2024 23:23'],
[45.486768, -73.551440, 'blue', 'Costco - 177.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Wed, 01 May 2024 11:07'],
[45.462287, -73.453165, 'blue', '177.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Wed, 01 May 2024 11:05'],
[45.443962, -73.246705, 'blue', '176.9 ¢/Litre
510 Blvd Richelieu / Ch des Patriotes
Richelieu
Wed, 01 May 2024 11:16'],
[45.352015, -73.293630, 'green', '175.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Wed, 01 May 2024 11:16'],
[45.475037, -73.358947, 'green', 'Pétrole Maurice - 173.9 ¢/Litre
Chemin Chambly / Montée Daniel
Saint-Hubert
Tue, 30 Apr 2024 07:57'],
[45.439112, -73.190249, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
chemin chambly
Saint-Hubert
Wed, 01 May 2024 07:27'],
[45.475969, -73.361190, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
Chambly / Daniel
Saint-Hubert
Wed, 01 May 2024 07:27'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Wed, 01 May 2024 07:27'],
[45.338756, -73.286105, 'green', '172.9 ¢/Litre
1315 rue Douglas
Saint-Jean-sur-Richelieu
Wed, 01 May 2024 11:15'],
[45.121098, -72.990873, 'green', '172.9 ¢/Litre
Principale / Philippe-Coté
Bedford
Wed, 01 May 2024 11:33'],
[45.355527, -73.297120, 'green', '171.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Wed, 01 May 2024 11:15'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 169.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Wed, 01 May 2024 15:59']];
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+");});");
}
}