'+'').addTo(d0);marker51 = L.marker([39.478736164549105, -0.35758929094981795], {icon: greenIcon, alt:'Faculty of Physical Education and Sport Sciences'}).bindPopup('
'+"Faculty of Physical Education and Sport Sciences"+'
'+'').addTo(d0);
// Funció per redibuixar el mapa segons l'espai seleccionat
function Seleccionard0()
{
GoogleViewActiu=false;
map.addLayer(d0); // Activem el layer quan s'escollisca una opció del selector
var selectBox = document.getElementById("selectord0"); // Recollim el ID del selector
var selectedValue = selectBox.options[selectBox.selectedIndex].value; // Recollim el ID del valor polsat
// Extraem l'index de cadascun dels noms dels espais per redibuixar el mapa amb la localització i el titol adient
if (selectedValue==1){map.setView(new L.LatLng(39.479371, -0.364496), 22,{animation: true});marker1.bindPopup('
'+''+'').openPopup();}
if (selectedValue==1){var fenway = new google.maps.LatLng(39.479371, -0.364496); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==40){var fenway = new google.maps.LatLng(39.50778059509833, -0.4212462717263921); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==41){var fenway = new google.maps.LatLng(39.507758, -0.419517); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==42){var fenway = new google.maps.LatLng(39.4783090807055, -0.3411300480365753); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==43){var fenway = new google.maps.LatLng(39.47745063647874, -0.36172181369238393); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==44){var fenway = new google.maps.LatLng(39.478800736609266, -0.3428585221990943); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==45){var fenway = new google.maps.LatLng(39.508182, -0.420633); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==46){var fenway = new google.maps.LatLng(39.479024, -0.363150); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==47){var fenway = new google.maps.LatLng(39.47904063152008, -0.3592407703536083); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==48){var fenway = new google.maps.LatLng(39.50929228880756, -0.4202257096767426); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==49){var fenway = new google.maps.LatLng(39.47679433886623, -0.35940438510351674); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==50){var fenway = new google.maps.LatLng(39.47704510952887, -0.36038752647982625); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==51){var fenway = new google.maps.LatLng(39.478736164549105, -0.35758929094981795); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==52){var fenway = new google.maps.LatLng(39.507233, -0.420167); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==53){var fenway = new google.maps.LatLng(39.47871339133948, -0.35752223572444564); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==54){var fenway = new google.maps.LatLng(39.478018, -0.359780); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==55){var fenway = new google.maps.LatLng(39.479389915294924, -0.34606084228244083); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==56){var fenway = new google.maps.LatLng(39.479616609707925, -0.3468534350463415); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==57){var fenway = new google.maps.LatLng(39.512602, -0.424723); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
// Funció per a definir que l'ultim marker pulsat ocupe el focus principal
if(selectedValue!==0)
{
var markerAux = "marker"+selectedValue
window[markerAux].setZIndexOffset(prioritatZ); // Augmentem la prioritat de l'ultim marker polsat
//console.log(markerAux);
prioritatZ ++; // El nivel de prioritat s'incrementarar en cada seleccio per a aconseguir que l'ultim marker polsat aparegue per damunt dels altres
}
Tancar(); // Amaguem el sidebar
}
// Funcio que serveix per a mostrar / ocultar el Google Maps
function ActivarGoogleViewd0(ipunto) // Recordem que en "ipunto" tenim la referència de l'index de l'opció seleccionada desde el selector
{
if (GoogleViewActiu==false) // Si el pano està inactiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "block"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=true;
//console.log("Dins del false -> true");
}
else // Si el pano ja està actiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "none"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=false;
//console.log("Dins del true -> false");
}
if (ipunto==1){var fenway = new google.maps.LatLng(39.479371, -0.364496); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==40){var fenway = new google.maps.LatLng(39.50778059509833, -0.4212462717263921); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==41){var fenway = new google.maps.LatLng(39.507758, -0.419517); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==42){var fenway = new google.maps.LatLng(39.4783090807055, -0.3411300480365753); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==43){var fenway = new google.maps.LatLng(39.47745063647874, -0.36172181369238393); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==44){var fenway = new google.maps.LatLng(39.478800736609266, -0.3428585221990943); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==45){var fenway = new google.maps.LatLng(39.508182, -0.420633); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==46){var fenway = new google.maps.LatLng(39.479024, -0.363150); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==47){var fenway = new google.maps.LatLng(39.47904063152008, -0.3592407703536083); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==48){var fenway = new google.maps.LatLng(39.50929228880756, -0.4202257096767426); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==49){var fenway = new google.maps.LatLng(39.47679433886623, -0.35940438510351674); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==50){var fenway = new google.maps.LatLng(39.47704510952887, -0.36038752647982625); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==51){var fenway = new google.maps.LatLng(39.478736164549105, -0.35758929094981795); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==52){var fenway = new google.maps.LatLng(39.507233, -0.420167); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==53){var fenway = new google.maps.LatLng(39.47871339133948, -0.35752223572444564); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==54){var fenway = new google.maps.LatLng(39.478018, -0.359780); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==55){var fenway = new google.maps.LatLng(39.479389915294924, -0.34606084228244083); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==56){var fenway = new google.maps.LatLng(39.479616609707925, -0.3468534350463415); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==57){var fenway = new google.maps.LatLng(39.512602, -0.424723); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
}
'+'').addTo(d1);marker235 = L.marker([39.477089, -0.361148], {icon: blueIcon, alt:'Medieval History and Historiography Sciences and Techniques'}).bindPopup('
'+"Medieval History and Historiography Sciences and Techniques"+'
'+'').addTo(d1);marker270 = L.marker([39.509887, -0.420723], {icon: blueIcon, alt:'Preventive Medicine and Public Health, Food Sciences, Toxicology and Forensic Medicine'}).bindPopup('
'+"Preventive Medicine and Public Health, Food Sciences, Toxicology and Forensic Medicine"+'
'+'').addTo(d1);
// Funció per redibuixar el mapa segons l'espai seleccionat
function Seleccionard1()
{
GoogleViewActiu=false;
map.addLayer(d1); // Activem el layer quan s'escollisca una opció del selector
var selectBox = document.getElementById("selectord1"); // Recollim el ID del selector
var selectedValue = selectBox.options[selectBox.selectedIndex].value; // Recollim el ID del valor polsat
// Extraem l'index de cadascun dels noms dels espais per redibuixar el mapa amb la localització i el titol adient
if (selectedValue==58){map.setView(new L.LatLng(39.478372, -0.341446), 22,{animation: true});marker58.bindPopup('
'+'').addTo(d2);marker337 = L.marker([39.479509, -0.364616], {icon: redIcon, alt:'Human Resources Service PAS (Administrative and service staff)'}).bindPopup('
'+"Human Resources Service PAS (Administrative and service staff)"+'
'+'').addTo(d2);marker338 = L.marker([39.479509, -0.364616], {icon: redIcon, alt:'Human Resources Service PDI (Teaching and research staff)'}).bindPopup('
'+"Human Resources Service PDI (Teaching and research staff)"+'
'+'').addTo(d2);
// Funció per redibuixar el mapa segons l'espai seleccionat
function Seleccionard2()
{
GoogleViewActiu=false;
map.addLayer(d2); // Activem el layer quan s'escollisca una opció del selector
var selectBox = document.getElementById("selectord2"); // Recollim el ID del selector
var selectedValue = selectBox.options[selectBox.selectedIndex].value; // Recollim el ID del valor polsat
// Extraem l'index de cadascun dels noms dels espais per redibuixar el mapa amb la localització i el titol adient
if (selectedValue==310){map.setView(new L.LatLng(39.479509, -0.364616), 22,{animation: true});marker310.bindPopup('
'+'').addTo(d3);marker453 = L.marker([39.514739, -0.424333], {icon: orangeIcon, alt:'Cavanilles Institute of Biodiversity and Evolutionary Biology'}).bindPopup('
'+"Cavanilles Institute of Biodiversity and Evolutionary Biology"+'
'+'').addTo(d3);marker458 = L.marker([39.480945912530714, -0.4061265940455724], {icon: orangeIcon, alt:'Fisabio University Research Institute for Medical Ophthalmology'}).bindPopup('
'+"Fisabio University Research Institute for Medical Ophthalmology"+'
'+'').addTo(d3);marker512 = L.marker([38.387263, -0.513879], {icon: orangeIcon, alt:'Inter-university Institute for Applied Modern Languages'}).bindPopup('
'+"Inter-university Institute for Applied Modern Languages"+'
'+'').addTo(d3);marker514 = L.marker([38.382832, -0.511658], {icon: orangeIcon, alt:'Inter-university Institute for Valencian Language Studies'}).bindPopup('
'+"Inter-university Institute for Valencian Language Studies"+'
'+'').addTo(d3);marker515 = L.marker([39.47526303366407, -0.3432160541084153], {icon: orangeIcon, alt:'Inter-university Institute of International Economics'}).bindPopup('
'+"Inter-university Institute of International Economics"+'
'+'').addTo(d3);marker516 = L.marker([39.50861551065933, -0.42121758177676866], {icon: orangeIcon, alt:'Inter-university Research Institute for Molecular Recognition and Technological Development (IDM)'}).bindPopup('
'+"Inter-university Research Institute for Molecular Recognition and Technological Development (IDM)"+'
'+'').addTo(d3);marker520 = L.marker([39.474794, -0.342878], {icon: orangeIcon, alt:'University Research Institute of Social Economy, Cooperativism and Entrepreneurship'}).bindPopup('
'+"University Research Institute of Social Economy, Cooperativism and Entrepreneurship"+'
'+'').addTo(d3);marker521 = L.marker([39.47492450260206, -0.3433895437080992], {icon: orangeIcon, alt:'University Research institute of Transit and Road safety [INTRAS]'}).bindPopup('
'+"University Research institute of Transit and Road safety [INTRAS]"+'
'+'').addTo(d3);marker522 = L.marker([39.513820, -0.425896], {icon: orangeIcon, alt:'University Research Institute on Robotics and Information and Communication Technologies (IRTIC)'}).bindPopup('
'+"University Research Institute on Robotics and Information and Communication Technologies (IRTIC)"+'
'+'').addTo(d3);
// Funció per redibuixar el mapa segons l'espai seleccionat
function Seleccionard3()
{
GoogleViewActiu=false;
map.addLayer(d3); // Activem el layer quan s'escollisca una opció del selector
var selectBox = document.getElementById("selectord3"); // Recollim el ID del selector
var selectedValue = selectBox.options[selectBox.selectedIndex].value; // Recollim el ID del valor polsat
// Extraem l'index de cadascun dels noms dels espais per redibuixar el mapa amb la localització i el titol adient
if (selectedValue==452){map.setView(new L.LatLng(39.478018, -0.359780), 22,{animation: true});marker452.bindPopup('
'+" Institute for the Research of the Psychology of Human Resources, Organisational Development and the Quality of Daily Life"+'
'+''+'').openPopup();}
if (selectedValue==452){var fenway = new google.maps.LatLng(39.478018, -0.359780); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==453){var fenway = new google.maps.LatLng(39.514739, -0.424333); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==456){var fenway = new google.maps.LatLng(39.589986, -0.395362); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==458){var fenway = new google.maps.LatLng(39.480945912530714, -0.4061265940455724); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==481){var fenway = new google.maps.LatLng(39.516761649230595, -0.4234859347343445); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==482){var fenway = new google.maps.LatLng(39.507141,-0.42098); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==483){var fenway = new google.maps.LatLng(39.51479662605908, -0.4242812097072602); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==484){var fenway = new google.maps.LatLng(39.478813, -0.343510); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==485){var fenway = new google.maps.LatLng(39.474927, -0.343470); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==486){var fenway = new google.maps.LatLng(39.475017, -0.343788); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==487){var fenway = new google.maps.LatLng(39.514011, -0.425509); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==488){var fenway = new google.maps.LatLng(39.514005, -0.425492); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==512){var fenway = new google.maps.LatLng(38.387263, -0.513879); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==513){var fenway = new google.maps.LatLng(39.475017, -0.343788); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==514){var fenway = new google.maps.LatLng(38.382832, -0.511658); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==515){var fenway = new google.maps.LatLng(39.47526303366407, -0.3432160541084153); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==516){var fenway = new google.maps.LatLng(39.50861551065933, -0.42121758177676866); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==517){var fenway = new google.maps.LatLng(39.477996, -0.376000); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==518){var fenway = new google.maps.LatLng(39.475017, -0.343788); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==520){var fenway = new google.maps.LatLng(39.474794, -0.342878); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==521){var fenway = new google.maps.LatLng(39.47492450260206, -0.3433895437080992); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==522){var fenway = new google.maps.LatLng(39.513820, -0.425896); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
// Funció per a definir que l'ultim marker pulsat ocupe el focus principal
if(selectedValue!==0)
{
var markerAux = "marker"+selectedValue
window[markerAux].setZIndexOffset(prioritatZ); // Augmentem la prioritat de l'ultim marker polsat
//console.log(markerAux);
prioritatZ ++; // El nivel de prioritat s'incrementarar en cada seleccio per a aconseguir que l'ultim marker polsat aparegue per damunt dels altres
}
Tancar(); // Amaguem el sidebar
}
// Funcio que serveix per a mostrar / ocultar el Google Maps
function ActivarGoogleViewd3(ipunto) // Recordem que en "ipunto" tenim la referència de l'index de l'opció seleccionada desde el selector
{
if (GoogleViewActiu==false) // Si el pano està inactiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "block"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=true;
//console.log("Dins del false -> true");
}
else // Si el pano ja està actiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "none"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=false;
//console.log("Dins del true -> false");
}
if (ipunto==452){var fenway = new google.maps.LatLng(39.478018, -0.359780); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==453){var fenway = new google.maps.LatLng(39.514739, -0.424333); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==456){var fenway = new google.maps.LatLng(39.589986, -0.395362); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==458){var fenway = new google.maps.LatLng(39.480945912530714, -0.4061265940455724); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==481){var fenway = new google.maps.LatLng(39.516761649230595, -0.4234859347343445); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==482){var fenway = new google.maps.LatLng(39.507141,-0.42098); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==483){var fenway = new google.maps.LatLng(39.51479662605908, -0.4242812097072602); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==484){var fenway = new google.maps.LatLng(39.478813, -0.343510); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==485){var fenway = new google.maps.LatLng(39.474927, -0.343470); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==486){var fenway = new google.maps.LatLng(39.475017, -0.343788); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==487){var fenway = new google.maps.LatLng(39.514011, -0.425509); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==488){var fenway = new google.maps.LatLng(39.514005, -0.425492); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==512){var fenway = new google.maps.LatLng(38.387263, -0.513879); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==513){var fenway = new google.maps.LatLng(39.475017, -0.343788); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==514){var fenway = new google.maps.LatLng(38.382832, -0.511658); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==515){var fenway = new google.maps.LatLng(39.47526303366407, -0.3432160541084153); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==516){var fenway = new google.maps.LatLng(39.50861551065933, -0.42121758177676866); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==517){var fenway = new google.maps.LatLng(39.477996, -0.376000); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==518){var fenway = new google.maps.LatLng(39.475017, -0.343788); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==520){var fenway = new google.maps.LatLng(39.474794, -0.342878); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==521){var fenway = new google.maps.LatLng(39.47492450260206, -0.3433895437080992); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==522){var fenway = new google.maps.LatLng(39.513820, -0.425896); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
}
'+'').addTo(d4);marker529 = L.marker([39.476861, -0.359377], {icon: yellowIcon, alt:'Interdisciplinary Research Structure for Economic and Social Behaviour (ERI-CES)'}).bindPopup('
'+"Interdisciplinary Research Structure for Economic and Social Behaviour (ERI-CES)"+'
'+'').addTo(d4);
// Funció per redibuixar el mapa segons l'espai seleccionat
function Seleccionard4()
{
GoogleViewActiu=false;
map.addLayer(d4); // Activem el layer quan s'escollisca una opció del selector
var selectBox = document.getElementById("selectord4"); // Recollim el ID del selector
var selectedValue = selectBox.options[selectBox.selectedIndex].value; // Recollim el ID del valor polsat
// Extraem l'index de cadascun dels noms dels espais per redibuixar el mapa amb la localització i el titol adient
if (selectedValue==527){map.setView(new L.LatLng(39.5156314,-0.4223676), 22,{animation: true});marker527.bindPopup('
'+''+'').openPopup();}
if (selectedValue==527){var fenway = new google.maps.LatLng(39.5156314,-0.4223676); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==528){var fenway = new google.maps.LatLng(39.478305,-0.360111); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==529){var fenway = new google.maps.LatLng(39.476861, -0.359377); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
// Funció per a definir que l'ultim marker pulsat ocupe el focus principal
if(selectedValue!==0)
{
var markerAux = "marker"+selectedValue
window[markerAux].setZIndexOffset(prioritatZ); // Augmentem la prioritat de l'ultim marker polsat
//console.log(markerAux);
prioritatZ ++; // El nivel de prioritat s'incrementarar en cada seleccio per a aconseguir que l'ultim marker polsat aparegue per damunt dels altres
}
Tancar(); // Amaguem el sidebar
}
// Funcio que serveix per a mostrar / ocultar el Google Maps
function ActivarGoogleViewd4(ipunto) // Recordem que en "ipunto" tenim la referència de l'index de l'opció seleccionada desde el selector
{
if (GoogleViewActiu==false) // Si el pano està inactiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "block"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=true;
//console.log("Dins del false -> true");
}
else // Si el pano ja està actiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "none"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=false;
//console.log("Dins del true -> false");
}
if (ipunto==527){var fenway = new google.maps.LatLng(39.5156314,-0.4223676); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==528){var fenway = new google.maps.LatLng(39.478305,-0.360111); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==529){var fenway = new google.maps.LatLng(39.476861, -0.359377); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
}
'+'').addTo(d5);
// Funció per redibuixar el mapa segons l'espai seleccionat
function Seleccionard5()
{
GoogleViewActiu=false;
map.addLayer(d5); // Activem el layer quan s'escollisca una opció del selector
var selectBox = document.getElementById("selectord5"); // Recollim el ID del selector
var selectedValue = selectBox.options[selectBox.selectedIndex].value; // Recollim el ID del valor polsat
// Extraem l'index de cadascun dels noms dels espais per redibuixar el mapa amb la localització i el titol adient
if (selectedValue==532){map.setView(new L.LatLng(39.945696,-1.1019614), 22,{animation: true});marker532.bindPopup('
'+''+'').openPopup();}
if (selectedValue==532){var fenway = new google.maps.LatLng(39.945696,-1.1019614); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==533){var fenway = new google.maps.LatLng(39.514739, -0.424333); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==534){var fenway = new google.maps.LatLng(39.479415, -0.364685); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (selectedValue==535){var fenway = new google.maps.LatLng(39.4753788,-0.386349); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
// Funció per a definir que l'ultim marker pulsat ocupe el focus principal
if(selectedValue!==0)
{
var markerAux = "marker"+selectedValue
window[markerAux].setZIndexOffset(prioritatZ); // Augmentem la prioritat de l'ultim marker polsat
//console.log(markerAux);
prioritatZ ++; // El nivel de prioritat s'incrementarar en cada seleccio per a aconseguir que l'ultim marker polsat aparegue per damunt dels altres
}
Tancar(); // Amaguem el sidebar
}
// Funcio que serveix per a mostrar / ocultar el Google Maps
function ActivarGoogleViewd5(ipunto) // Recordem que en "ipunto" tenim la referència de l'index de l'opció seleccionada desde el selector
{
if (GoogleViewActiu==false) // Si el pano està inactiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "block"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=true;
//console.log("Dins del false -> true");
}
else // Si el pano ja està actiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "none"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=false;
//console.log("Dins del true -> false");
}
if (ipunto==532){var fenway = new google.maps.LatLng(39.945696,-1.1019614); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==533){var fenway = new google.maps.LatLng(39.514739, -0.424333); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==534){var fenway = new google.maps.LatLng(39.479415, -0.364685); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}if (ipunto==535){var fenway = new google.maps.LatLng(39.4753788,-0.386349); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
}
'+'').addTo(d6);
// Funció per redibuixar el mapa segons l'espai seleccionat
function Seleccionard6()
{
GoogleViewActiu=false;
map.addLayer(d6); // Activem el layer quan s'escollisca una opció del selector
var selectBox = document.getElementById("selectord6"); // Recollim el ID del selector
var selectedValue = selectBox.options[selectBox.selectedIndex].value; // Recollim el ID del valor polsat
// Extraem l'index de cadascun dels noms dels espais per redibuixar el mapa amb la localització i el titol adient
if (selectedValue==544){map.setView(new L.LatLng(39.4757208,-0.3793035), 22,{animation: true});marker544.bindPopup('
'+''+'').openPopup();}
if (selectedValue==544){var fenway = new google.maps.LatLng(39.4757208,-0.3793035); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
// Funció per a definir que l'ultim marker pulsat ocupe el focus principal
if(selectedValue!==0)
{
var markerAux = "marker"+selectedValue
window[markerAux].setZIndexOffset(prioritatZ); // Augmentem la prioritat de l'ultim marker polsat
//console.log(markerAux);
prioritatZ ++; // El nivel de prioritat s'incrementarar en cada seleccio per a aconseguir que l'ultim marker polsat aparegue per damunt dels altres
}
Tancar(); // Amaguem el sidebar
}
// Funcio que serveix per a mostrar / ocultar el Google Maps
function ActivarGoogleViewd6(ipunto) // Recordem que en "ipunto" tenim la referència de l'index de l'opció seleccionada desde el selector
{
if (GoogleViewActiu==false) // Si el pano està inactiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "block"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=true;
//console.log("Dins del false -> true");
}
else // Si el pano ja està actiu
{
var elemento=document.getElementById("pano"); // Recollim la referència del div "pano" (on es dibuixa l'Street View)
elemento.style.display = "none"; // Mostrem el div "pano" amb Street View
GoogleViewActiu=false;
//console.log("Dins del true -> false");
}
if (ipunto==544){var fenway = new google.maps.LatLng(39.4757208,-0.3793035); var panoramaOptions ={position: fenway,pov: {heading: 45, pitch: 0}};var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);}
}
","");
// textoSin = textoSin.replace(" ","").replace("","");
// textoSin = textoSin.replace("","").replace("","");
textoSin = textoSin.replace(/<.*?>/g, "");
var hrefFace ="https://www.facebook.com/share.php?u="+urlLocal+"&t="; //FACEBOOK
//var hrefTwitter ="https://twitter.com/share?url="+urlLocal+"&text="; //TWITTER
var hrefTwitter ="https://twitter.com/intent/tweet?text="+textoSin+"&url="+urlLocal;
var hrefLinkedin ="https://www.linkedin.com/shareArticle?mini=true&url="+urlLocal+"&summary="; //LINKEDIN
var hrefPinterest ="https://www.pinterest.com/pin/create/button/?url="+urlLocal+"&description="; //PINTEREST
var hrefWhatsapp ="https://wa.me/?text="+urlLocal; //WHATSAPP
var hrefTelegram ="https://t.me/share/url?url="+urlLocal+"&text="; //TELEGRAM
var hrefTumblr ="https://tumblr.com/widgets/share/tool?canonicalUrl="+urlLocal+"&caption="; //TUMBLR
var hrefReddit ="https://www.reddit.com/submit?url="+urlLocal+"&title="; //REDDIT
var hrefGmail ="https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=&su="+textoSin+"&body="+urlLocal+"&ui=2&tf=1&pli=1"; //GMAIL
var hrefEmail ="mailto:?subject="+textoSin+"&body="+urlLocal; //EMAIL
// 2022
var urlLinkedin = "https://www.linkedin.com/sharing/share-offsite/?url="+encodeURIComponent(urlLocal);
//JQuery para añadir al código html de enlaces de las redes sociales
var cid = '';
$('.links'+cid).prepend(""); //TELEGRAM
$('.links'+cid).prepend(""); //WHATSAPP
//$('.links'+cid).prepend(""); //PINTEREST
//$('.links'+cid).prepend(""); //LINKEDIN
$('.links'+cid).prepend(""); //LINKEDIN
$('.links'+cid).prepend(""); //TWITTER
$('.links'+cid).prepend(""); //FACEBOOK
$('.blocRedes'+cid).append(""); //TUMBLR
$('.blocRedes'+cid).append(""); //REDDIT
$('.blocRedes'+cid).append(""); //GMAIL
$('.blocRedes'+cid).append(""); //EMAIL