/****
* 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.450041, -73.866264);
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.475831, -73.361552, 'red', 'Pétrole Maurice - 180.9 ¢/Litre
8855 ch chambly
Longuueil
Sat, 04 May 2024 15:38'],
[45.435239, -73.489912, 'red', '179.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Sat, 04 May 2024 13:11'],
[45.408875, -73.472737, 'red', '179.9 ¢/Litre
St-Jean / Champs Fleuris
La Prairie
Sat, 04 May 2024 13:12'],
[45.408970, -73.472702, 'red', '179.9 ¢/Litre
St-Jean / Palerme
La Prairie
Sat, 04 May 2024 13:12'],
[45.470898, -73.496523, 'red', '179.9 ¢/Litre
Marie Victorin / Provencher
Brossard
Sat, 04 May 2024 12:00'],
[45.470437, -73.495625, 'red', '179.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Sat, 04 May 2024 12:00'],
[45.467640, -73.538519, 'red', '179.9 ¢/Litre
Du Commerce / René Lévesque
Île des Soeurs
Sat, 04 May 2024 15:37'],
[45.464810, -73.585022, 'red', '179.9 ¢/Litre
La Verendrye / De lÉglise
Le Sud-Ouest
Sat, 04 May 2024 13:20'],
[45.431217, -73.618933, 'red', '179.9 ¢/Litre
Shevchencko / Jean-Brillon
LaSalle
Sat, 04 May 2024 13:20'],
[45.469156, -73.649957, 'red', '179.9 ¢/Litre
Cote St Luc / Montclair
Côte-Saint-Luc
Sat, 04 May 2024 13:19'],
[45.454885, -73.465571, 'blue', '178.9 ¢/Litre
Taschereau / Rome
Brossard
Sat, 04 May 2024 13:10'],
[45.414839, -73.485305, 'blue', '178.9 ¢/Litre
Ch. St-Jean/du Maire
La Prairie
Sat, 04 May 2024 13:11'],
[45.420024, -73.486377, 'blue', '177.9 ¢/Litre
Taschereau / Balmoral
La Prairie
Sat, 04 May 2024 13:08'],
[45.371582, -73.515440, 'green', 'Costco - 175.9 ¢/Litre
Strasbourg / Sardaigne
Candiac
Sat, 04 May 2024 13:18'],
[45.456332, -73.415714, 'green', '175.9 ¢/Litre
Grande Allée / Aut 30
Brossard
Sat, 04 May 2024 13:08'],
[45.458904, -73.419386, 'green', '175.9 ¢/Litre
Grande-Allée / Du Quartier
Brossard
Sat, 04 May 2024 13:08'],
[45.721626, -73.506924, 'green', 'Costco - 174.9 ¢/Litre
870 monte des pionniers
Terrebonne
Sat, 04 May 2024 13:30'],
[45.486768, -73.551440, 'green', 'Costco - 174.9 ¢/Litre
Bridge / Mill
Le Sud-Ouest
Sat, 04 May 2024 13:18'],
[45.580715, -73.760447, 'green', 'Costco - 173.9 ¢/Litre
2999 Aut.440 Laval/Ave. Jacques-Bureau
Laval
Sat, 04 May 2024 15:34'],
[45.607988, -73.584409, 'green', 'Costco - 173.9 ¢/Litre
Bombardier / Renaude-Lapointe
Anjou
Sat, 04 May 2024 13:17'],
[45.433637, -73.477474, 'green', 'Costco - 173.9 ¢/Litre
Taschereau / Matte
Brossard
Sat, 04 May 2024 13:07'],
[45.404236, -74.037960, 'green', 'Costco - 173.8 ¢/Litre
St-Charles / Dunberry
Vaudreuil-Dorion
Sat, 04 May 2024 13:16']];
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+");});");
}
}