Prima tappa: da Thusis a Andeer
translations['openlayer'] = "open layer";
translations['openlayerAtStartup'] = "open layer at startup";
translations['generateLink'] = "link to this map with opened layers";
translations['shortDescription'] = "short description";
translations['generatedShortCode'] = "to get a text control link paste this code in your wordpress editor";
translations['closeLayer'] = "close layer";
translations['cantGenerateLink'] = "put this string in the existing map short code to control this map";
vectorM['map_ol3js_1'] = [];
var raster = getTileLayer("osm","NoKey");
var map_ol3js_1 = new ol.Map({
interactions: ol.interaction.defaults.defaults({mouseWheelZoom:false}),
layers: [raster],
target: "map_ol3js_1",
view: new ol.View({
center: ol.proj.transform([6.378,58.213], "EPSG:4326", "EPSG:3857"),
zoom: 9
})
});
var style0 = {
"Point": [new ol.style.Style({
image: new ol.style.Icon({
anchor: [0.5, 41],
anchorXUnits: "fraction",
anchorYUnits: "pixels",
opacity: 0.75,
src: "https://www.itinerarieluoghi.it/wp-content/plugins/osm/icons/mic_blue_pinother_02.png"
})
})],
"LineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 8
})
})],
"MultiLineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 4
})
})]
};
var vectorL0 = new ol.layer.Vector({
source: new ol.source.Vector({
url:"/wp-content/uploads/2023/03/1_thusis-andeer-2.gpx",
format: new ol.format.GPX({
extractStyles: false
})
}),
zIndex: 92,
style: function(feature, resolution) {return style0[feature.getGeometry().getType()];}
});
map_ol3js_1.addLayer(vectorL0);
var extension1 = ol.extent.createEmpty();
var curZoom1 = map_ol3js_1.getView().getZoom();
map_ol3js_1.getLayers().forEach(function(layer){
if(!layer.get("id")) {
layer.once("change", function(e){
ol.extent.extend(extension1, (layer.getSource().getExtent()));
map_ol3js_1.getView().fit(extension1, {padding: [50, 50, 50, 50]});
});
}
});
addControls2Map(map_ol3js_1,0,0,3,0,5,6,7,0,1);
osm_addPopupClickhandler(map_ol3js_1, "map_ol3js_1");
osm_addMouseHover(map_ol3js_1);
Seconda tappa: da Andeer a Splügen
translations['openlayer'] = "open layer";
translations['openlayerAtStartup'] = "open layer at startup";
translations['generateLink'] = "link to this map with opened layers";
translations['shortDescription'] = "short description";
translations['generatedShortCode'] = "to get a text control link paste this code in your wordpress editor";
translations['closeLayer'] = "close layer";
translations['cantGenerateLink'] = "put this string in the existing map short code to control this map";
vectorM['map_ol3js_2'] = [];
var raster = getTileLayer("osm","NoKey");
var map_ol3js_2 = new ol.Map({
interactions: ol.interaction.defaults.defaults({mouseWheelZoom:false}),
layers: [raster],
target: "map_ol3js_2",
view: new ol.View({
center: ol.proj.transform([6.378,58.213], "EPSG:4326", "EPSG:3857"),
zoom: 9
})
});
var style0 = {
"Point": [new ol.style.Style({
image: new ol.style.Icon({
anchor: [0.5, 41],
anchorXUnits: "fraction",
anchorYUnits: "pixels",
opacity: 0.75,
src: "https://www.itinerarieluoghi.it/wp-content/plugins/osm/icons/mic_blue_pinother_02.png"
})
})],
"LineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 8
})
})],
"MultiLineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 4
})
})]
};
var vectorL0 = new ol.layer.Vector({
source: new ol.source.Vector({
url:"/wp-content/uploads/2023/03/2_andeer-splugen.gpx",
format: new ol.format.GPX({
extractStyles: false
})
}),
zIndex: 92,
style: function(feature, resolution) {return style0[feature.getGeometry().getType()];}
});
map_ol3js_2.addLayer(vectorL0);
var extension2 = ol.extent.createEmpty();
var curZoom2 = map_ol3js_2.getView().getZoom();
map_ol3js_2.getLayers().forEach(function(layer){
if(!layer.get("id")) {
layer.once("change", function(e){
ol.extent.extend(extension2, (layer.getSource().getExtent()));
map_ol3js_2.getView().fit(extension2, {padding: [50, 50, 50, 50]});
});
}
});
addControls2Map(map_ol3js_2,0,0,3,0,5,6,7,0,1);
osm_addPopupClickhandler(map_ol3js_2, "map_ol3js_2");
osm_addMouseHover(map_ol3js_2);
Terza tappa: da Splügen a Isola
translations['openlayer'] = "open layer";
translations['openlayerAtStartup'] = "open layer at startup";
translations['generateLink'] = "link to this map with opened layers";
translations['shortDescription'] = "short description";
translations['generatedShortCode'] = "to get a text control link paste this code in your wordpress editor";
translations['closeLayer'] = "close layer";
translations['cantGenerateLink'] = "put this string in the existing map short code to control this map";
vectorM['map_ol3js_3'] = [];
var raster = getTileLayer("osm","NoKey");
var map_ol3js_3 = new ol.Map({
interactions: ol.interaction.defaults.defaults({mouseWheelZoom:false}),
layers: [raster],
target: "map_ol3js_3",
view: new ol.View({
center: ol.proj.transform([6.378,58.213], "EPSG:4326", "EPSG:3857"),
zoom: 9
})
});
var style0 = {
"Point": [new ol.style.Style({
image: new ol.style.Icon({
anchor: [0.5, 41],
anchorXUnits: "fraction",
anchorYUnits: "pixels",
opacity: 0.75,
src: "https://www.itinerarieluoghi.it/wp-content/plugins/osm/icons/mic_blue_pinother_02.png"
})
})],
"LineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 8
})
})],
"MultiLineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 4
})
})]
};
var vectorL0 = new ol.layer.Vector({
source: new ol.source.Vector({
url:"/wp-content/uploads/2023/03/3_splugen-montespluga.gpx",
format: new ol.format.GPX({
extractStyles: false
})
}),
zIndex: 92,
style: function(feature, resolution) {return style0[feature.getGeometry().getType()];}
});
map_ol3js_3.addLayer(vectorL0);
var extension3 = ol.extent.createEmpty();
var curZoom3 = map_ol3js_3.getView().getZoom();
map_ol3js_3.getLayers().forEach(function(layer){
if(!layer.get("id")) {
layer.once("change", function(e){
ol.extent.extend(extension3, (layer.getSource().getExtent()));
map_ol3js_3.getView().fit(extension3, {padding: [50, 50, 50, 50]});
});
}
});
addControls2Map(map_ol3js_3,0,0,3,0,5,6,7,0,1);
osm_addPopupClickhandler(map_ol3js_3, "map_ol3js_3");
osm_addMouseHover(map_ol3js_3);
Quarta tappa: da Montespluga a Campodolcino
translations['openlayer'] = "open layer";
translations['openlayerAtStartup'] = "open layer at startup";
translations['generateLink'] = "link to this map with opened layers";
translations['shortDescription'] = "short description";
translations['generatedShortCode'] = "to get a text control link paste this code in your wordpress editor";
translations['closeLayer'] = "close layer";
translations['cantGenerateLink'] = "put this string in the existing map short code to control this map";
vectorM['map_ol3js_4'] = [];
var raster = getTileLayer("osm","NoKey");
var map_ol3js_4 = new ol.Map({
interactions: ol.interaction.defaults.defaults({mouseWheelZoom:false}),
layers: [raster],
target: "map_ol3js_4",
view: new ol.View({
center: ol.proj.transform([6.378,58.213], "EPSG:4326", "EPSG:3857"),
zoom: 9
})
});
var style0 = {
"Point": [new ol.style.Style({
image: new ol.style.Icon({
anchor: [0.5, 41],
anchorXUnits: "fraction",
anchorYUnits: "pixels",
opacity: 0.75,
src: "https://www.itinerarieluoghi.it/wp-content/plugins/osm/icons/mic_blue_pinother_02.png"
})
})],
"LineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 8
})
})],
"MultiLineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 4
})
})]
};
var vectorL0 = new ol.layer.Vector({
source: new ol.source.Vector({
url:"/wp-content/uploads/2023/03/4_montespluga-campodolcino.gpx",
format: new ol.format.GPX({
extractStyles: false
})
}),
zIndex: 92,
style: function(feature, resolution) {return style0[feature.getGeometry().getType()];}
});
map_ol3js_4.addLayer(vectorL0);
var extension4 = ol.extent.createEmpty();
var curZoom4 = map_ol3js_4.getView().getZoom();
map_ol3js_4.getLayers().forEach(function(layer){
if(!layer.get("id")) {
layer.once("change", function(e){
ol.extent.extend(extension4, (layer.getSource().getExtent()));
map_ol3js_4.getView().fit(extension4, {padding: [50, 50, 50, 50]});
});
}
});
addControls2Map(map_ol3js_4,0,0,3,0,5,6,7,0,1);
osm_addPopupClickhandler(map_ol3js_4, "map_ol3js_4");
osm_addMouseHover(map_ol3js_4);
Quinta tappa: Campodolcino a Chiavenna
translations['openlayer'] = "open layer";
translations['openlayerAtStartup'] = "open layer at startup";
translations['generateLink'] = "link to this map with opened layers";
translations['shortDescription'] = "short description";
translations['generatedShortCode'] = "to get a text control link paste this code in your wordpress editor";
translations['closeLayer'] = "close layer";
translations['cantGenerateLink'] = "put this string in the existing map short code to control this map";
vectorM['map_ol3js_5'] = [];
var raster = getTileLayer("osm","NoKey");
var map_ol3js_5 = new ol.Map({
interactions: ol.interaction.defaults.defaults({mouseWheelZoom:false}),
layers: [raster],
target: "map_ol3js_5",
view: new ol.View({
center: ol.proj.transform([6.378,58.213], "EPSG:4326", "EPSG:3857"),
zoom: 9
})
});
var style0 = {
"Point": [new ol.style.Style({
image: new ol.style.Icon({
anchor: [0.5, 41],
anchorXUnits: "fraction",
anchorYUnits: "pixels",
opacity: 0.75,
src: "https://www.itinerarieluoghi.it/wp-content/plugins/osm/icons/mic_blue_pinother_02.png"
})
})],
"LineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 8
})
})],
"MultiLineString": [new ol.style.Style({
stroke: new ol.style.Stroke({
color: "none",
width: 4
})
})]
};
var vectorL0 = new ol.layer.Vector({
source: new ol.source.Vector({
url:"/wp-content/uploads/2023/03/5_campodolcino-chiavenna.gpx",
format: new ol.format.GPX({
extractStyles: false
})
}),
zIndex: 92,
style: function(feature, resolution) {return style0[feature.getGeometry().getType()];}
});
map_ol3js_5.addLayer(vectorL0);
var extension5 = ol.extent.createEmpty();
var curZoom5 = map_ol3js_5.getView().getZoom();
map_ol3js_5.getLayers().forEach(function(layer){
if(!layer.get("id")) {
layer.once("change", function(e){
ol.extent.extend(extension5, (layer.getSource().getExtent()));
map_ol3js_5.getView().fit(extension5, {padding: [50, 50, 50, 50]});
});
}
});
addControls2Map(map_ol3js_5,0,0,3,0,5,6,7,0,1);
osm_addPopupClickhandler(map_ol3js_5, "map_ol3js_5");
osm_addMouseHover(map_ol3js_5);