/****
* 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.431227, -73.668823);
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.375490, -73.368060, 'red', '185.9 ¢/Litre
1115 Blvd Saint-Luc/des Pins
Saint-Philippe
Fri, 03 May 2024 22:56'],
[45.377717, -73.373281, 'blue', '179.9 ¢/Litre
1149 Boul.St-Luc / Ruisseau Desnoyers
Saint-Jean-sur-Richelieu
Fri, 03 May 2024 22:55'],
[45.520053, -73.318720, 'blue', '179.9 ¢/Litre
Sir Wilfrid Laurier / de Boucherville
Saint-Bruno-de-Montarville
Fri, 03 May 2024 22:55'],
[45.538301, -73.480087, 'blue', '179.9 ¢/Litre
Rolland Therrien / Du Lac
Longueuil
Fri, 03 May 2024 21:30'],
[45.471419, -73.648055, 'blue', '179.9 ¢/Litre
Cote St Luc / Cavendish
Notre-Dame-de-Grâce
Fri, 03 May 2024 23:05'],
[45.467053, -73.828876, 'blue', '179.9 ¢/Litre
St-Jean / Brunswick
Pointe-Claire
Fri, 03 May 2024 23:09'],
[45.493315, -73.807043, 'blue', '179.9 ¢/Litre
Sources / Churchill
Dollard-des-Ormeaux
Fri, 03 May 2024 23:09'],
[45.502091, -73.815540, 'blue', '179.9 ¢/Litre
Sources / Anselme Lavigne
Dollard-des-Ormeaux
Fri, 03 May 2024 23:10'],
[45.471133, -73.832636, 'blue', '179.9 ¢/Litre
St-Jean / Blue Heaven
Dollard-des-Ormeaux
Fri, 03 May 2024 23:07'],
[45.509854, -73.687819, 'blue', '179.9 ¢/Litre
Marcel-Laurin / Côte-Vertu
Saint-Laurent
Fri, 03 May 2024 23:10'],
[45.490275, -73.802855, 'blue', '179.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Fri, 03 May 2024 23:10'],
[45.592500, -73.342699, 'blue', '179.3 ¢/Litre
Auto20/sortie 102
Sainte-Julie
Fri, 03 May 2024 06:49'],
[45.455117, -73.632777, 'blue', '178.9 ¢/Litre
St-Jacques / St-Anne-de-Bellevue
Notre-Dame-de-Grâce
Fri, 03 May 2024 23:03'],
[45.490100, -73.567215, 'blue', '178.9 ¢/Litre
Guy / Notre Dame O.
Le Sud-Ouest
Fri, 03 May 2024 22:00'],
[45.574931, -73.876109, 'blue', 'Belisle - 178.9 ¢/Litre
St-Laurent
Saint-Eustache
Fri, 03 May 2024 11:14'],
[45.547999, -73.495463, 'blue', '177.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Fri, 03 May 2024 21:30'],
[45.582704, -73.426126, 'blue', '177.9 ¢/Litre
Montarville / Normandie
Boucherville
Fri, 03 May 2024 22:49'],
[45.470785, -73.468103, 'blue', '177.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Fri, 03 May 2024 22:52'],
[45.481980, -73.464589, 'blue', '177.5 ¢/Litre
Taschereau / Adam
Greenfield Park
Fri, 03 May 2024 22:51'],
[45.476955, -73.429460, 'blue', '177.5 ¢/Litre
Gaétan Boucher / Payer
Saint-Hubert
Fri, 03 May 2024 22:51'],
[45.503398, -73.756933, 'blue', '176.9 ¢/Litre
3550 Boul Pitfield / Salaberry
Pierrefonds
Fri, 03 May 2024 23:06'],
[45.565770, -73.647547, 'blue', '175.9 ¢/Litre
Papineau / Sauvé E
Ahuntsic-Cartierville
Fri, 03 May 2024 21:30'],
[45.519459, -73.457760, 'blue', '174.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Fri, 03 May 2024 22:58'],
[45.577050, -73.403659, 'blue', 'Costco - 174.9 ¢/Litre
635 ch de Touraine
Boucherville
Fri, 03 May 2024 22:49'],
[45.721626, -73.506924, 'blue', 'Costco - 174.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Fri, 03 May 2024 17:12'],
[45.542687, -73.455710, 'blue', '174.9 ¢/Litre
Jacques-Cartier-E/ Du Tremblay
Longueuil
Fri, 03 May 2024 21:00'],
[45.511796, -73.439486, 'blue', '174.9 ¢/Litre
Chambly / Vauquelin
Saint-Hubert
Fri, 03 May 2024 22:59'],
[45.518884, -73.456728, 'blue', '174.9 ¢/Litre
Chambly / Des Ormeaux
Longueuil
Fri, 03 May 2024 22:59'],
[45.529366, -73.481586, 'blue', '174.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Fri, 03 May 2024 22:57'],
[45.470420, -73.832197, 'blue', '174.9 ¢/Litre
St Jean / Devon
Dollard-des-Ormeaux
Fri, 03 May 2024 23:05'],
[45.607988, -73.584409, 'green', 'Costco - 173.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Fri, 03 May 2024 23:02'],
[45.306225, -73.283867, 'green', '173.9 ¢/Litre
Industriel/St Jacques
Saint-Jean-sur-Richelieu
Fri, 03 May 2024 11:12'],
[45.433637, -73.477474, 'green', 'Costco - 173.0 ¢/Litre
Taschereau / Matte
Brossard
Fri, 03 May 2024 23:41'],
[45.521714, -73.463444, 'green', '172.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Fri, 03 May 2024 22:57'],
[45.352015, -73.293630, 'green', '172.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Fri, 03 May 2024 22:54'],
[45.521868, -73.463538, 'green', '172.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Fri, 03 May 2024 22:56'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 170.9 ¢/Litre
8855 ch chambly
Longuueil
Fri, 03 May 2024 15:45'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 170.9 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Fri, 03 May 2024 15:45'],
[45.686705, -73.432357, 'green', '170.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Fri, 03 May 2024 16:15'],
[45.475969, -73.361190, 'green', 'Pétrole Maurice - 170.9 ¢/Litre
Chambly / Daniel
Saint-Hubert
Fri, 03 May 2024 15:45'],
[45.439112, -73.190249, 'green', 'Pétrole Maurice - 170.9 ¢/Litre
chemin chambly
Saint-Hubert
Fri, 03 May 2024 15:45'],
[45.355527, -73.297120, 'green', '169.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Fri, 03 May 2024 21:00'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 168.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Fri, 03 May 2024 22:52']];
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+");});");
}
}