/****
* 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=e *
****/
function mapload() {
var latlng = new google.maps.LatLng(45.605755, -73.428498);
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.483465, -73.796180, 'red', '180.9 ¢/Litre
Sources / Brunswick
Dollard-des-Ormeaux
Wed, 22 May 2024 09:26'],
[45.767198, -73.444897, 'red', '179.9 ¢/Litre
Valmont / Aut 40
Repentigny
Wed, 22 May 2024 09:55'],
[45.470437, -73.495625, 'red', '179.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Wed, 22 May 2024 07:30'],
[45.614041, -73.442844, 'red', '179.9 ¢/Litre
Montbrun / Général Vanier
Boucherville
Wed, 22 May 2024 08:00'],
[45.435239, -73.489912, 'red', '179.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Wed, 22 May 2024 09:37'],
[45.454885, -73.465571, 'red', '179.9 ¢/Litre
Taschereau / Rome
Brossard
Wed, 22 May 2024 09:38'],
[45.470785, -73.468103, 'red', '179.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Wed, 22 May 2024 08:30'],
[45.529366, -73.481586, 'red', '179.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Wed, 22 May 2024 09:41'],
[45.524679, -73.338112, 'red', '179.9 ¢/Litre
Montarville / Seigneurial
Saint-Bruno-de-Montarville
Wed, 22 May 2024 07:30'],
[45.549520, -73.219972, 'red', '179.9 ¢/Litre
Sir Wilfrid Laurier / Bernard Pilon
Beloeil
Wed, 22 May 2024 08:00'],
[45.457416, -73.492229, 'red', '179.9 ¢/Litre
Marie-Victorin / Rome
Brossard
Wed, 22 May 2024 09:33'],
[45.456673, -73.492141, 'red', '179.9 ¢/Litre
Marie-Victorin / Rome
Brossard
Wed, 22 May 2024 09:33'],
[45.510830, -73.806914, 'red', '179.9 ¢/Litre
Gouin / Centre Commercial
Roxboro
Wed, 22 May 2024 09:30'],
[45.471419, -73.648055, 'red', '179.9 ¢/Litre
Cote St Luc / Cavendish
Notre-Dame-de-Grâce
Wed, 22 May 2024 09:33'],
[45.464810, -73.585022, 'red', '179.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Wed, 22 May 2024 09:32'],
[45.461055, -73.724374, 'red', '178.9 ¢/Litre
Cote de Liesse / Aut 520 / 55e Ave
Dorval
Wed, 22 May 2024 09:30'],
[45.476958, -73.789887, 'blue', '177.9 ¢/Litre
Sources / Hymus
Dorval
Wed, 22 May 2024 09:29'],
[45.408875, -73.472737, 'blue', '177.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Wed, 22 May 2024 08:30'],
[45.482751, -73.788836, 'blue', '177.9 ¢/Litre
Aut 40 / Deacon / Sources
Dorval
Wed, 22 May 2024 09:29'],
[45.462287, -73.453165, 'blue', '176.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Wed, 22 May 2024 09:00'],
[45.521714, -73.463444, 'blue', '176.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Wed, 22 May 2024 08:00'],
[45.521868, -73.463538, 'blue', '176.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Wed, 22 May 2024 08:00'],
[45.476861, -73.838663, 'blue', '176.9 ¢/Litre
St Jean / Westminster
Dollard-des-Ormeaux
Wed, 22 May 2024 09:28'],
[45.414839, -73.485305, 'blue', '175.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Wed, 22 May 2024 09:35'],
[45.490275, -73.802855, 'blue', '175.9 ¢/Litre
Sources / Hyman
Dollard-des-Ormeaux
Wed, 22 May 2024 09:28'],
[45.596853, -73.522632, 'blue', '175.9 ¢/Litre
Hochelaga / St-Émile / Lapointe
Hochelaga-Maisonneuve
Wed, 22 May 2024 09:39'],
[45.493315, -73.807043, 'blue', '175.9 ¢/Litre
Sources / Churchill
Dollard-des-Ormeaux
Wed, 22 May 2024 09:28'],
[45.406872, -73.497527, 'blue', '175.9 ¢/Litre
Taschereau / Salaberry
La Prairie
Wed, 22 May 2024 08:30'],
[45.635377, -73.316982, 'blue', '175.0 ¢/Litre
Principale / Adam
Saint-Amable
Wed, 22 May 2024 09:53'],
[45.499602, -73.750851, 'blue', '174.9 ¢/Litre
Pitfield / Aut 13 / Valiquette
Saint-Laurent
Wed, 22 May 2024 09:26'],
[45.542527, -73.187177, 'blue', '174.9 ¢/Litre
Ozias-Leduc / de la Montagne
Otterburn Park
Wed, 22 May 2024 09:53'],
[45.744587, -73.455319, 'blue', '172.9 ¢/Litre
Brien / Leclerc
Repentigny
Wed, 22 May 2024 09:55'],
[45.470851, -73.564091, 'blue', '171.9 ¢/Litre
Wellington / Gilberte-Dubé / Henri-Duhamel
Verdun
Wed, 22 May 2024 09:31'],
[45.607988, -73.584409, 'green', 'Costco - 169.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Wed, 22 May 2024 09:47'],
[45.352015, -73.293630, 'green', '169.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 09:50'],
[45.362053, -73.307166, 'green', '169.9 ¢/Litre
St-Luc / Bélair
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 09:50'],
[45.355527, -73.297120, 'green', '169.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 09:49'],
[45.721453, -73.508422, 'green', 'Costco - 169.9 ¢/Litre
des Pionniers / Yves-Blais
Terrebonne
Wed, 22 May 2024 09:47'],
[45.485789, -73.553621, 'green', 'Costco - 168.9 ¢/Litre
300, rue Bridge
Montréal
Wed, 22 May 2024 19:09'],
[45.371582, -73.515440, 'green', 'Costco - 167.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Wed, 22 May 2024 09:46'],
[45.433637, -73.477474, 'green', 'Costco - 167.9 ¢/Litre
Taschereau / Matte
Brossard
Wed, 22 May 2024 09:34'],
[45.686705, -73.432357, 'green', '164.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Wed, 22 May 2024 09:54'],
[45.580715, -73.760447, 'green', 'Costco - 164.0 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Wed, 22 May 2024 14:29'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 161.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 17:30'],
[45.333285, -73.294644, 'green', '161.9 ¢/Litre
Omer-Marcil / Alexis Lebert
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 18:02']];
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+");});");
}
}