/****
* 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.415321, -73.349289);
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 12:16'],
[45.492127, -73.710676, 'red', '184.9 ¢/Litre
Côte Vertu / Bégin
Saint-Laurent
Thu, 02 May 2024 12:21'],
[45.481060, -73.578331, 'red', '184.9 ¢/Litre
Notre-Dame / Atwater
Le Sud-Ouest
Thu, 02 May 2024 12:16'],
[45.616908, -73.455931, 'red', '184.9 ¢/Litre
Marie Victorin / De Muy
Boucherville
Thu, 02 May 2024 12:05'],
[45.467640, -73.538519, 'red', '183.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Thu, 02 May 2024 12:09'],
[45.496989, -73.447439, 'red', '183.9 ¢/Litre
Soucy / Maricourt
Saint-Hubert
Thu, 02 May 2024 12:07'],
[45.454885, -73.465571, 'red', '183.9 ¢/Litre
Taschereau / Rome
Brossard
Thu, 02 May 2024 12:10'],
[45.463308, -73.578714, 'red', '183.9 ¢/Litre
De lEglise / Champlain
Verdun
Thu, 02 May 2024 12:12'],
[45.464810, -73.585022, 'red', '183.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Thu, 02 May 2024 12:12'],
[45.614041, -73.442844, 'red', '183.9 ¢/Litre
Montbrun / Général Vanier
Boucherville
Thu, 02 May 2024 12:05'],
[45.497098, -73.624101, 'red', '183.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Thu, 02 May 2024 12:12'],
[45.362059, -72.934853, 'blue', '182.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Thu, 02 May 2024 12:29'],
[45.580515, -73.214191, 'blue', '182.9 ¢/Litre
St-Jean Baptiste / Yvon lHeureux
Beloeil
Thu, 02 May 2024 12:22'],
[45.565046, -73.587783, 'blue', '182.9 ¢/Litre
Pie IX / Bélanger
Villeray-Saint-Michel
Thu, 02 May 2024 12:15'],
[45.364946, -72.934102, 'blue', '182.9 ¢/Litre
Rte 235 / Aut 10 (Sortie 55)
LAnge-Gardien (Montérégie)
Thu, 02 May 2024 12:30'],
[0.000000, 0.000000, 'blue', '182.9 ¢/Litre
Rte 235 - Sortie 55 Aut 10
LAnge-Gardien (Montérégie)
Thu, 02 May 2024 12:30'],
[45.471666, -73.563345, 'blue', 'Mobil - 182.9 ¢/Litre
3000 Wellington / Gilberte-Dubé / Henri Duhamel
Verdun
Thu, 02 May 2024 12:11'],
[45.470851, -73.564091, 'blue', '182.9 ¢/Litre
Wellington / Gilberte-Dubé / Henri-Duhamel
Verdun
Thu, 02 May 2024 12:11'],
[45.564858, -73.587190, 'blue', '182.4 ¢/Litre
Pie IX / Bélanger
Rosemont
Thu, 02 May 2024 12:15'],
[45.582704, -73.426126, 'blue', '181.9 ¢/Litre
Montarville / Normandie
Boucherville
Thu, 02 May 2024 12:04'],
[45.546297, -73.586458, 'blue', '181.9 ¢/Litre
Rosemont / Iberville
Rosemont
Thu, 02 May 2024 12:15'],
[45.514231, -73.132863, 'blue', '180.9 ¢/Litre
Principale / Rouville
Saint-Jean-Baptiste
Thu, 02 May 2024 15:15'],
[45.501070, -73.632488, 'blue', '179.9 ¢/Litre
Côte-des-Neiges / Van Horne
Côte-des-Neiges
Thu, 02 May 2024 12:14'],
[45.462287, -73.453165, 'blue', '179.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Thu, 02 May 2024 12:08'],
[45.502445, -73.426215, 'blue', '179.9 ¢/Litre
5175 Cousineau / Perras
Saint-Hubert
Thu, 02 May 2024 12:06'],
[45.514779, -73.719469, 'blue', '179.9 ¢/Litre
Henri-Bourassa / Lafrance
Saint-Laurent
Thu, 02 May 2024 12:17'],
[45.501483, -73.423506, 'blue', '179.9 ¢/Litre
Cousineau / Montée St-Hubert
Saint-Hubert
Thu, 02 May 2024 12:07'],
[45.503734, -73.420799, 'blue', '179.9 ¢/Litre
5335 Ch Chambly / Gelineau
Saint-Hubert
Thu, 02 May 2024 12:07'],
[45.607988, -73.584409, 'blue', 'Costco - 178.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Thu, 02 May 2024 12:17'],
[45.539876, -73.643047, 'blue', '178.9 ¢/Litre
Crémazie / St Urbain
Ahuntsic-Cartierville
Thu, 02 May 2024 12:14'],
[45.486768, -73.551440, 'blue', 'Costco - 177.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Thu, 02 May 2024 12:10'],
[45.554884, -73.668566, 'blue', '177.9 ¢/Litre
Henri-Bourassa E / Berri / Lajeunesse
Ahuntsic-Cartierville
Thu, 02 May 2024 12:13'],
[45.433637, -73.477474, 'green', 'Costco - 175.9 ¢/Litre
Taschereau / Matte
Brossard
Thu, 02 May 2024 10:00'],
[45.577050, -73.403659, 'green', 'Costco - 174.9 ¢/Litre
635 ch de Touraine
Boucherville
Thu, 02 May 2024 12:03'],
[45.439112, -73.190249, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
chemin chambly
Saint-Hubert
Thu, 02 May 2024 06:52'],
[45.475969, -73.361190, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
Chambly / Daniel
Saint-Hubert
Thu, 02 May 2024 06:52'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
8855 Ch de Chambly
Saint-Hubert
Thu, 02 May 2024 06:52'],
[45.475831, -73.361552, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
8855 ch chambly
Longuueil
Thu, 02 May 2024 06:52'],
[45.686705, -73.432357, 'green', '171.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Thu, 02 May 2024 06:52'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 169.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Thu, 02 May 2024 06: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+");});");
}
}