/****
* 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.566708, -73.899598);
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.591175, -73.525419, 'red', '170.9 ¢/Litre
Hochelaga / Curatteau / Aut 25
Hochelaga-Maisonneuve
Thu, 06 Jun 2024 17:00'],
[45.596853, -73.522632, 'red', '169.9 ¢/Litre
Hochelaga / St-Émile / Lapointe
Hochelaga-Maisonneuve
Thu, 06 Jun 2024 18:21'],
[45.515478, -73.490700, 'red', '169.9 ¢/Litre
Curé Poirier / Ste-Hélène
Longueuil
Thu, 06 Jun 2024 18:26'],
[45.470420, -73.832197, 'red', '168.9 ¢/Litre
St Jean / Devon
Dollard-des-Ormeaux
Fri, 07 Jun 2024 01:49'],
[45.467640, -73.538519, 'red', '168.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Fri, 07 Jun 2024 00:07'],
[45.464810, -73.585022, 'red', '168.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Thu, 06 Jun 2024 23:30'],
[45.449479, -73.855608, 'blue', '167.9 ¢/Litre
St Charles / Hymus
Kirkland
Fri, 07 Jun 2024 01:49'],
[45.525696, -73.551544, 'blue', '166.9 ¢/Litre
De Maisonneuve / De Lorimier
Ville-Marie (Montreal)
Thu, 06 Jun 2024 18:25'],
[45.567869, -73.522612, 'blue', '165.9 ¢/Litre
Notre-Dame E / Bossuet
Hochelaga-Maisonneuve
Thu, 06 Jun 2024 18:25'],
[45.721626, -73.506924, 'blue', 'Costco - 164.9 ¢/Litre
870, Montée des Pionniers
Terrebonne
Thu, 06 Jun 2024 21:04'],
[45.721453, -73.508422, 'blue', 'Costco - 164.9 ¢/Litre
des Pionniers / Yves-Blais
Terrebonne
Thu, 06 Jun 2024 17:00'],
[45.483405, -73.796368, 'blue', '163.9 ¢/Litre
Sources / Brunswick
Dollard-des-Ormeaux
Fri, 07 Jun 2024 01:48'],
[45.529366, -73.481586, 'green', '162.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Thu, 06 Jun 2024 18:17'],
[45.538301, -73.480087, 'green', '162.9 ¢/Litre
Rolland Therrien / Du Lac
Longueuil
Thu, 06 Jun 2024 18:18'],
[45.521868, -73.463538, 'green', '162.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Thu, 06 Jun 2024 18:19'],
[45.547999, -73.495463, 'green', '162.9 ¢/Litre
Rolland Therrien / Auteuil
Longueuil
Thu, 06 Jun 2024 18:18'],
[45.519459, -73.457760, 'green', '161.9 ¢/Litre
Chambly / dés Ormeaux
Longueuil
Thu, 06 Jun 2024 18:17'],
[45.502091, -73.815540, 'green', '161.9 ¢/Litre
Sources / Anselme Lavigne
Dollard-des-Ormeaux
Fri, 07 Jun 2024 01:47'],
[45.521714, -73.463444, 'green', '161.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Thu, 06 Jun 2024 18:16'],
[45.486768, -73.551440, 'green', 'Costco - 159.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Thu, 06 Jun 2024 18:31'],
[45.580715, -73.760447, 'green', 'Costco - 159.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Fri, 07 Jun 2024 00:05'],
[45.404236, -74.037960, 'green', 'Costco - 159.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Thu, 06 Jun 2024 18:32']];
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+");});");
}
}