/****
* 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.595282, -73.095677);
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.457416, -73.492229, 'red', '179.9 ¢/Litre
Marie-Victorin / Rome
Brossard
Wed, 22 May 2024 08:33'],
[45.456673, -73.492141, 'red', '179.9 ¢/Litre
Marie-Victorin / Rome
Brossard
Wed, 22 May 2024 08:33'],
[45.614041, -73.442844, 'red', '179.9 ¢/Litre
Montbrun / Général Vanier
Boucherville
Wed, 22 May 2024 07:00'],
[45.470437, -73.495625, 'red', '179.9 ¢/Litre
Marie-Victorin / Provencher
Brossard
Wed, 22 May 2024 06:30'],
[45.767198, -73.444897, 'red', '179.9 ¢/Litre
Valmont / Aut 40
Repentigny
Wed, 22 May 2024 08:55'],
[45.524679, -73.338112, 'red', '179.9 ¢/Litre
Montarville / Seigneurial
Saint-Bruno-de-Montarville
Wed, 22 May 2024 06:30'],
[45.529366, -73.481586, 'red', '179.9 ¢/Litre
Chambly / Curé Poirier
Longueuil
Wed, 22 May 2024 08:41'],
[45.470785, -73.468103, 'red', '179.9 ¢/Litre
Taschereau / Lapiniére
Brossard
Wed, 22 May 2024 07:30'],
[45.435239, -73.489912, 'red', '179.9 ¢/Litre
Matte / Marie-Victorin / Aut 15 (Sortie 50)
Brossard
Wed, 22 May 2024 08:37'],
[45.549520, -73.219972, 'red', '179.9 ¢/Litre
Sir Wilfrid Laurier / Bernard Pilon
Beloeil
Wed, 22 May 2024 07:00'],
[45.454885, -73.465571, 'red', '179.9 ¢/Litre
Taschereau / Rome
Brossard
Wed, 22 May 2024 08:38'],
[45.462287, -73.453165, 'blue', '176.9 ¢/Litre
Bergerac / Lapinière / Broadway
Brossard
Wed, 22 May 2024 08:00'],
[45.521868, -73.463538, 'blue', '176.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Wed, 22 May 2024 07:00'],
[45.521714, -73.463444, 'blue', '176.9 ¢/Litre
Chambly / Jacques Cartier
Longueuil
Wed, 22 May 2024 07:00'],
[45.596853, -73.522632, 'blue', '175.9 ¢/Litre
Hochelaga / St-Émile / Lapointe
Hochelaga-Maisonneuve
Wed, 22 May 2024 08:39'],
[45.635377, -73.316982, 'blue', '175.0 ¢/Litre
Principale / Adam
Saint-Amable
Wed, 22 May 2024 08:53'],
[45.542527, -73.187177, 'blue', '174.9 ¢/Litre
Ozias-Leduc / de la Montagne
Otterburn Park
Wed, 22 May 2024 08:53'],
[45.744587, -73.455319, 'blue', '172.9 ¢/Litre
Brien / Leclerc
Repentigny
Wed, 22 May 2024 08:55'],
[45.355527, -73.297120, 'green', '169.9 ¢/Litre
St-Luc / De La Mairie
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 08:49'],
[45.362053, -73.307166, 'green', '169.9 ¢/Litre
St-Luc / Bélair
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 08:50'],
[45.352015, -73.293630, 'green', '169.9 ¢/Litre
St-Luc / Bernier / des Échevins
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 08:50'],
[45.433637, -73.477474, 'green', 'Costco - 167.9 ¢/Litre
Taschereau / Matte
Brossard
Wed, 22 May 2024 08:34'],
[45.686705, -73.432357, 'green', '164.9 ¢/Litre
Marie-Victorin / Quévillon
Varennes
Wed, 22 May 2024 08:54'],
[45.351623, -73.292885, 'green', 'Pétrole Maurice - 161.9 ¢/Litre
St Luc / des Échevins / Bernier
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 16:30'],
[45.333285, -73.294644, 'green', '161.9 ¢/Litre
Omer-Marcil / Alexis Lebert
Saint-Jean-sur-Richelieu
Wed, 22 May 2024 17:02']];
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+");});");
}
}