/****
* 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.404237, -74.037960);
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', '153.9 ¢/Litre
St-Laurent
Saint-Eustache
Thu, 19 Sep 2024 10:18'],
[45.560186, -73.887346, 'red', '153.9 ¢/Litre
22 Boul Arthur-Sauvé & Rue St-Louis
Saint-Eustache
Thu, 19 Sep 2024 10:19'],
[45.448085, -73.747369, 'red', '152.9 ¢/Litre
Aut 20 / Fénelon / Côte de Liesse
Dorval
Wed, 18 Sep 2024 10:59'],
[45.501070, -73.632488, 'red', '152.9 ¢/Litre
Côte-des-Neiges / Van Horne
Côte-des-Neiges
Wed, 18 Sep 2024 10:53'],
[45.497098, -73.624101, 'red', '152.9 ¢/Litre
Côte-des-Neiges / Edouard-Montpetit
Côte-des-Neiges
Wed, 18 Sep 2024 09:00'],
[45.474096, -73.609107, 'red', '152.9 ¢/Litre
Decarie / Sherbrooke
Notre-Dame-de-Grâce
Wed, 18 Sep 2024 10:55'],
[45.489585, -73.641865, 'red', '152.9 ¢/Litre
Décarie / Van Horne
Côte-des-Neiges
Wed, 18 Sep 2024 10:55'],
[45.495855, -73.654884, 'red', '152.9 ¢/Litre
Décarie / Paré
Côte-des-Neiges
Wed, 18 Sep 2024 10:56'],
[45.470420, -73.832197, 'red', '152.9 ¢/Litre
St Jean / Devon
Dollard-des-Ormeaux
Wed, 18 Sep 2024 10:58'],
[45.574931, -73.876109, 'red', 'Belisle - 151.9 ¢/Litre
St-Laurent
Saint-Eustache
Fri, 20 Sep 2024 14:02'],
[45.499602, -73.750851, 'blue', '150.4 ¢/Litre
Pitfield / Aut 13 / Valiquette
Saint-Laurent
Wed, 18 Sep 2024 10:57'],
[45.503398, -73.756933, 'blue', '149.9 ¢/Litre
3550 Boul Pitfield / Salaberry
Pierrefonds
Wed, 18 Sep 2024 10:57'],
[45.580715, -73.760447, 'blue', 'Costco - 145.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Thu, 19 Sep 2024 11:08'],
[45.405663, -74.032928, 'green', '139.9 ¢/Litre
St Charles / Dutrisac
Vaudreuil-Dorion
Fri, 20 Sep 2024 11:14'],
[45.380146, -74.017522, 'green', '139.9 ¢/Litre
Harwood / Ranger
Vaudreuil-Dorion
Wed, 18 Sep 2024 10:19'],
[45.396268, -74.024528, 'green', '139.9 ¢/Litre
Boul. St charles
Vaudreuil-Dorion
Fri, 20 Sep 2024 11:12'],
[45.388937, -74.014744, 'green', '138.9 ¢/Litre
St Charles / Galt
Vaudreuil-Dorion
Fri, 20 Sep 2024 11:09'],
[45.404236, -74.037960, 'green', 'Costco - 136.9 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Fri, 20 Sep 2024 10:38']];
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+");});");
}
}