function hidediv() { oj = prendiElementoDaId('HOT');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('RES');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('BAR');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('APP');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('CIN');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('GIO');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('RIS');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('ABB');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('COM');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('CAR');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('EST');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('FOT');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('SPO');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('NOL');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('SAN');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('UFP');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('AGE');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('TRA');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('PRI');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('RIF');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('IND');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('WEL');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('BBK');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('CCM');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('SCI');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('WVN');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('SPD');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('NAT');if (oj!=null){oj.style.display="none";}oj = prendiElementoDaId('SAC');if (oj!=null){oj.style.display="none";} } function inizMk () { mkHOT =[];mkRES =[];mkBAR =[];mkAPP =[];mkCIN =[];mkGIO =[];mkRIS =[];mkABB =[];mkCOM =[];mkCAR =[];mkEST =[];mkFOT =[];mkSPO =[];mkNOL =[];mkSAN =[];mkUFP =[];mkAGE =[];mkTRA =[];mkPRI =[];mkRIF =[];mkIND =[];mkWEL =[];mkBBK =[];mkCCM =[];mkSCI =[];mkWVN =[];mkSPD =[];mkNAT =[];mkSAC =[]; mkelevato = []; /*Categoria con strutture zoom >11*/ mkunico = []; /*Categoria marker visibili con il click sui risultati*/ } function visualizzaCategorie() { /*Cancellazione marker precedenti*/ mgr.clearMarkers(); mappa.clearOverlays(); mgr.addMarkers(mkHOT,14,17);mgr.addMarkers(mkRES,14,17);mgr.addMarkers(mkBAR,14,17);mgr.addMarkers(mkAPP,14,17);mgr.addMarkers(mkCIN,14,17);mgr.addMarkers(mkGIO,14,17);mgr.addMarkers(mkRIS,14,17);mgr.addMarkers(mkABB,14,17);mgr.addMarkers(mkCOM,14,17);mgr.addMarkers(mkCAR,14,17);mgr.addMarkers(mkEST,14,17);mgr.addMarkers(mkFOT,14,17);mgr.addMarkers(mkSPO,14,17);mgr.addMarkers(mkNOL,14,17);mgr.addMarkers(mkSAN,14,17);mgr.addMarkers(mkUFP,14,17);mgr.addMarkers(mkAGE,14,17);mgr.addMarkers(mkTRA,14,17);mgr.addMarkers(mkPRI,14,17);mgr.addMarkers(mkRIF,14,17);mgr.addMarkers(mkIND,14,17);mgr.addMarkers(mkWEL,14,17);mgr.addMarkers(mkBBK,14,17);mgr.addMarkers(mkCCM,14,17);mgr.addMarkers(mkSCI,14,17);mgr.addMarkers(mkWVN,14,17);mgr.addMarkers(mkSPD,14,17);mgr.addMarkers(mkNAT,14,17);mgr.addMarkers(mkSAC,14,17); mgr.addMarkers(mkelevato,0,13); /*Visualizza marker cumulativi da zoom <11*/ mgr.refresh(); /*Stampa marker su mappa*/ } iconaHOT = new GIcon();iconaHOT.image = 'icoHOT.png';iconaHOT.iconSize = new GSize(20, 20);iconaHOT.iconAnchor = new GPoint(12, 34);iconaHOT.infoWindowAnchor = new GPoint(21, 1);iconaRES = new GIcon();iconaRES.image = 'icoRES.png';iconaRES.iconSize = new GSize(20, 20);iconaRES.iconAnchor = new GPoint(12, 34);iconaRES.infoWindowAnchor = new GPoint(21, 1);iconaBAR = new GIcon();iconaBAR.image = 'icoBAR.png';iconaBAR.iconSize = new GSize(20, 20);iconaBAR.iconAnchor = new GPoint(12, 34);iconaBAR.infoWindowAnchor = new GPoint(21, 1);iconaAPP = new GIcon();iconaAPP.image = 'icoAPP.png';iconaAPP.iconSize = new GSize(20, 20);iconaAPP.iconAnchor = new GPoint(12, 34);iconaAPP.infoWindowAnchor = new GPoint(21, 1);iconaCIN = new GIcon();iconaCIN.image = 'icoCIN.png';iconaCIN.iconSize = new GSize(20, 20);iconaCIN.iconAnchor = new GPoint(12, 34);iconaCIN.infoWindowAnchor = new GPoint(21, 1);iconaGIO = new GIcon();iconaGIO.image = 'icoGIO.png';iconaGIO.iconSize = new GSize(20, 20);iconaGIO.iconAnchor = new GPoint(12, 34);iconaGIO.infoWindowAnchor = new GPoint(21, 1);iconaRIS = new GIcon();iconaRIS.image = 'icoRIS.png';iconaRIS.iconSize = new GSize(20, 20);iconaRIS.iconAnchor = new GPoint(12, 34);iconaRIS.infoWindowAnchor = new GPoint(21, 1);iconaABB = new GIcon();iconaABB.image = 'icoABB.png';iconaABB.iconSize = new GSize(20, 20);iconaABB.iconAnchor = new GPoint(12, 34);iconaABB.infoWindowAnchor = new GPoint(21, 1);iconaCOM = new GIcon();iconaCOM.image = 'icoCOM.png';iconaCOM.iconSize = new GSize(20, 20);iconaCOM.iconAnchor = new GPoint(12, 34);iconaCOM.infoWindowAnchor = new GPoint(21, 1);iconaCAR = new GIcon();iconaCAR.image = 'icoCAR.png';iconaCAR.iconSize = new GSize(20, 20);iconaCAR.iconAnchor = new GPoint(12, 34);iconaCAR.infoWindowAnchor = new GPoint(21, 1);iconaEST = new GIcon();iconaEST.image = 'icoEST.png';iconaEST.iconSize = new GSize(20, 20);iconaEST.iconAnchor = new GPoint(12, 34);iconaEST.infoWindowAnchor = new GPoint(21, 1);iconaFOT = new GIcon();iconaFOT.image = 'icoFOT.png';iconaFOT.iconSize = new GSize(20, 20);iconaFOT.iconAnchor = new GPoint(12, 34);iconaFOT.infoWindowAnchor = new GPoint(21, 1);iconaSPO = new GIcon();iconaSPO.image = 'icoSPO.png';iconaSPO.iconSize = new GSize(20, 20);iconaSPO.iconAnchor = new GPoint(12, 34);iconaSPO.infoWindowAnchor = new GPoint(21, 1);iconaNOL = new GIcon();iconaNOL.image = 'icoNOL.png';iconaNOL.iconSize = new GSize(20, 20);iconaNOL.iconAnchor = new GPoint(12, 34);iconaNOL.infoWindowAnchor = new GPoint(21, 1);iconaSAN = new GIcon();iconaSAN.image = 'icoSAN.png';iconaSAN.iconSize = new GSize(20, 20);iconaSAN.iconAnchor = new GPoint(12, 34);iconaSAN.infoWindowAnchor = new GPoint(21, 1);iconaUFP = new GIcon();iconaUFP.image = 'icoUFP.png';iconaUFP.iconSize = new GSize(20, 20);iconaUFP.iconAnchor = new GPoint(12, 34);iconaUFP.infoWindowAnchor = new GPoint(21, 1);iconaAGE = new GIcon();iconaAGE.image = 'icoAGE.png';iconaAGE.iconSize = new GSize(20, 20);iconaAGE.iconAnchor = new GPoint(12, 34);iconaAGE.infoWindowAnchor = new GPoint(21, 1);iconaTRA = new GIcon();iconaTRA.image = 'icoTRA.png';iconaTRA.iconSize = new GSize(20, 20);iconaTRA.iconAnchor = new GPoint(12, 34);iconaTRA.infoWindowAnchor = new GPoint(21, 1);iconaPRI = new GIcon();iconaPRI.image = 'icoPRI.png';iconaPRI.iconSize = new GSize(20, 20);iconaPRI.iconAnchor = new GPoint(12, 34);iconaPRI.infoWindowAnchor = new GPoint(21, 1);iconaRIF = new GIcon();iconaRIF.image = 'icoRIF.png';iconaRIF.iconSize = new GSize(20, 20);iconaRIF.iconAnchor = new GPoint(12, 34);iconaRIF.infoWindowAnchor = new GPoint(21, 1);iconaIND = new GIcon();iconaIND.image = 'icoIND.png';iconaIND.iconSize = new GSize(20, 20);iconaIND.iconAnchor = new GPoint(12, 34);iconaIND.infoWindowAnchor = new GPoint(21, 1);iconaWEL = new GIcon();iconaWEL.image = 'icoWEL.png';iconaWEL.iconSize = new GSize(20, 20);iconaWEL.iconAnchor = new GPoint(12, 34);iconaWEL.infoWindowAnchor = new GPoint(21, 1);iconaBBK = new GIcon();iconaBBK.image = 'icoBBK.png';iconaBBK.iconSize = new GSize(20, 20);iconaBBK.iconAnchor = new GPoint(12, 34);iconaBBK.infoWindowAnchor = new GPoint(21, 1);iconaCCM = new GIcon();iconaCCM.image = 'icoCCM.png';iconaCCM.iconSize = new GSize(20, 20);iconaCCM.iconAnchor = new GPoint(12, 34);iconaCCM.infoWindowAnchor = new GPoint(21, 1);iconaSCI = new GIcon();iconaSCI.image = 'icoSCI.png';iconaSCI.iconSize = new GSize(20, 20);iconaSCI.iconAnchor = new GPoint(12, 34);iconaSCI.infoWindowAnchor = new GPoint(21, 1);iconaWVN = new GIcon();iconaWVN.image = 'icoWVN.png';iconaWVN.iconSize = new GSize(20, 20);iconaWVN.iconAnchor = new GPoint(12, 34);iconaWVN.infoWindowAnchor = new GPoint(21, 1);iconaSPD = new GIcon();iconaSPD.image = 'icoSPD.png';iconaSPD.iconSize = new GSize(20, 20);iconaSPD.iconAnchor = new GPoint(12, 34);iconaSPD.infoWindowAnchor = new GPoint(21, 1);iconaNAT = new GIcon();iconaNAT.image = 'icoNAT.png';iconaNAT.iconSize = new GSize(20, 20);iconaNAT.iconAnchor = new GPoint(12, 34);iconaNAT.infoWindowAnchor = new GPoint(21, 1);iconaSAC = new GIcon();iconaSAC.image = 'icoSAC.png';iconaSAC.iconSize = new GSize(20, 20);iconaSAC.iconAnchor = new GPoint(12, 34);iconaSAC.infoWindowAnchor = new GPoint(21, 1); function pushMarker(lat,lng,testo,categoria,stato) { switch (categoria) {case 'HOT': {var marker = createMarker(lat,lng,testo,iconaHOT,stato);mkHOT.push(marker);break;}case 'RES': {var marker = createMarker(lat,lng,testo,iconaRES,stato);mkRES.push(marker);break;}case 'BAR': {var marker = createMarker(lat,lng,testo,iconaBAR,stato);mkBAR.push(marker);break;}case 'APP': {var marker = createMarker(lat,lng,testo,iconaAPP,stato);mkAPP.push(marker);break;}case 'CIN': {var marker = createMarker(lat,lng,testo,iconaCIN,stato);mkCIN.push(marker);break;}case 'GIO': {var marker = createMarker(lat,lng,testo,iconaGIO,stato);mkGIO.push(marker);break;}case 'RIS': {var marker = createMarker(lat,lng,testo,iconaRIS,stato);mkRIS.push(marker);break;}case 'ABB': {var marker = createMarker(lat,lng,testo,iconaABB,stato);mkABB.push(marker);break;}case 'COM': {var marker = createMarker(lat,lng,testo,iconaCOM,stato);mkCOM.push(marker);break;}case 'CAR': {var marker = createMarker(lat,lng,testo,iconaCAR,stato);mkCAR.push(marker);break;}case 'EST': {var marker = createMarker(lat,lng,testo,iconaEST,stato);mkEST.push(marker);break;}case 'FOT': {var marker = createMarker(lat,lng,testo,iconaFOT,stato);mkFOT.push(marker);break;}case 'SPO': {var marker = createMarker(lat,lng,testo,iconaSPO,stato);mkSPO.push(marker);break;}case 'NOL': {var marker = createMarker(lat,lng,testo,iconaNOL,stato);mkNOL.push(marker);break;}case 'SAN': {var marker = createMarker(lat,lng,testo,iconaSAN,stato);mkSAN.push(marker);break;}case 'UFP': {var marker = createMarker(lat,lng,testo,iconaUFP,stato);mkUFP.push(marker);break;}case 'AGE': {var marker = createMarker(lat,lng,testo,iconaAGE,stato);mkAGE.push(marker);break;}case 'TRA': {var marker = createMarker(lat,lng,testo,iconaTRA,stato);mkTRA.push(marker);break;}case 'PRI': {var marker = createMarker(lat,lng,testo,iconaPRI,stato);mkPRI.push(marker);break;}case 'RIF': {var marker = createMarker(lat,lng,testo,iconaRIF,stato);mkRIF.push(marker);break;}case 'IND': {var marker = createMarker(lat,lng,testo,iconaIND,stato);mkIND.push(marker);break;}case 'WEL': {var marker = createMarker(lat,lng,testo,iconaWEL,stato);mkWEL.push(marker);break;}case 'BBK': {var marker = createMarker(lat,lng,testo,iconaBBK,stato);mkBBK.push(marker);break;}case 'CCM': {var marker = createMarker(lat,lng,testo,iconaCCM,stato);mkCCM.push(marker);break;}case 'SCI': {var marker = createMarker(lat,lng,testo,iconaSCI,stato);mkSCI.push(marker);break;}case 'WVN': {var marker = createMarker(lat,lng,testo,iconaWVN,stato);mkWVN.push(marker);break;}case 'SPD': {var marker = createMarker(lat,lng,testo,iconaSPD,stato);mkSPD.push(marker);break;}case 'NAT': {var marker = createMarker(lat,lng,testo,iconaNAT,stato);mkNAT.push(marker);break;}case 'SAC': {var marker = createMarker(lat,lng,testo,iconaSAC,stato);mkSAC.push(marker);break;}} } function zelevato(lat,lng,txt) { if (txt!="finestr") { contHOT=0;tHOT="";contRES=0;tRES="";contBAR=0;tBAR="";contAPP=0;tAPP="";contCIN=0;tCIN="";contGIO=0;tGIO="";contRIS=0;tRIS="";contABB=0;tABB="";contCOM=0;tCOM="";contCAR=0;tCAR="";contEST=0;tEST="";contFOT=0;tFOT="";contSPO=0;tSPO="";contNOL=0;tNOL="";contSAN=0;tSAN="";contUFP=0;tUFP="";contAGE=0;tAGE="";contTRA=0;tTRA="";contPRI=0;tPRI="";contRIF=0;tRIF="";contIND=0;tIND="";contWEL=0;tWEL="";contBBK=0;tBBK="";contCCM=0;tCCM="";contSCI=0;tSCI="";contWVN=0;tWVN="";contSPD=0;tSPD="";contNAT=0;tNAT="";contSAC=0;tSAC=""; vettot=txt.split("|"); conta=0; while (vettot[conta]!="finestr") { switch (vettot[conta]) { case 'HOT': contHOT++;tHOT+=vettot[conta+1]+'
';break;case 'RES': contRES++;tRES+=vettot[conta+1]+'
';break;case 'BAR': contBAR++;tBAR+=vettot[conta+1]+'
';break;case 'APP': contAPP++;tAPP+=vettot[conta+1]+'
';break;case 'CIN': contCIN++;tCIN+=vettot[conta+1]+'
';break;case 'GIO': contGIO++;tGIO+=vettot[conta+1]+'
';break;case 'RIS': contRIS++;tRIS+=vettot[conta+1]+'
';break;case 'ABB': contABB++;tABB+=vettot[conta+1]+'
';break;case 'COM': contCOM++;tCOM+=vettot[conta+1]+'
';break;case 'CAR': contCAR++;tCAR+=vettot[conta+1]+'
';break;case 'EST': contEST++;tEST+=vettot[conta+1]+'
';break;case 'FOT': contFOT++;tFOT+=vettot[conta+1]+'
';break;case 'SPO': contSPO++;tSPO+=vettot[conta+1]+'
';break;case 'NOL': contNOL++;tNOL+=vettot[conta+1]+'
';break;case 'SAN': contSAN++;tSAN+=vettot[conta+1]+'
';break;case 'UFP': contUFP++;tUFP+=vettot[conta+1]+'
';break;case 'AGE': contAGE++;tAGE+=vettot[conta+1]+'
';break;case 'TRA': contTRA++;tTRA+=vettot[conta+1]+'
';break;case 'PRI': contPRI++;tPRI+=vettot[conta+1]+'
';break;case 'RIF': contRIF++;tRIF+=vettot[conta+1]+'
';break;case 'IND': contIND++;tIND+=vettot[conta+1]+'
';break;case 'WEL': contWEL++;tWEL+=vettot[conta+1]+'
';break;case 'BBK': contBBK++;tBBK+=vettot[conta+1]+'
';break;case 'CCM': contCCM++;tCCM+=vettot[conta+1]+'
';break;case 'SCI': contSCI++;tSCI+=vettot[conta+1]+'
';break;case 'WVN': contWVN++;tWVN+=vettot[conta+1]+'
';break;case 'SPD': contSPD++;tSPD+=vettot[conta+1]+'
';break;case 'NAT': contNAT++;tNAT+=vettot[conta+1]+'
';break;case 'SAC': contSAC++;tSAC+=vettot[conta+1]+'
';break; } conta+=2; } tHOT+="";tRES+="";tBAR+="";tAPP+="";tCIN+="";tGIO+="";tRIS+="";tABB+="";tCOM+="";tCAR+="";tEST+="";tFOT+="";tSPO+="";tNOL+="";tSAN+="";tUFP+="";tAGE+="";tTRA+="";tPRI+="";tRIF+="";tIND+="";tWEL+="";tBBK+="";tCCM+="";tSCI+="";tWVN+="";tSPD+="";tNAT+="";tSAC+=""; txt="
"; if (contHOT>0) { txt+="Hotel("+contHOT+"):