/****
* 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.366709, -73.566254);
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.528020, -73.478252, 'red', '185.9 ¢/Litre
Chambly / Benoît
Longueuil
Sun, 28 Apr 2024 14:30'],
[45.467640, -73.538519, 'red', '185.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sun, 28 Apr 2024 16:19'],
[45.435143, -73.476495, 'red', '185.9 ¢/Litre
Taschereau / Matte
Brossard
Sun, 28 Apr 2024 16:20'],
[45.582704, -73.426126, 'red', '185.9 ¢/Litre
Montarville / Normandie
Boucherville
Sun, 28 Apr 2024 15:50'],
[45.447681, -73.609652, 'red', '185.6 ¢/Litre
Boulevard Angrigon / Boulevard Newman
LaSalle
Sun, 28 Apr 2024 13:40'],
[45.454885, -73.465571, 'red', '184.9 ¢/Litre
Taschereau / Rome
Brossard
Sun, 28 Apr 2024 16:18'],
[45.574931, -73.876109, 'red', 'Belisle - 183.9 ¢/Litre
St-Laurent
Saint-Eustache
Sun, 28 Apr 2024 10:34'],
[45.528552, -73.290176, 'red', '183.9 ¢/Litre
Des Trinitaires / Sir Wilfrid Laurier
Saint-Basile-le-Grand
Sun, 28 Apr 2024 16:12'],
[45.576640, -73.446699, 'blue', '181.9 ¢/Litre
Mortagne / Parfondeval
Boucherville
Sun, 28 Apr 2024 15:51'],
[45.575375, -73.446954, 'blue', '181.9 ¢/Litre
Mortagne / Ampére
Boucherville
Sun, 28 Apr 2024 15:51'],
[45.481291, -73.388865, 'blue', '179.9 ¢/Litre
Cousineau / Moïse Vincent / Aut 30
Saint-Hubert
Sun, 28 Apr 2024 16:11'],
[45.493326, -73.478896, 'blue', '179.9 ¢/Litre
Taschereau / Georges
Saint-Hubert
Sun, 28 Apr 2024 16:18'],
[45.494872, -73.408831, 'blue', '179.9 ¢/Litre
Cousineau / Gaetan - Boucher
Saint-Hubert
Sun, 28 Apr 2024 16:15'],
[45.504640, -73.472325, 'blue', '179.9 ¢/Litre
Édouard / Elizabeth / Rte 116
Saint-Hubert
Sun, 28 Apr 2024 16:16'],
[45.473253, -73.402898, 'blue', '179.9 ¢/Litre
Cousineau / Moïse Vincent
Saint-Hubert
Sun, 28 Apr 2024 16:11'],
[45.432634, -73.637114, 'blue', '179.9 ¢/Litre
Dollard / Bédard
LaSalle
Sun, 28 Apr 2024 16:20'],
[45.496541, -73.484126, 'blue', '179.9 ¢/Litre
Taschereau / Mary
Greenfield Park
Sun, 28 Apr 2024 16:17'],
[45.421724, -73.635371, 'blue', '179.9 ¢/Litre
Airlie / 80e Ave
LaSalle
Sun, 28 Apr 2024 16:21'],
[45.493703, -73.479352, 'blue', '179.9 ¢/Litre
Taschereau / Georges
Greenfield Park
Sun, 28 Apr 2024 16:17'],
[45.607988, -73.584409, 'blue', 'Costco - 178.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Sun, 28 Apr 2024 16:08'],
[45.530207, -73.457127, 'blue', '178.9 ¢/Litre
Rolland Therrien / Toulouse
Longueuil
Sun, 28 Apr 2024 16:05'],
[45.542687, -73.455710, 'blue', '178.9 ¢/Litre
Jacques-Cartier-E/ Du Tremblay
Longueuil
Sun, 28 Apr 2024 16:05'],
[45.521868, -73.463538, 'blue', '178.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Sun, 28 Apr 2024 15:52'],
[45.521714, -73.463444, 'blue', '178.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Sun, 28 Apr 2024 16:05'],
[45.459100, -73.256330, 'green', '176.9 ¢/Litre
123 CH des Patriotes
Saint-Mathias-sur-Richelieu
Sun, 28 Apr 2024 16:10'],
[45.486768, -73.551440, 'green', 'Costco - 176.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Sun, 28 Apr 2024 16:07'],
[45.462287, -73.453165, 'green', '175.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Sun, 28 Apr 2024 16:14'],
[45.481980, -73.464589, 'green', '175.9 ¢/Litre
Taschereau / Adam
Greenfield Park
Sun, 28 Apr 2024 16:13'],
[45.479275, -73.465158, 'green', '175.9 ¢/Litre
Taschereau / Angèle
Brossard
Sun, 28 Apr 2024 16:15'],
[45.470785, -73.468103, 'green', '175.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Sun, 28 Apr 2024 16:14'],
[45.468890, -73.463637, 'green', '175.9 ¢/Litre
Lapinière / Auteuil
Brossard
Sun, 28 Apr 2024 16:14'],
[45.575442, -73.753731, 'green', 'Costco - 174.9 ¢/Litre
2999 Aut 440 / Aut 440 / Aut 15
Laval
Sun, 28 Apr 2024 15:34'],
[45.433637, -73.477474, 'green', 'Costco - 173.9 ¢/Litre
Taschereau / Matte
Brossard
Sun, 28 Apr 2024 16:07'],
[45.577602, -73.405821, 'green', 'Costco - 173.9 ¢/Litre
635 ch de Touraine
Boucherville
Sun, 28 Apr 2024 11:41'],
[45.355527, -73.297120, 'green', '172.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Sun, 28 Apr 2024 16:09'],
[45.475037, -73.358947, 'green', 'Pétrole Maurice - 172.9 ¢/Litre
Chemin Chambly / Montée Daniel
Saint-Hubert
Sun, 28 Apr 2024 16:09'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 171.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Sun, 28 Apr 2024 09:33']];
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+");});");
}
}