(function () {
var container = document.getElementById('popup2');
var content = document.getElementById('popup-content');
var closer = document.getElementById('popup-closer');
var overlay = new ol.Overlay({
element: container,
autoPan: true,
autoPanAnimation: {
duration: 250,
},
});
closer.onclick = function () {
overlay.setPosition(undefined);
closer.blur();
return false;
};
// PUNTI start ************************************************************************************
var style = [];
var vectorList_a = [];
var iconList = [];
style['675'] = {
'Point': new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'rgba(255,255,0,0.6)',
}),
radius: 10,
stroke: new ol.style.Stroke({
color: '#ff0',
width: 1,
}),
}),
}),
'LineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
'MultiLineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
};
// GPX start
var t = new ol.Feature({
geometry: new ol.geom.Point(ol.proj.fromLonLat([10.608602239785, 45.656037132268])),
name: 'Caneto [Cané]',
description: '
The first info about the existence of papermills in this valley dates back to the end of the XV Century. During the XVIII Century this locality, property of the Zuanelli family, was damaged by a flood. During the first half of the XIX Century the Simonellis restored some of the buildings and built a new paper mill. At the end of the century the Avanzini family, the last owner, added an oil mill.
'
});
t.setStyle(
new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'red'
}),
radius: 8,
stroke: new ol.style.Stroke({
color: '#000000',
width: 1,
}),
}),
}),
);
iconList.push(t);
style['676'] = {
'Point': new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'rgba(255,255,0,0.6)',
}),
radius: 10,
stroke: new ol.style.Stroke({
color: '#ff0',
width: 1,
}),
}),
}),
'LineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
'MultiLineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
};
// GPX start
var t = new ol.Feature({
geometry: new ol.geom.Point(ol.proj.fromLonLat([10.610224140363, 45.658316502998])),
name: 'Contrada [Cuntràda]',
description: '
Now reduced to a narrow mule track, the last part of the path going up the valley is studded with vaults of rooms buried by vegetation, and with more recent structure in reinforced concrete goint towards the river. These ruins were parts of the productive settlement of Contrada, that once occupied the final part of the valley, between Luseti and Lume.
WARNING The papermill Valley is closed from Luseti to Covoli'
});
t.setStyle(
new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'red'
}),
radius: 8,
stroke: new ol.style.Stroke({
color: '#000000',
width: 1,
}),
}),
}),
);
iconList.push(t);
style['677'] = {
'Point': new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'rgba(255,255,0,0.6)',
}),
radius: 10,
stroke: new ol.style.Stroke({
color: '#ff0',
width: 1,
}),
}),
}),
'LineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
'MultiLineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
};
// GPX start
var t = new ol.Feature({
geometry: new ol.geom.Point(ol.proj.fromLonLat([10.609853367836, 45.662751596128])),
name: 'Covoli [Cùegn/Cùei]',
description: '
The first hydroelectric power station was built In Covoli, at the end of the valley, in 1899 and it lighted the Riviera. In this locality there there was also a papermill
WARNING This part of the Valley is temporarily closed
'
});
t.setStyle(
new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'red'
}),
radius: 8,
stroke: new ol.style.Stroke({
color: '#000000',
width: 1,
}),
}),
}),
);
iconList.push(t);
style['680'] = {
'Point': new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'rgba(255,255,0,0.6)',
}),
radius: 10,
stroke: new ol.style.Stroke({
color: '#ff0',
width: 1,
}),
}),
}),
'LineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
'MultiLineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
};
// GPX start
var t = new ol.Feature({
geometry: new ol.geom.Point(ol.proj.fromLonLat([10.610504154510712, 45.66082493865655])),
name: 'Covoli\'s gorge',
description: '
At the end of the valley the road branches off into two trails: the one on the right leads to a small tunnel carved into the rock (we invite you to walk through it only if equipped with a flashlight) that leads to the entrance of the gorge; the main one, on the left, leads to the Camerate Valley through a track, once made of wood, that crosses the gorge. The sight offered by the nature, with the carved rocks, the river and the vegetation is amazing.
WARNING This part of the Valley is temporarily closed
'
});
t.setStyle(
new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'red'
}),
radius: 8,
stroke: new ol.style.Stroke({
color: '#000000',
width: 1,
}),
}),
}),
);
iconList.push(t);
style['678'] = {
'Point': new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'rgba(255,255,0,0.6)',
}),
radius: 10,
stroke: new ol.style.Stroke({
color: '#ff0',
width: 1,
}),
}),
}),
'LineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
'MultiLineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
};
// GPX start
var t = new ol.Feature({
geometry: new ol.geom.Point(ol.proj.fromLonLat([10.610017, 45.657481])),
name: 'Gatto [Gat]',
description: '
The locality at the end of the road, before the bridge that crosses the river, is today known as Gatto (Gàt), its name may derives from its owner epithet.
Since 2002 an archaeological excavation brought to light the semibasement of a building, origanally structured on several storeys and with a channel on its west side. The oldest ruins date back to the XV Century.
During the 1800s some of the spaces were abandoned and a stone bridge was built on the ruins. This bridge was then rebuilt with the construction of the new road between 1871 and 1878, and it finally fell down due to a flood. The paper mill was completely abandoned at the end of the XIX Century.'
});
t.setStyle(
new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'red'
}),
radius: 8,
stroke: new ol.style.Stroke({
color: '#000000',
width: 1,
}),
}),
}),
);
iconList.push(t);
style['679'] = {
'Point': new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({
color: 'rgba(255,255,0,0.6)',
}),
radius: 10,
stroke: new ol.style.Stroke({
color: '#ff0',
width: 1,
}),
}),
}),
'LineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
'MultiLineString': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 3,
}),
}),
};
// GPX start
var t = new ol.Feature({
geometry: new ol.geom.Point(ol.proj.fromLonLat([10.611468609507, 45.659592851797])),
name: 'Lume [Löm]',
description: '
According to a popular tradition the name Lume is due to the presence of a lamp (löm in dialect) that used to light up at night. However, considered its close position to the end of the valley, it may derives from the latin word limes that means border-limit. Lume is characterized by the presence of an olive grow on embankments, typical of the Riviera.
WARNING This part of the Valley is temporarily closed





The first info about the existence of papermills in this valley dates back to the end of the XV Century. During the XVIII Century this locality, property of the Zuanelli family, was damaged by a flood. During the first half of the XIX Century the Simonellis restored some of the buildings and built a new paper mill. At the end of the century the Avanzini family, the last owner, added an oil mill.
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_676 = document.getElementById('zoomto_676');
zoomto_676.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.610224140363, 45.658316502998]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
Now reduced to a narrow mule track, the last part of the path going up the valley is studded with vaults of rooms buried by vegetation, and with more recent structure in reinforced concrete goint towards the river. These ruins were parts of the productive settlement of Contrada, that once occupied the final part of the valley, between Luseti and Lume.
WARNING The papermill Valley is closed from Luseti to Covoli
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_677 = document.getElementById('zoomto_677');
zoomto_677.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.609853367836, 45.662751596128]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
The first hydroelectric power station was built In Covoli, at the end of the valley, in 1899 and it lighted the Riviera. In this locality there there was also a papermill
WARNING This part of the Valley is temporarily closed
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_680 = document.getElementById('zoomto_680');
zoomto_680.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.610504154510712, 45.66082493865655]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = 'At the end of the valley the road branches off into two trails: the one on the right leads to a small tunnel carved into the rock (we invite you to walk through it only if equipped with a flashlight) that leads to the entrance of the gorge; the main one, on the left, leads to the Camerate Valley through a track, once made of wood, that crosses the gorge. The sight offered by the nature, with the carved rocks, the river and the vegetation is amazing.
WARNING This part of the Valley is temporarily closed
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_678 = document.getElementById('zoomto_678');
zoomto_678.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.610017, 45.657481]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
The locality at the end of the road, before the bridge that crosses the river, is today known as Gatto (Gàt), its name may derives from its owner epithet.
Since 2002 an archaeological excavation brought to light the semibasement of a building, origanally structured on several storeys and with a channel on its west side. The oldest ruins date back to the XV Century.
During the 1800s some of the spaces were abandoned and a stone bridge was built on the ruins. This bridge was then rebuilt with the construction of the new road between 1871 and 1878, and it finally fell down due to a flood. The paper mill was completely abandoned at the end of the XIX Century.
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_679 = document.getElementById('zoomto_679');
zoomto_679.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.611468609507, 45.659592851797]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
According to a popular tradition the name Lume is due to the presence of a lamp (löm in dialect) that used to light up at night. However, considered its close position to the end of the valley, it may derives from the latin word limes that means border-limit. Lume is characterized by the presence of an olive grow on embankments, typical of the Riviera.
WARNING This part of the Valley is temporarily closed
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_681 = document.getElementById('zoomto_681');
zoomto_681.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.610100283346831, 45.65844105677631]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = 'Thanks to the Association “Amici di Luseti”, that restored the ancient paper mill, the building has been converted into a scout camp. The production complex of Luseti had always been one of the biggest in the valley: as early as the second half of 1400s, the presence of several paper mills is documented here. At the end of the 1800s the big buildings extended towards the border with the adjacent locality of Contrada with which it formed a unique area. Going up the trail on the left of the fountain, we find the small church of Luseti entitled to S. Filippo and Giacomo, patron saints of paper makers
WARNING: This part of the Valley is temporarily closed
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_682 = document.getElementById('zoomto_682');
zoomto_682.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.60472805075, 45.650956671815]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = 'The productive complex of Maina di Mezzo was once connected to Maina Inferiore through a small trail alongside the river, partially visible from the road. Between the end of the 1800s and the beginning of the 1900s there were several buildings, that worked untill the first half of the 1900s. The lush vegetation shows only some of the structures among which the big stone vat stands out. This stone dates back to the XIX Century and it is upon a load-bearing pillar of the factory closer to the river. In 2007 part of one of the buildings in Maina di Mezzo was brought to light thanks to the archaeological excavation by Padova University
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_684 = document.getElementById('zoomto_684');
zoomto_684.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.60418403364, 45.649963002323]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
The oldest part of this paper mill dates back to the XV Century, it was then enlarged at the end of the XIX Century.
The paper mill ended its activity in 1962 and it’s now the seat of the Paper Museum since 2007.
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_683 = document.getElementById('zoomto_683');
zoomto_683.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.605365, 45.652391]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = 'At the end of the XIX Century Maina Superiore was the main productive centre of this area and it represented the heart of a city made of factories, warehouse, channels, houses, gardens and tracks that filled the narrow valley floor. Here is the villa belonged to the Maffizzolis, leading personalities of the industrial development of the valley, and the ruins of their papermill. At the beginning of the XX Century the Maffizzolis abandoned this factory and moved the paper mill by the lake
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_686 = document.getElementById('zoomto_686');
zoomto_686.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.606969, 45.653928]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_687 = document.getElementById('zoomto_687');
zoomto_687.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.606623517149, 45.652427455979]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = 'Alongside the left bank of the river, the road took to a big building in Vancinelle, also known as Magazzino (warehouse) due to its use, built between 1852 and 1898, opposite to Maina Superiore, to which it was connceted by a bridge. The name of this locality may derives from the vernacular version of the name Avanzini (Vansinèl) who were famous papermills owner.
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_771 = document.getElementById('zoomto_771');
zoomto_771.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.605244, 45.652062]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
Property of the Maffizzoli family, famous paper makers. It was built on the side of the river at the entrance of Maina Superiore, that was the main paper production centre at the end of the 19th Century
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_725 = document.getElementById('zoomto_725');
zoomto_725.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.609422185742, 45.657457385446]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = 'Small chapel realised during the 16th Century by the Tamagnini family. Dedicated to Filippo and Giacomo, protectors of paper makers.
Small and plain structure with beautiful stucco decorations made by Davide Rieti, famous sculptor who worked for the Dome in Salò and fort the Inviolata\'s Curch in Riva del Garda.
Abandoned over a long time, the church has been taken to its original beauty thanks to recent restoration works.
WARNING This part of the valley is temporarily closed
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
var zoomto_707 = document.getElementById('zoomto_707');
zoomto_707.addEventListener(
'click',
function (evt) {
var geometry = ol.proj.fromLonLat([10.604170415888738, 45.64972537665636]);
map.getView().animate({ center: geometry, zoom: 16 }, { duration: 750 });
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(geometry));
content.innerHTML = '
' + hdms + '' ;
overlay.setPosition(geometry);
},
false
);
// LINK To POINT end ************************************************************************************
// POPOUP start ************************************************************************************
var element = document.getElementById('popup');
var popup = new ol.Overlay({
element: element,
positioning: 'bottom-center',
stopEvent: false,
offset: [0, 0],
});
map.addOverlay(popup);
map.on('singleclick', function (evt) {
$(element).popover('dispose');
var feature = map.forEachFeatureAtPixel(evt.pixel, function (feature) {
return feature;
});
if (feature) {
var coordinate = evt.coordinate;
var hdms = ol.coordinate.toStringHDMS(ol.proj.toLonLat(coordinate));
content.innerHTML = '' + feature.get('description') + '
' + hdms + '';
overlay.setPosition(coordinate);
}
});
// POPOUP end ************************************************************************************
// Get out-of-the-map div element with the ID "layers" and renders layers to it.
// NOTE: If the layers are changed outside of the layer switcher then you
// will need to call ol.control.LayerSwitcher.renderPanel again to refesh
// the layer tree. Style the tree via CSS.
var sidebar = new ol.control.Sidebar({
element: 'sidebar',
position: 'left'
});
var toc = document.getElementById('layers');
ol.control.LayerSwitcher.renderPanel(map, toc, { reverse: true });
map.addControl(sidebar);
})();