diff --git a/admin/admin.db b/admin/admin.db index 11bfe08..1ca9127 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/aplicmap/index.htm b/aplicmap/index.htm index 88f04f4..0c761d9 100755 --- a/aplicmap/index.htm +++ b/aplicmap/index.htm @@ -4,6 +4,6 @@ \ No newline at end of file diff --git a/aplicmap/index.html b/aplicmap/index.html index 88f04f4..0c761d9 100755 --- a/aplicmap/index.html +++ b/aplicmap/index.html @@ -4,6 +4,6 @@ \ No newline at end of file diff --git a/aplicmap/legenda10.htm b/aplicmap/legenda10.htm new file mode 100755 index 0000000..548b567 --- /dev/null +++ b/aplicmap/legenda10.htm @@ -0,0 +1,63 @@ + diff --git a/css/black.css b/css/black.css index 81e5354..2c2ae2e 100755 --- a/css/black.css +++ b/css/black.css @@ -40,8 +40,70 @@ menu de contexto da arvore de camadas color: white; } +.i3GEOcorpoLegi { + min-height:200px; +} + +/* +Botao de ligar desligar do tipo chave da legenda +*/ +.i3GEOcorpoLegi .temaSwitch { + position: relative; + display: inline-block; + width: 36px; + height: 18px; + top: 3px; +} + +.i3GEOcorpoLegi .temaSwitch input { + display:none; +} + +.i3GEOcorpoLegi .temaSlider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; +} + +.i3GEOcorpoLegi .temaSlider:before { + position: absolute; + content: ""; + height: 14px; + width: 14px; + left: 1px; + bottom: 2px; + background-color: white; +} + +.i3GEOcorpoLegi input:checked + .temaSlider { + background-color: rgb(100, 170, 200); +} + +.i3GEOcorpoLegi input:focus + .temaSlider { + box-shadow: 0 0 1px rgb(100, 170, 200); +} + +.i3GEOcorpoLegi input:checked + .temaSlider:before { + -webkit-transform: translateX(20px); + -ms-transform: translateX(20px); + transform: translateX(20px); +} + +.i3GEOcorpoLegi .temaSlider.round { + border-radius: 34px; +} + +.i3GEOcorpoLegi .temaSlider.round:before { + border-radius: 50%; +} + + /* -Botao de ligar desligar do tipo chave +Botao de ligar desligar do tipo chave da arvore de camadas */ .i3GEOarvCam .temaSwitch { position: relative; diff --git a/js/arvoredecamadas.js b/js/arvoredecamadas.js index 5261ddf..6067c92 100755 --- a/js/arvoredecamadas.js +++ b/js/arvoredecamadas.js @@ -316,7 +316,7 @@ i3GEO.arvoreDeCamadas = /** * depreciado em 6.0 */ - ARRASTARLIXEIRA : true, + ARRASTARLIXEIRA : false, /** * depreciado em 6.0 */ @@ -1400,10 +1400,15 @@ i3GEO.arvoreDeCamadas = dragEl = this.getDragEl(); clickEl = this.getEl(); Dom.setStyle(clickEl, "visibility", "hidden"); - dragEl.innerHTML = clickEl.innerHTML; + if(clickEl.getElementsByTagName("span")){ + dragEl.innerHTML = clickEl.getElementsByTagName("span")[0].innerHTML; + } else{ + dragEl.innerHTML = clickEl.innerHTML; + } Dom.setStyle(dragEl, "color", Dom.getStyle(clickEl, "color")); Dom.setStyle(dragEl, "backgroundColor", Dom.getStyle(clickEl, "backgroundColor")); - Dom.setStyle(dragEl, "border", "4px solid gray"); + Dom.setStyle(dragEl, "fontSize", Dom.getStyle(clickEl, "fontSize")); + Dom.setStyle(dragEl, "border", "2px solid gray"); Dom.setStyle(dragEl, "padding", "5px"); Dom.setStyle(dragEl, "z-index", "5000"); }, @@ -1485,20 +1490,20 @@ i3GEO.arvoreDeCamadas = this.goingUp = false; } this.lastY = y; - if (i3GEO.guias.TIPO === "movel") { - YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde", "opacity", 0.9); - } + //if (i3GEO.guias.TIPO === "movel") { + // YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde", "opacity", 0.9); + //} }, onDragOver : function(e, id) { var destEl; destEl = YAHOO.util.Dom.get(id); var dragEl = this.getDragEl(); - Dom.setStyle(dragEl, "border", "4px solid red"); + Dom.setStyle(dragEl, "border", "2px solid blue"); // We are only concerned with list items, we // ignore the dragover // notifications for the list. if ($i("i3geo_lixeira") && id === "i3geo_lixeira") { - $i("i3geo_lixeira").style.border = "2px solid red"; + $i("i3geo_lixeira").style.border = "2px solid blue"; } else { destEl.style.textDecoration = "underline"; } @@ -1506,7 +1511,7 @@ i3GEO.arvoreDeCamadas = onDragOut : function(e, id) { $i(id).style.textDecoration = "none"; var dragEl = this.getDragEl(); - Dom.setStyle(dragEl, "border", "4px solid gray"); + Dom.setStyle(dragEl, "border", "2px solid gray"); } }); Event.onDOMReady(YAHOO.example.DDApp.init, YAHOO.example.DDApp, true); @@ -1714,7 +1719,7 @@ i3GEO.arvoreDeCamadas = */ inverteStatusClasse : function(leg) { var temp = function(retorno) { - i3GEO.atualiza(); + //i3GEO.atualiza(); i3GEO.Interface.atualizaTema(retorno, leg.name); // obtem o objeto checkbox var ck = ""; @@ -1812,7 +1817,7 @@ i3GEO.arvoreDeCamadas = html += " "; if(i3GEO.arvoreDeCamadas.MENUCOTEXTOTEMA === true){ - html += "" + tema.tema + ""; + html += "" + tema.tema + ""; } else{ html += tema.tema + ""; diff --git a/js/compactados/arvoredecamadas_compacto.js b/js/compactados/arvoredecamadas_compacto.js index a1503c5..c62cae2 100755 --- a/js/compactados/arvoredecamadas_compacto.js +++ b/js/compactados/arvoredecamadas_compacto.js @@ -1 +1 @@ -if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.arvoreDeCamadas={ARVORE:null,IDHTML:"listaTemas",CAMADASINICIAIS:"",CAMADAS:"",FINALIZA:"",finaliza:"",NOTEMA:{expanded:true,hasIcon:false,enableHighlight:false},NOTEMAICONES:{expanded:false,hasIcon:true,enableHighlight:false},INCLUILFUNDO:true,ATIVATEMA:"",TEMPLATELEGENDA:"legenda5.htm",BARRAPROGRESSO:true,MOSTRALISTAKML:false,FILTRO:"",VERIFICAABRANGENCIATEMAS:false,EXPANDESOLEGENDA:false,PERMITEEXPANDIRTEMAS:true,ARRASTARORDEM:true,REFRESH:true,ARRASTARLIXEIRA:true,ALTERAOPACIDADE:false,FERRAMENTAS:true,IMPRIMIR:false,ANIMAMAPA:false,LIGARDESLIGARTODOS:true,FILTRAR:true,ABRELEGENDA:true,EXPANDIDA:false,LEGENDAEXPANDIDA:false,MOSTRATITULO:false,OPCOESICONES:false,MENUCOTEXTOTEMA:true,OPCOESTEMAS:true,OPCOESLEGENDA:true,OPCOESARVORE:true,AGUARDALEGENDA:false,ICONETEMA:true,FUNCOES:{farolescala:true,excluir:true,sobe:true,desce:true,fonte:true,zoomtema:true,compartilhar:true,opacidade:true,mudanome:true,procurar:true,toponimia:true,etiquetas:true,filtrar:true,tabela:true,grafico:true,editorlegenda:true,destacar:true,cortina:true,sql:true,comentar:true,temporizador:true,wms:true,tme:true,copia:true,storymap:true,animagif:true,selecao:true},SID:null,LOCAPLIC:null,CONFIGICONES:{"ajuda":{tipo:"arvore",icone:"",classe:"ajudaMapa",funcao:"i3GEO.arvoreDeCamadas.ajudaEmLista()",title:$trad("s1"),dica:"",id:"ajudaMapa",status:true},"refresh":{tipo:"arvore",icone:"",classe:"i3geo_refresh2",funcao:"i3GEO.arvoreDeCamadas.atualiza(i3GEO.arvoreDeCamadas.CAMADAS,true)",title:"Refresh",dica:$trad("refresh"),curto:"Refresh",id:"i3geo_refresh",status:true},"legenda":{tipo:"arvore",icone:"",classe:"soltaleg2",funcao:"i3GEO.mapa.legendaHTML.libera()",title:$trad("t2b"),dica:$trad("legenda"),id:"soltaleg2",status:false},"olhoaberto":{tipo:"arvore",icone:"",classe:"olhoAberto",funcao:"i3GEO.arvoreDeCamadas.aplicaTemas(\"ligartodos\")",title:$trad("t3a"),dica:$trad("t3a"),id:"olhoAberto",status:true},"olhofechado":{tipo:"arvore",icone:"",classe:"olhoFechado",funcao:"i3GEO.arvoreDeCamadas.aplicaTemas(\"desligartodos\")",title:$trad("t3b"),dica:$trad("t3b"),id:"olhoFechado",status:true},"lixeira":{tipo:"arvore",icone:"",classe:"i3geo_lixeira",funcao:"i3GEO.arvoreDeCamadas.dialogo.excluir()",title:$trad("t2"),dica:$trad("lixeira"),curto:$trad("t12"),id:"i3geo_lixeira",status:true},"filtro":{tipo:"arvore",icone:"",classe:"i3geo_filtro",funcao:"i3GEO.arvoreDeCamadas.dialogo.filtro()",title:$trad("t2a"),dica:$trad("filtraCam"),id:"i3geo_filtro",status:true},"opacidade":{tipo:"arvore",icone:"",classe:"opacidadeMapa",funcao:"i3GEO.mapa.dialogo.opacidade()",title:$trad("t20"),dica:"",id:"opacidadeMapa",status:false},"animacao":{tipo:"arvore",icone:"",classe:"animaMapa",funcao:"i3GEO.mapa.dialogo.animacao()",title:$trad("p21"),dica:"",id:"animaMapa",status:false},"imprimir":{tipo:"arvore",icone:"",classe:"imprimirMapa",funcao:"i3GEO.mapa.dialogo.imprimir()",title:$trad("d12"),dica:"",id:"imprimirMapa",status:false},"ferramentas":{tipo:"arvore",icone:"",classe:"ferramentasMapa",funcao:"i3GEO.mapa.dialogo.ferramentas()",title:$trad("u15a"),dica:$trad("ferramMapa"),id:"ferramentasMapa",status:true},"limpasel":{tipo:"arvore",icone:"",classe:"ferramentasMapa",funcao:"i3GEO.mapa.limpasel()",title:$trad("t4"),dica:$trad("t4"),id:"limpaSelMapa",status:true},"ferramentasTema":{tipo:"tema",icone:"imagens/oxygen/16x16/configure-shortcuts.png",classe:"arvCamFerramentas",funcao:"i3GEO.tema.dialogo.atalhoscamada",title:$trad("u15a"),dica:$trad("ferramCamadas"),id:"",status:true,flag:true},"removerTema":{tipo:"tema",icone:"imagens/oxygen/16x16/draw-x.png",classe:"arvCamRemoveLayer",funcao:"i3GEO.tema.exclui",title:$trad("t12"),dica:$trad("t12a"),id:"",status:true,flag:true},"zoomtema":{tipo:"tema",icone:"imagens/gisicons/zoom-layer.png",classe:"arvCamZoomLayer",funcao:"i3GEO.tema.zoom",title:$trad("t17"),dica:$trad("t18"),id:"",status:true,flag:true},"sobe":{tipo:"tema",icone:"imagens/oxygen/16x16/draw-triangle3.png",classe:"arvCamSobeLayer",funcao:"i3GEO.tema.sobe",title:$trad("t13"),dica:$trad("t14"),id:"",status:true,flag:true},"desce":{tipo:"tema",icone:"imagens/oxygen/16x16/draw-triangle4.png",classe:"arvCamDesceLayer",funcao:"i3GEO.tema.desce",title:$trad("t15"),dica:$trad("t16"),id:"",status:true,flag:true},"contextoescala":{tipo:"tema",icone:"imagens/oxygen/16x16/task-attempt.png",classe:"arvCamDependeEscala",funcao:"",title:$trad("t36"),dica:$trad("t36"),id:"",status:true,flag:true},"selecionado":{tipo:"tema",icone:"imagens/gisicons/select-cancel.png",classe:"arvCamSelecionado",funcao:"i3GEO.tema.limpasel",title:$trad("t4"),dica:$trad("t5"),id:"",status:true,flag:true},"zoomsel":{tipo:"tema",icone:"imagens/gisicons/zoom-selection.png",classe:"arvCamZoomSelecionado",funcao:"i3GEO.tema.zoomsel",title:$trad("t4a"),dica:$trad("t5"),id:"",status:true,flag:true},"link":{tipo:"tema",icone:"imagens/oxygen/16x16/help-about.png",classe:"arvCamFonte",funcao:"i3GEO.tema.fonte",title:$trad("a9"),dica:$trad("a9"),id:"",status:true,flag:true},"download":{tipo:"tema",icone:"imagens/oxygen/16x16/download.png",classe:"arvCamDownload",funcao:"i3GEO.tema.dialogo.download",title:"Download",dica:$trad("t6"),id:"",status:true,flag:true},"ogc":{tipo:"tema",icone:"imagens/oxygen/16x16/application-x-smb-workgroup.png",classe:"arvCamOgc",funcao:"i3GEO.tema.dialogo.ogcwindow",title:"OGC",dica:"OGC",id:"",status:true,flag:true}},cria:function(onde,temas,g_sid,g_locaplic,funcaoTema){if(!YAHOO.lang.isUndefined(funcaoTema)){i3GEO.arvoreDeCamadas.ATIVATEMA=funcaoTema}var novoel,temp;if(i3GEO.arvoreDeCamadas.BARRAPROGRESSO===true&&i3GEO.Interface.ATUAL==="openlayers"){if(!$i("i3GEOprogressoDiv")){novoel=document.createElement("div");novoel.id="i3GEOprogressoDiv";novoel.style.position="absolute";novoel.style.top="0px";novoel.style.zIndex="50000";novoel.style.left=((i3GEO.parametros.w/2)-75)+"px";novoel.style.display="none";$i(i3GEO.Interface.IDMAPA).appendChild(novoel);i3GEO.arvoreDeCamadas.progressBar=new YAHOO.widget.ProgressBar({height:5,width:150,minValue:1,maxValue:0,value:0}).render("i3GEOprogressoDiv")}}i3GEO.arvoreDeCamadas.SID=typeof(g_sid)!=='undefined'?g_sid:i3GEO.configura.sid;i3GEO.arvoreDeCamadas.LOCAPLIC=typeof(g_locaplic)!=='undefined'?g_locaplic:i3GEO.configura.locaplic;if(onde!==""){i3GEO.arvoreDeCamadas.IDHTML=onde}if(i3GEO.arvoreDeCamadas.IDHTML===""){return}temp=$i(i3GEO.arvoreDeCamadas.IDHTML);if(!temp){return}if(temp.className===""){temp.className="i3GEOarvCam"}if(YAHOO.lang.isUndefined(temas)||temas===""){temas=i3GEO.arvoreDeCamadas.CAMADAS}i3GEO.arvoreDeCamadas.atualiza(temas);if(i3GEO.arvoreDeCamadas.finaliza!==""){alert("i3GEO.arvoreDeCamadas.finaliza depreciado. Utilize i3GEO.arvoreDeCamadas.FINALIZA");i3GEO.arvoreDeCamadas.FINALIZA=i3GEO.arvoreDeCamadas.finaliza;eval(i3GEO.arvoreDeCamadas.finaliza)}if(i3GEO.arvoreDeCamadas.FINALIZA!==""){if(YAHOO.lang.isFunction(i3GEO.arvoreDeCamadas.FINALIZA)){i3GEO.arvoreDeCamadas.FINALIZA.call()}else{if(i3GEO.arvoreDeCamadas.FINALIZA!=""){eval(i3GEO.arvoreDeCamadas.FINALIZA)}}}},inicia:function(id){i3GEO.arvoreDeCamadas.cria(id);i3GEO.arvoreDeCamadas.atualiza();if(i3GEO.arvoreDeCamadas.FINALIZA!==""){if(YAHOO.lang.isFunction(i3GEO.arvoreDeCamadas.FINALIZA)){i3GEO.arvoreDeCamadas.FINALIZA.call()}else{if(i3GEO.arvoreDeCamadas.FINALIZA!=""){eval(i3GEO.arvoreDeCamadas.FINALIZA)}}}},atualiza:function(temas,forca){if(arguments.length===0){temas=i3GEO.arvoreDeCamadas.CAMADAS;i3GEO.arvoreDeCamadas.CAMADAS="";forca=false}var temp,newVal,root,tempNode,titulo="",d,c,ltema,temaNode,temaNodeFilho="",i,j,n,nk,k,noGrupo,incluidos=[],grupoNode="",grupoLayers=i3GEO.configura.grupoLayers,textoTema="";temp=$i(i3GEO.arvoreDeCamadas.IDHTML);if(temp){if(forca===true){temp.innerHTML=""}if(temp.innerHTML!==""){if(i3GEO.arvoreDeCamadas.comparaTemas(temas,i3GEO.arvoreDeCamadas.CAMADAS)){i3GEO.arvoreDeCamadas.CAMADAS=temas;return}}}else{return}i3GEO.util.defineValor(i3GEO.arvoreDeCamadas.IDHTML,"innerHTML","");i3GEO.arvoreDeCamadas.CAMADAS=temas;if(i3GEO.arvoreDeCamadas.CAMADASINICIAIS===""){i3GEO.arvoreDeCamadas.CAMADASINICIAIS=temas}(function(){function changeIconMode(){var currentIconMode="";newVal=parseInt(this.value,10);if(newVal!==currentIconMode){currentIconMode=newVal}buildTree()}function buildTree(){i3GEO.arvoreDeCamadas.ARVORE=new YAHOO.widget.TreeView(i3GEO.arvoreDeCamadas.IDHTML)}buildTree()})();root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();if(i3GEO.arvoreDeCamadas.MOSTRATITULO===true){titulo=$trad("t1")}tempNode=new YAHOO.widget.HTMLNode({expanded:true,html:titulo,hasIcon:i3GEO.arvoreDeCamadas.MOSTRATITULO,enableHighlight:true},root);if(i3GEO.arvoreDeCamadas.OPCOESARVORE===true){if($i("arvoreCamOpcoes")){var onMenuItemClick=function(p_sType,p_aArgs,p_oItem){eval(p_oItem.value)};new YAHOO.widget.Button({type:"menu",label:$trad("opcoes"),name:"arvoreCamOpcoes",menu:i3GEO.arvoreDeCamadas.montaOpcoesArvore("hash",onMenuItemClick),container:"arvoreCamOpcoes"});i3GEO.arvoreDeCamadas.OPCOESARVORE=false}else{new YAHOO.widget.HTMLNode({expanded:false,html:i3GEO.arvoreDeCamadas.montaOpcoesArvore("html"),hasIcon:false,enableHighlight:false},tempNode)}}if(grupoLayers===""){c=temas.length;for(i=0,j=c;i"+grupoLayers[i].nome+"";d=i3GEO.arvoreDeCamadas.EXPANDIDA;if(grupoLayers[i].expandido&&grupoLayers[i].expandido===true){d=true}n=grupoLayers[i].layers.length;for(j=0;j"+$trad("u27")+""},tempNode);c=incluidos.length;for(k=0;k