/****
* 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.75004, -73.599585);
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.574931, -73.876109, 'red', 'Belisle - 190.4 ¢/Litre
St-Laurent
Saint-Eustache
Sun, 12 May 2024 10:28'],
[45.495759, -73.610051, 'blue', '179.9 ¢/Litre
Cote-des-Neiges / Ridgewood
Côte-des-Neiges
Sun, 12 May 2024 13:17'],
[45.467640, -73.538519, 'blue', '178.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sun, 12 May 2024 09:56'],
[45.501483, -73.423506, 'blue', '176.9 ¢/Litre
Cousineau / Montée St-Hubert
Saint-Hubert
Sun, 12 May 2024 13:21'],
[45.506377, -73.484821, 'blue', '176.9 ¢/Litre
Nobert / Jacques-Cartier
Longueuil
Sun, 12 May 2024 13:21'],
[45.494571, -73.500633, 'blue', '176.9 ¢/Litre
Sir Wilfrid Laurier / Victoria / St Louis
Saint-Lambert
Sun, 12 May 2024 13:22'],
[45.483866, -73.579463, 'blue', '176.9 ¢/Litre
Atwater / St Jacques
Le Sud-Ouest
Sun, 12 May 2024 13:17'],
[45.497098, -73.624101, 'blue', '176.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Sun, 12 May 2024 13:16'],
[45.463450, -73.578391, 'blue', '176.9 ¢/Litre
1125 Ave de lEglise & Rue Cool
Verdun
Sun, 12 May 2024 13:15'],
[45.547999, -73.495463, 'blue', '176.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Sun, 12 May 2024 11:00'],
[45.598981, -73.447627, 'blue', '176.9 ¢/Litre
Samuel de Champlain / Montarville
Boucherville
Sun, 12 May 2024 13:10'],
[45.582704, -73.426126, 'blue', '176.9 ¢/Litre
Montarville / Normandie
Boucherville
Sun, 12 May 2024 13:09'],
[45.502445, -73.426215, 'blue', '175.9 ¢/Litre
5175 Cousineau / Perras
Saint-Hubert
Sun, 12 May 2024 13:19'],
[45.481980, -73.464589, 'blue', '174.9 ¢/Litre
Taschereau / Adam
Greenfield Park
Sun, 12 May 2024 13:18'],
[45.536768, -73.499334, 'green', 'Super Gaz - 172.9 ¢/Litre
Chambly / Le Moyne
Longueuil
Sun, 12 May 2024 13:11'],
[45.470851, -73.564091, 'green', '171.9 ¢/Litre
Wellington / Gilberte-Dubé / Henri-Duhamel
Verdun
Sat, 11 May 2024 21:09'],
[45.577050, -73.403659, 'green', 'Costco - 171.9 ¢/Litre
635 ch de Touraine
Boucherville
Sun, 12 May 2024 13:10'],
[45.486768, -73.551440, 'green', 'Costco - 169.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Sun, 12 May 2024 13:14'],
[45.475037, -73.358947, 'green', 'Pétrole Maurice - 169.9 ¢/Litre
Chemin Chambly / Montée Daniel
Saint-Hubert
Sun, 12 May 2024 13:27'],
[45.485789, -73.553621, 'green', 'Costco - 169.9 ¢/Litre
300, rue Bridge
Montréal
Sun, 12 May 2024 12:01'],
[45.580715, -73.760447, 'green', 'Costco - 168.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Sun, 12 May 2024 13:14'],
[45.763549, -74.018241, 'green', 'Costco - 167.9 ¢/Litre
Jean-Baptiste-Rolland O / Brière
Saint-Jérôme
Sun, 12 May 2024 13:13']];
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+");});");
}
}