Commit 0ec23f65328a4dcc34c8ae33160b35f4c8001c2f
1 parent
4e8becb1
Exists in
master
and in
7 other branches
Correção na ferramenta de conexão com WMS
Showing
14 changed files
with
958 additions
and
98 deletions
Show diff stats
| ... | ... | @@ -0,0 +1 @@ |
| 1 | +[leg_layer_html opt_flag=1]<table class=legendatemas cellspacing=0 width=248 ></td></tr>[if name=legendawms oper=isset ]<tr><td style=text-align:left ><img src='[metadata name=legendawms]' /></td></tr></table>[/if][/leg_layer_html][leg_class_html][if name=CLASSE oper=neq value=NAO]<table ><tr><td colspan=2 width=22 > <img src=[leg_icon] /></td><td width=210 style=text-align:left; ><span style=font-size:9px >[leg_class_name]</span></td></tr></table>[/if]</table>[/leg_class_html] | |
| 0 | 2 | \ No newline at end of file | ... | ... |
classesjs/classe_arvoredecamadas.js
| ... | ... | @@ -41,6 +41,30 @@ Exemplos: |
| 41 | 41 | */ |
| 42 | 42 | i3GEO.arvoreDeCamadas = { |
| 43 | 43 | /* |
| 44 | + Property: EXPANDIDA | |
| 45 | + | |
| 46 | + Indica se a árvore será montada de forma expandida ou não. Se true, os nós do primeiro nível serão abertos na inicialização da árvore. | |
| 47 | + | |
| 48 | + Default: | |
| 49 | + {false} | |
| 50 | + | |
| 51 | + Type: | |
| 52 | + {Boolena} | |
| 53 | + */ | |
| 54 | + EXPANDIDA: false, | |
| 55 | + /* | |
| 56 | + Property: LEGENDAEXPANDIDA | |
| 57 | + | |
| 58 | + Indica se a legenda da árvore será montada de forma expandida ou não. | |
| 59 | + | |
| 60 | + Default: | |
| 61 | + {false} | |
| 62 | + | |
| 63 | + Type: | |
| 64 | + {Boolena} | |
| 65 | + */ | |
| 66 | + LEGENDAEXPANDIDA: false, | |
| 67 | + /* | |
| 44 | 68 | Property: ATIVATEMA |
| 45 | 69 | |
| 46 | 70 | Nome da função que será incluída no evento onclick do elemento checkbox adicionado no início do nome de um tema. |
| ... | ... | @@ -50,6 +74,18 @@ i3GEO.arvoreDeCamadas = { |
| 50 | 74 | */ |
| 51 | 75 | ATIVATEMA: "", |
| 52 | 76 | /* |
| 77 | + Property: OPCOESICONES | |
| 78 | + | |
| 79 | + Inclui ou não os ícones de opções em cada tema (farol, zoom para o tema, etc) | |
| 80 | + | |
| 81 | + Default: | |
| 82 | + {true} | |
| 83 | + | |
| 84 | + Type: | |
| 85 | + {boolean} | |
| 86 | + */ | |
| 87 | + OPCOESICONES: true, | |
| 88 | + /* | |
| 53 | 89 | Property: OPCOESTEMAS |
| 54 | 90 | |
| 55 | 91 | Inclui ou não o nó com as opções de manipulação de cada tema. |
| ... | ... | @@ -227,7 +263,7 @@ i3GEO.arvoreDeCamadas = { |
| 227 | 263 | for (var i=0, j=c; i<j; i++){ |
| 228 | 264 | var ltema = temas[i]; |
| 229 | 265 | var d = {html:i3GEO.arvoreDeCamadas.montaTextoTema(ltema),id:temas[i].name,tipo:"tema"}; |
| 230 | - var temaNode = new YAHOO.widget.HTMLNode(d, tempNode, false,true); | |
| 266 | + var temaNode = new YAHOO.widget.HTMLNode(d, tempNode, i3GEO.arvoreDeCamadas.EXPANDIDA,true); | |
| 231 | 267 | temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes, currentIconMode); |
| 232 | 268 | } |
| 233 | 269 | document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left"; |
| ... | ... | @@ -372,29 +408,31 @@ i3GEO.arvoreDeCamadas = { |
| 372 | 408 | //YAHOO.log("Montando as opções da árvore de camadas", "i3geo"); |
| 373 | 409 | var idtema = node.data.id; |
| 374 | 410 | var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); |
| 375 | - var farol = "maisamarelo.png"; | |
| 376 | - if (ltema.escala*1 < i3GEO.parametros.mapscale*1){ | |
| 377 | - var farol = "maisverde.png"; | |
| 378 | - var mfarol = $trad("t9"); | |
| 379 | - } | |
| 380 | - if (ltema.escala*1 > i3GEO.parametros.mapscale*1){ | |
| 381 | - var farol = "maisvermelho.png"; | |
| 382 | - var mfarol = $trad("t10"); | |
| 383 | - } | |
| 384 | - if (ltema.escala == 0){ | |
| 385 | - var farol = "maisamarelo.png"; | |
| 386 | - var mfarol = $trad("t11"); | |
| 411 | + if(i3GEO.arvoreDeCamadas.OPCOESICONES == true){ | |
| 412 | + var farol = "maisamarelo.png"; | |
| 413 | + if (ltema.escala*1 < i3GEO.parametros.mapscale*1){ | |
| 414 | + var farol = "maisverde.png"; | |
| 415 | + var mfarol = $trad("t9"); | |
| 416 | + } | |
| 417 | + if (ltema.escala*1 > i3GEO.parametros.mapscale*1){ | |
| 418 | + var farol = "maisvermelho.png"; | |
| 419 | + var mfarol = $trad("t10"); | |
| 420 | + } | |
| 421 | + if (ltema.escala == 0){ | |
| 422 | + var farol = "maisamarelo.png"; | |
| 423 | + var mfarol = $trad("t11"); | |
| 424 | + } | |
| 425 | + tnome = " <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>"; | |
| 426 | + tnome += " <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 427 | + tnome += " <img class='sobe' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 428 | + tnome += " <img class='desce' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 429 | + //a operação de zoom para o tema não funciona na interface flamingo | |
| 430 | + if( (ltema.zoomtema == "sim") && (!$i("flamingo"))) | |
| 431 | + {tnome += " <img class='extent' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";} | |
| 432 | + var d = {html:tnome}; | |
| 433 | + var iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 434 | + iconesNode.isLeaf = true; | |
| 387 | 435 | } |
| 388 | - tnome = " <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>"; | |
| 389 | - tnome += " <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 390 | - tnome += " <img class='sobe' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 391 | - tnome += " <img class='desce' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 392 | - //a operação de zoom para o tema não funciona na interface flamingo | |
| 393 | - if( (ltema.zoomtema == "sim") && (!$i("flamingo"))) | |
| 394 | - {tnome += " <img class='extent' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";} | |
| 395 | - var d = {html:tnome}; | |
| 396 | - var iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 397 | - iconesNode.isLeaf = true; | |
| 398 | 436 | if(i3GEO.arvoreDeCamadas.OPCOESTEMAS == true){ |
| 399 | 437 | var conteudo = $trad("t18a"); |
| 400 | 438 | var d = {html:conteudo,idopcoes:ltema.name}; |
| ... | ... | @@ -404,7 +442,7 @@ i3GEO.arvoreDeCamadas = { |
| 404 | 442 | if(i3GEO.arvoreDeCamadas.OPCOESLEGENDA == true){ |
| 405 | 443 | var conteudo = $trad("p3"); |
| 406 | 444 | var d = {html:conteudo,idlegenda:ltema.name}; |
| 407 | - var opcoesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 445 | + var opcoesNode = new YAHOO.widget.HTMLNode(d, node, i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA,true); | |
| 408 | 446 | opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda, 1); |
| 409 | 447 | } |
| 410 | 448 | node.loadComplete(); |
| ... | ... | @@ -486,7 +524,7 @@ i3GEO.arvoreDeCamadas = { |
| 486 | 524 | var idtema = node.data.idlegenda; |
| 487 | 525 | var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); |
| 488 | 526 | var retorna = function(retorno){ |
| 489 | - if (retorno.data.legenda){ | |
| 527 | + if(retorno.data.legenda){ | |
| 490 | 528 | var original = retorno; |
| 491 | 529 | var retorno = retorno.data.legenda; |
| 492 | 530 | if (retorno[0]){ |
| ... | ... | @@ -553,6 +591,9 @@ i3GEO.arvoreDeCamadas = { |
| 553 | 591 | } |
| 554 | 592 | } |
| 555 | 593 | }; |
| 594 | + if(i3GEO.configura.templateLegenda != "") | |
| 595 | + i3GEO.php.criaLegendaHTML(retorna,idtema,i3GEO.configura.templateLegenda); | |
| 596 | + else | |
| 556 | 597 | i3GEO.php.criaLegendaHTML(retorna,idtema); |
| 557 | 598 | }, |
| 558 | 599 | /* | ... | ... |
classesjs/compactados/classe_arvoredecamadas_compacto.js
| 1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.arvoreDeCamadas={ATIVATEMA:"",OPCOESTEMAS:true,OPCOESLEGENDA:true,CAMADAS:"",ARVORE:null,IDHTML:null,SID:null,LOCAPLIC:null,cria:function(onde,temas,g_sid,g_locaplic,funcaoTema){if(arguments.length==5){i3GEO.arvoreDeCamadas.ATIVATEMA=funcaoTema}this.SID=g_sid;this.LOCAPLIC=g_locaplic;if(onde!="")this.IDHTML=onde;if(this.IDHTML==""){return}this.atualiza(temas)},atualiza:function(temas){if(this.comparaTemas(temas,this.CAMADAS)){return}if(!document.getElementById(i3GEO.arvoreDeCamadas.IDHTML)){return}document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).innerHTML="";this.CAMADAS=temas;var currentIconMode;YAHOO.example.treeExample=new function(){function changeIconMode(){var newVal=parseInt(this.value);if(newVal!=currentIconMode){currentIconMode=newVal}buildTree()}function buildTree(){i3GEO.arvoreDeCamadas.ARVORE=new YAHOO.widget.TreeView(i3GEO.arvoreDeCamadas.IDHTML);var root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();var tempNode=new YAHOO.widget.TextNode('',root,false);tempNode.isLeaf=false}buildTree()}();var root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();var titulo="<table><tr><td><b>"+$trad("a7")+"</b></td><td><img id='i3geo_lixeira' title='"+$trad("t2")+"' src='"+i3GEO.util.$im("branco.gif")+"' /></td></tr></table>";var d={html:titulo};var tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);var c=temas.length;for(var i=0,j=c;i<j;i++){var ltema=temas[i];var d={html:i3GEO.arvoreDeCamadas.montaTextoTema(ltema),id:temas[i].name,tipo:"tema"};var temaNode=new YAHOO.widget.HTMLNode(d,tempNode,false,true);temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,currentIconMode)}document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left";i3GEO.arvoreDeCamadas.ARVORE.draw();this.ativaDragDrop()},ativaDragDrop:function(){var Dom=YAHOO.util.Dom;var Event=YAHOO.util.Event;var DDM=YAHOO.util.DragDropMgr;YAHOO.example.DDList="";YAHOO.example.DDApp={init:function(){if($i("i3geo_lixeira")){new YAHOO.util.DDTarget("i3geo_lixeira")}var lista=i3GEO.arvoreDeCamadas.CAMADAS;var i=lista.length-1;if(i>=0){do{var ltema=lista[i];if($i("arrastar_"+ltema.name)){new YAHOO.example.DDList("arrastar_"+ltema.name)}}while(i--)}}};YAHOO.example.DDList=function(id,sGroup,config){YAHOO.example.DDList.superclass.constructor.call(this,id,sGroup,config);this.logger=this.logger||YAHOO;var el=this.getDragEl();Dom.setStyle(el,"opacity",0.67);this.goingUp=false;this.lastY=0};YAHOO.extend(YAHOO.example.DDList,YAHOO.util.DDProxy,{startDrag:function(x,y){this.logger.log(this.id+" startDrag");var dragEl=this.getDragEl();var clickEl=this.getEl();Dom.setStyle(clickEl,"visibility","hidden");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,"z-index","5000")},endDrag:function(e){var srcEl=this.getEl();var proxy=this.getDragEl();Dom.setStyle(proxy,"visibility","");var a=new YAHOO.util.Motion(proxy,{points:{to:Dom.getXY(srcEl)}},0.2,YAHOO.util.Easing.easeOut);var proxyid=proxy.id;var thisid=this.id;a.onComplete.subscribe(function(){Dom.setStyle(proxyid,"visibility","hidden");Dom.setStyle(thisid,"visibility","")});a.animate();if($i("i3geo_lixeira")){$i("i3geo_lixeira").style.border="0px solid blue"}},onDragDrop:function(e,id){if(DDM.interactionInfo.drop.length===1){var pt=DDM.interactionInfo.point;var region=DDM.interactionInfo.sourceRegion;if(!region.intersect(pt)){DDM.refreshCache();if(DDM.getDDById(id).id=="i3geo_lixeira"){i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o1"));var tema=(this.getEl()).id.split("arrastar_")[1];i3GEO.php.excluitema(i3GEO.atualiza,tema);i3GEO.temaAtivo=""}else{i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));var destEl=Dom.get(id);var noid=id.split("arrastar_")[1];destEl.appendChild(this.getEl());var els=i3GEO.arvoreDeCamadas.listaLigadosDesligados();var lista=els[2].join(",");i3GEO.php.reordenatemas(i3GEO.atualiza,lista)}}}},onDrag:function(e){var y=Event.getPageY(e);if(y<this.lastY){this.goingUp=true}else if(y>this.lastY){this.goingUp=false}this.lastY=y},onDragOver:function(e,id){var srcEl=this.getEl();var destEl=Dom.get(id);if($i("i3geo_lixeira")&&id=="i3geo_lixeira"){$i("i3geo_lixeira").style.border="1px solid red"}else{destEl.style.textDecoration="underline"}},onDragOut:function(e,id){$i(id).style.textDecoration="none"}});Event.onDOMReady(YAHOO.example.DDApp.init,YAHOO.example.DDApp,true)},montaOpcoes:function(node){var idtema=node.data.id;var ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);var farol="maisamarelo.png";if(ltema.escala*1<i3GEO.parametros.mapscale*1){var farol="maisverde.png";var mfarol=$trad("t9")}if(ltema.escala*1>i3GEO.parametros.mapscale*1){var farol="maisvermelho.png";var mfarol=$trad("t10")}if(ltema.escala==0){var farol="maisamarelo.png";var mfarol=$trad("t11")}tnome=" <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>";tnome+=" <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";tnome+=" <img class='sobe' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";tnome+=" <img class='desce' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";if((ltema.zoomtema=="sim")&&(!$i("flamingo"))){tnome+=" <img class='extent' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}var d={html:tnome};var iconesNode=new YAHOO.widget.HTMLNode(d,node,false,true);iconesNode.isLeaf=true;if(i3GEO.arvoreDeCamadas.OPCOESTEMAS==true){var conteudo=$trad("t18a");var d={html:conteudo,idopcoes:ltema.name};var opcoesNode=new YAHOO.widget.HTMLNode(d,node,false,true);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraOpcoes,1)}if(i3GEO.arvoreDeCamadas.OPCOESLEGENDA==true){var conteudo=$trad("p3");var d={html:conteudo,idlegenda:ltema.name};var opcoesNode=new YAHOO.widget.HTMLNode(d,node,false,true);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda,1)}node.loadComplete()},mostraOpcoes:function(node){var idtema=node.data.idopcoes;var ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);var tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' > </a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' > </a>"+$inputText("","","nn"+ltema.name,"","10","")+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;if((ltema.type<3)&&(ltema.connectiontype!=7)){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t22")+"','');\" onclick='i3GEO.tema.dialogo.procuraratrib(\""+ltema.name+"\")'>"+$trad("t23")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t24")+"','');\" onclick='i3GEO.tema.dialogo.toponimia(\""+ltema.name+"\")'>"+$trad("t25")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t26")+"','');\" onclick='i3GEO.tema.dialogo.etiquetas(\""+ltema.name+"\")'>"+$trad("t27")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t28")+"','');\" onclick='i3GEO.tema.dialogo.filtro(\""+ltema.name+"\")'>"+$trad("t29")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t30")+"','');\" onclick='i3GEO.tema.dialogo.tabela(\""+ltema.name+"\")'>"+$trad("t31")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;if(i3GEO.parametros.versaoms>4){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t37")+"','');\" onclick='i3GEO.tema.dialogo.graficotema(\""+ltema.name+"\")'>"+$trad("t37")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true}}if(ltema.type<4){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t32")+"','');\" onclick='i3GEO.tema.dialogo.editaLegenda(\""+ltema.name+"\")'>"+$trad("t33")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true}var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t34")+"','');\" onclick='i3GEO.navega.destacaTema.inicia(\""+ltema.name+"\")'>"+$trad("t35")+" </a><a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=44' > </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;node.loadComplete()},mostraLegenda:function(node){var idtema=node.data.idlegenda;var ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);var retorna=function(retorno){if(retorno.data.legenda){var original=retorno;var retorno=retorno.data.legenda;if(retorno[0]){if((navn)&&(!retorno[0].imagem)){var tabela=retorno}else{var i=retorno[0].imagem;var re=new RegExp("tiff","g");var i=i.replace(re,'png');var tabela="<img src='"+i+"' />"}retorno=""}else{var linhas=retorno.split("#");if(linhas.length>1){var linhas=retorno.split("|");var tabela="<table >";var linha=linhas.length-1;if(linha>=0){do{var colunas=linhas[linha].split("#");var id=colunas[0]+"-"+colunas[1];var re=new RegExp("'","g");var exp=colunas[3].replace(re,'"');tabela+="<tr style='border-top:1px solid rgb(240,240,240);'><td><img src='"+colunas[4]+"' </td><td style='text-align:left'>"+colunas[2]+"</td></tr>"}while(linha--)}tabela+="</table><br>"}else{tabela=retorno}}}else{var tabela="<img src='"+retorno.data[0].imagem+"' />"}var incluir="<div style='text-align:left' id='"+idtema+"verdiv"+"'>"+tabela+"</div>";var d={html:incluir};var nodeLeg=new YAHOO.widget.HTMLNode(d,node,false,false);node.loadComplete();var elementos=document.getElementById(idtema+"verdiv").getElementsByTagName("input");var nelementos=elementos.length;var inputs=new Array();var i=0;if(nelementos>0){do{if(elementos[i].type=="checkbox"){inputs.push(elementos[i])}i++}while(i<nelementos)}if(original.data.desativar){var desativar=original.data.desativar;var nindices=desativar.length;var i=0;if(nindices>0){do{inputs[desativar[i]].checked=false;i++}while(i<nindices)}}};i3GEO.php.criaLegendaHTML(retorna,idtema)},atualizaLegenda:function(idtema){if(document.getElementById(idtema+"verdiv")){var node=i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idlegenda",idtema);if(node){i3GEO.arvoreDeCamadas.ARVORE.removeChildren(node);this.mostraLegenda(node)}}},inverteStatusClasse:function(leg){var temp=function(){i3GEO.atualiza("")};i3GEO.php.inverteStatusClasse(temp,leg.name,leg.value)},montaTextoTema:function(tema){var ck="";if(tema.status==2){var ck=' CHECKED '}var html="";html+="<p id='arrastar_"+tema.name+"' style='text-align:left;font-size:11px;' ><input class=inputsb style='cursor:pointer;' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t3")+"','ligadesliga')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" type='checkbox' name=\"layer\" value='"+tema.name+"' "+ck;if(i3GEO.arvoreDeCamadas.ATIVATEMA!="")html+="onclick=\""+i3GEO.arvoreDeCamadas.ATIVATEMA+"\"";else html+="onclick='i3GEO.util.criaBotaoAplicar(\"i3GEO.arvoreDeCamadas.aplicaTemas\",\""+$trad("p14")+"\",\"i3geoBotaoAplicarCamadas\",this)'";html+=" />";if(tema.contextoescala=="sim"){html+=" <img src="+i3GEO.util.$im("contextoescala.png")+" title='"+$trad("t36")+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t36")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}if(tema.sel=="sim"){html+=" <img src="+i3GEO.util.$im("estasel.png")+" title='"+$trad("t4")+"' onclick='i3GEO.tema.limpasel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','limpasel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}if((tema.download=="sim")||(tema.download=="SIM")){html+=" <img src="+i3GEO.util.$im("down1.gif")+" title='download' onclick='i3GEO.tema.dialogo.download(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7")+"','download')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}html+=" <span style='cursor:move'>"+tema.tema+"</span>";html+="</p>";return(html)},atualizaFarol:function(mapscale){var farol="maisamarelo.png";var l=i3GEO.arvoreDeCamadas.CAMADAS.length-1;if(l>=0){do{var ltema=i3GEO.arvoreDeCamadas.CAMADAS[l];var escala=ltema.escala;if(escala*1<mapscale*1){var farol="maisverde.png"}if(escala*1>mapscale*1){var farol="maisvermelho.png"}if(escala*1==0){var farol="maisamarelo.png"}if($i("farol"+ltema.name)){$i("farol"+ltema.name).src=g_locaplic+"/imagens/"+farol}}while(l--)}},aplicaTemas:function(){var t=i3GEO.arvoreDeCamadas.listaLigadosDesligados();var temp=function(){i3GEO.atualiza();i3GEO.janela.fechaAguarde("redesenha")};clearTimeout(tempoBotaoAplicar);tempoBotaoAplicar="";i3GEO.janela.abreAguarde("redesenha",$trad("o1"));i3GEO.php.ligatemas(temp,t[1].toString(),t[0].toString())},listaLigadosDesligados:function(){var nos=i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema");var ligados=new Array();var desligados=new Array();var todos=new Array();var n=nos.length;var i=0;do{try{var no=nos[i].getEl();var cs=no.getElementsByTagName("input");var csn=cs.length;for(j=0;j<csn;j++){var c=cs[j];if(c.name=="layer"){if(c.checked==true){ligados.push(c.value)}else{desligados.push(c.value)}todos.push(c.value)}}i++}catch(e){i++}}while(i<n)var lista=new Array(ligados,desligados,todos);return(lista)},comparaTemas:function(novo,atual){try{var novon=novo.length;if(novon!=atual.length){return(false)}for(i=0;i<novon;i++){if(novo[i].name!=atual[i].name){return(false)}if(novo[i].tema!=atual[i].tema){return(false)}if(novo[i].sel!=atual[i].sel){return(false)}}return(true)}catch(e){return true}},pegaTema:function pegatema(idtema){var c=i3GEO.arvoreDeCamadas.CAMADAS.length;for(i=0;i<c;i++){if(i3GEO.arvoreDeCamadas.CAMADAS[i].name==idtema){var ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];return(ltema)}}}};i3GEO.arvoreDeCamadas.IDHTML="listaTemas"; | |
| 2 | 1 | \ No newline at end of file |
| 2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.arvoreDeCamadas={EXPANDIDA:false,LEGENDAEXPANDIDA:false,ATIVATEMA:"",OPCOESICONES:true,OPCOESTEMAS:true,OPCOESLEGENDA:true,CAMADAS:"",ARVORE:null,IDHTML:null,SID:null,LOCAPLIC:null,cria:function(onde,temas,g_sid,g_locaplic,funcaoTema){if(arguments.length==5){i3GEO.arvoreDeCamadas.ATIVATEMA=funcaoTema}this.SID=g_sid;this.LOCAPLIC=g_locaplic;if(onde!="")this.IDHTML=onde;if(this.IDHTML==""){return}this.atualiza(temas)},atualiza:function(temas){if(this.comparaTemas(temas,this.CAMADAS)){return}if(!document.getElementById(i3GEO.arvoreDeCamadas.IDHTML)){return}document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).innerHTML="";this.CAMADAS=temas;var currentIconMode;YAHOO.example.treeExample=new function(){function changeIconMode(){var newVal=parseInt(this.value);if(newVal!=currentIconMode){currentIconMode=newVal}buildTree()}function buildTree(){i3GEO.arvoreDeCamadas.ARVORE=new YAHOO.widget.TreeView(i3GEO.arvoreDeCamadas.IDHTML);var root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();var tempNode=new YAHOO.widget.TextNode('',root,false);tempNode.isLeaf=false}buildTree()}();var root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();var titulo="<table><tr><td><b>"+$trad("a7")+"</b></td><td><img id='i3geo_lixeira' title='"+$trad("t2")+"' src='"+i3GEO.util.$im("branco.gif")+"' /></td></tr></table>";var d={html:titulo};var tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);var c=temas.length;for(var i=0,j=c;i<j;i++){var ltema=temas[i];var d={html:i3GEO.arvoreDeCamadas.montaTextoTema(ltema),id:temas[i].name,tipo:"tema"};var temaNode=new YAHOO.widget.HTMLNode(d,tempNode,i3GEO.arvoreDeCamadas.EXPANDIDA,true);temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,currentIconMode)}document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left";i3GEO.arvoreDeCamadas.ARVORE.draw();this.ativaDragDrop()},ativaDragDrop:function(){var Dom=YAHOO.util.Dom;var Event=YAHOO.util.Event;var DDM=YAHOO.util.DragDropMgr;YAHOO.example.DDList="";YAHOO.example.DDApp={init:function(){if($i("i3geo_lixeira")){new YAHOO.util.DDTarget("i3geo_lixeira")}var lista=i3GEO.arvoreDeCamadas.CAMADAS;var i=lista.length-1;if(i>=0){do{var ltema=lista[i];if($i("arrastar_"+ltema.name)){new YAHOO.example.DDList("arrastar_"+ltema.name)}}while(i--)}}};YAHOO.example.DDList=function(id,sGroup,config){YAHOO.example.DDList.superclass.constructor.call(this,id,sGroup,config);this.logger=this.logger||YAHOO;var el=this.getDragEl();Dom.setStyle(el,"opacity",0.67);this.goingUp=false;this.lastY=0};YAHOO.extend(YAHOO.example.DDList,YAHOO.util.DDProxy,{startDrag:function(x,y){this.logger.log(this.id+" startDrag");var dragEl=this.getDragEl();var clickEl=this.getEl();Dom.setStyle(clickEl,"visibility","hidden");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,"z-index","5000")},endDrag:function(e){var srcEl=this.getEl();var proxy=this.getDragEl();Dom.setStyle(proxy,"visibility","");var a=new YAHOO.util.Motion(proxy,{points:{to:Dom.getXY(srcEl)}},0.2,YAHOO.util.Easing.easeOut);var proxyid=proxy.id;var thisid=this.id;a.onComplete.subscribe(function(){Dom.setStyle(proxyid,"visibility","hidden");Dom.setStyle(thisid,"visibility","")});a.animate();if($i("i3geo_lixeira")){$i("i3geo_lixeira").style.border="0px solid blue"}},onDragDrop:function(e,id){if(DDM.interactionInfo.drop.length===1){var pt=DDM.interactionInfo.point;var region=DDM.interactionInfo.sourceRegion;if(!region.intersect(pt)){DDM.refreshCache();if(DDM.getDDById(id).id=="i3geo_lixeira"){i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o1"));var tema=(this.getEl()).id.split("arrastar_")[1];i3GEO.php.excluitema(i3GEO.atualiza,tema);i3GEO.temaAtivo=""}else{i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));var destEl=Dom.get(id);var noid=id.split("arrastar_")[1];destEl.appendChild(this.getEl());var els=i3GEO.arvoreDeCamadas.listaLigadosDesligados();var lista=els[2].join(",");i3GEO.php.reordenatemas(i3GEO.atualiza,lista)}}}},onDrag:function(e){var y=Event.getPageY(e);if(y<this.lastY){this.goingUp=true}else if(y>this.lastY){this.goingUp=false}this.lastY=y},onDragOver:function(e,id){var srcEl=this.getEl();var destEl=Dom.get(id);if($i("i3geo_lixeira")&&id=="i3geo_lixeira"){$i("i3geo_lixeira").style.border="1px solid red"}else{destEl.style.textDecoration="underline"}},onDragOut:function(e,id){$i(id).style.textDecoration="none"}});Event.onDOMReady(YAHOO.example.DDApp.init,YAHOO.example.DDApp,true)},montaOpcoes:function(node){var idtema=node.data.id;var ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);if(i3GEO.arvoreDeCamadas.OPCOESICONES==true){var farol="maisamarelo.png";if(ltema.escala*1<i3GEO.parametros.mapscale*1){var farol="maisverde.png";var mfarol=$trad("t9")}if(ltema.escala*1>i3GEO.parametros.mapscale*1){var farol="maisvermelho.png";var mfarol=$trad("t10")}if(ltema.escala==0){var farol="maisamarelo.png";var mfarol=$trad("t11")}tnome=" <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>";tnome+=" <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";tnome+=" <img class='sobe' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";tnome+=" <img class='desce' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";if((ltema.zoomtema=="sim")&&(!$i("flamingo"))){tnome+=" <img class='extent' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}var d={html:tnome};var iconesNode=new YAHOO.widget.HTMLNode(d,node,false,true);iconesNode.isLeaf=true}if(i3GEO.arvoreDeCamadas.OPCOESTEMAS==true){var conteudo=$trad("t18a");var d={html:conteudo,idopcoes:ltema.name};var opcoesNode=new YAHOO.widget.HTMLNode(d,node,false,true);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraOpcoes,1)}if(i3GEO.arvoreDeCamadas.OPCOESLEGENDA==true){var conteudo=$trad("p3");var d={html:conteudo,idlegenda:ltema.name};var opcoesNode=new YAHOO.widget.HTMLNode(d,node,i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA,true);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda,1)}node.loadComplete()},mostraOpcoes:function(node){var idtema=node.data.idopcoes;var ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);var tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' > </a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' > </a>"+$inputText("","","nn"+ltema.name,"","10","")+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;if((ltema.type<3)&&(ltema.connectiontype!=7)){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t22")+"','');\" onclick='i3GEO.tema.dialogo.procuraratrib(\""+ltema.name+"\")'>"+$trad("t23")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t24")+"','');\" onclick='i3GEO.tema.dialogo.toponimia(\""+ltema.name+"\")'>"+$trad("t25")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t26")+"','');\" onclick='i3GEO.tema.dialogo.etiquetas(\""+ltema.name+"\")'>"+$trad("t27")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t28")+"','');\" onclick='i3GEO.tema.dialogo.filtro(\""+ltema.name+"\")'>"+$trad("t29")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t30")+"','');\" onclick='i3GEO.tema.dialogo.tabela(\""+ltema.name+"\")'>"+$trad("t31")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;if(i3GEO.parametros.versaoms>4){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t37")+"','');\" onclick='i3GEO.tema.dialogo.graficotema(\""+ltema.name+"\")'>"+$trad("t37")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true}}if(ltema.type<4){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t32")+"','');\" onclick='i3GEO.tema.dialogo.editaLegenda(\""+ltema.name+"\")'>"+$trad("t33")+" </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true}var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t34")+"','');\" onclick='i3GEO.navega.destacaTema.inicia(\""+ltema.name+"\")'>"+$trad("t35")+" </a><a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=44' > </a>";var d={html:tnome};var n=new YAHOO.widget.HTMLNode(d,node,false,true);n.isLeaf=true;node.loadComplete()},mostraLegenda:function(node){var idtema=node.data.idlegenda;var ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);var retorna=function(retorno){if(retorno.data.legenda){var original=retorno;var retorno=retorno.data.legenda;if(retorno[0]){if((navn)&&(!retorno[0].imagem)){var tabela=retorno}else{var i=retorno[0].imagem;var re=new RegExp("tiff","g");var i=i.replace(re,'png');var tabela="<img src='"+i+"' />"}retorno=""}else{var linhas=retorno.split("#");if(linhas.length>1){var linhas=retorno.split("|");var tabela="<table >";var linha=linhas.length-1;if(linha>=0){do{var colunas=linhas[linha].split("#");var id=colunas[0]+"-"+colunas[1];var re=new RegExp("'","g");var exp=colunas[3].replace(re,'"');tabela+="<tr style='border-top:1px solid rgb(240,240,240);'><td><img src='"+colunas[4]+"' </td><td style='text-align:left'>"+colunas[2]+"</td></tr>"}while(linha--)}tabela+="</table><br>"}else{tabela=retorno}}}else{var tabela="<img src='"+retorno.data[0].imagem+"' />"}var incluir="<div style='text-align:left' id='"+idtema+"verdiv"+"'>"+tabela+"</div>";var d={html:incluir};var nodeLeg=new YAHOO.widget.HTMLNode(d,node,false,false);node.loadComplete();var elementos=document.getElementById(idtema+"verdiv").getElementsByTagName("input");var nelementos=elementos.length;var inputs=new Array();var i=0;if(nelementos>0){do{if(elementos[i].type=="checkbox"){inputs.push(elementos[i])}i++}while(i<nelementos)}if(original.data.desativar){var desativar=original.data.desativar;var nindices=desativar.length;var i=0;if(nindices>0){do{inputs[desativar[i]].checked=false;i++}while(i<nindices)}}};if(i3GEO.configura.templateLegenda!="")i3GEO.php.criaLegendaHTML(retorna,idtema,i3GEO.configura.templateLegenda);else i3GEO.php.criaLegendaHTML(retorna,idtema)},atualizaLegenda:function(idtema){if(document.getElementById(idtema+"verdiv")){var node=i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idlegenda",idtema);if(node){i3GEO.arvoreDeCamadas.ARVORE.removeChildren(node);this.mostraLegenda(node)}}},inverteStatusClasse:function(leg){var temp=function(){i3GEO.atualiza("")};i3GEO.php.inverteStatusClasse(temp,leg.name,leg.value)},montaTextoTema:function(tema){var ck="";if(tema.status==2){var ck=' CHECKED '}var html="";html+="<p id='arrastar_"+tema.name+"' style='text-align:left;font-size:11px;' ><input class=inputsb style='cursor:pointer;' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t3")+"','ligadesliga')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" type='checkbox' name=\"layer\" value='"+tema.name+"' "+ck;if(i3GEO.arvoreDeCamadas.ATIVATEMA!="")html+="onclick=\""+i3GEO.arvoreDeCamadas.ATIVATEMA+"\"";else html+="onclick='i3GEO.util.criaBotaoAplicar(\"i3GEO.arvoreDeCamadas.aplicaTemas\",\""+$trad("p14")+"\",\"i3geoBotaoAplicarCamadas\",this)'";html+=" />";if(tema.contextoescala=="sim"){html+=" <img src="+i3GEO.util.$im("contextoescala.png")+" title='"+$trad("t36")+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t36")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}if(tema.sel=="sim"){html+=" <img src="+i3GEO.util.$im("estasel.png")+" title='"+$trad("t4")+"' onclick='i3GEO.tema.limpasel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','limpasel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}if((tema.download=="sim")||(tema.download=="SIM")){html+=" <img src="+i3GEO.util.$im("down1.gif")+" title='download' onclick='i3GEO.tema.dialogo.download(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7")+"','download')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"}html+=" <span style='cursor:move'>"+tema.tema+"</span>";html+="</p>";return(html)},atualizaFarol:function(mapscale){var farol="maisamarelo.png";var l=i3GEO.arvoreDeCamadas.CAMADAS.length-1;if(l>=0){do{var ltema=i3GEO.arvoreDeCamadas.CAMADAS[l];var escala=ltema.escala;if(escala*1<mapscale*1){var farol="maisverde.png"}if(escala*1>mapscale*1){var farol="maisvermelho.png"}if(escala*1==0){var farol="maisamarelo.png"}if($i("farol"+ltema.name)){$i("farol"+ltema.name).src=g_locaplic+"/imagens/"+farol}}while(l--)}},aplicaTemas:function(){var t=i3GEO.arvoreDeCamadas.listaLigadosDesligados();var temp=function(){i3GEO.atualiza();i3GEO.janela.fechaAguarde("redesenha")};clearTimeout(tempoBotaoAplicar);tempoBotaoAplicar="";i3GEO.janela.abreAguarde("redesenha",$trad("o1"));i3GEO.php.ligatemas(temp,t[1].toString(),t[0].toString())},listaLigadosDesligados:function(){var nos=i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema");var ligados=new Array();var desligados=new Array();var todos=new Array();var n=nos.length;var i=0;do{try{var no=nos[i].getEl();var cs=no.getElementsByTagName("input");var csn=cs.length;for(j=0;j<csn;j++){var c=cs[j];if(c.name=="layer"){if(c.checked==true){ligados.push(c.value)}else{desligados.push(c.value)}todos.push(c.value)}}i++}catch(e){i++}}while(i<n)var lista=new Array(ligados,desligados,todos);return(lista)},comparaTemas:function(novo,atual){try{var novon=novo.length;if(novon!=atual.length){return(false)}for(i=0;i<novon;i++){if(novo[i].name!=atual[i].name){return(false)}if(novo[i].tema!=atual[i].tema){return(false)}if(novo[i].sel!=atual[i].sel){return(false)}}return(true)}catch(e){return true}},pegaTema:function pegatema(idtema){var c=i3GEO.arvoreDeCamadas.CAMADAS.length;for(i=0;i<c;i++){if(i3GEO.arvoreDeCamadas.CAMADAS[i].name==idtema){var ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];return(ltema)}}}};i3GEO.arvoreDeCamadas.IDHTML="listaTemas"; | |
| 3 | 3 | \ No newline at end of file | ... | ... |
classesjs/i3geo_tudo_compacto.js
| ... | ... | @@ -14057,6 +14057,30 @@ Exemplos: |
| 14057 | 14057 | */ |
| 14058 | 14058 | i3GEO.arvoreDeCamadas = { |
| 14059 | 14059 | /* |
| 14060 | + Property: EXPANDIDA | |
| 14061 | + | |
| 14062 | + Indica se a árvore será montada de forma expandida ou não. Se true, os nós do primeiro nível serão abertos na inicialização da árvore. | |
| 14063 | + | |
| 14064 | + Default: | |
| 14065 | + {false} | |
| 14066 | + | |
| 14067 | + Type: | |
| 14068 | + {Boolena} | |
| 14069 | + */ | |
| 14070 | + EXPANDIDA: false, | |
| 14071 | + /* | |
| 14072 | + Property: LEGENDAEXPANDIDA | |
| 14073 | + | |
| 14074 | + Indica se a legenda da árvore será montada de forma expandida ou não. | |
| 14075 | + | |
| 14076 | + Default: | |
| 14077 | + {false} | |
| 14078 | + | |
| 14079 | + Type: | |
| 14080 | + {Boolena} | |
| 14081 | + */ | |
| 14082 | + LEGENDAEXPANDIDA: false, | |
| 14083 | + /* | |
| 14060 | 14084 | Property: ATIVATEMA |
| 14061 | 14085 | |
| 14062 | 14086 | Nome da função que será incluída no evento onclick do elemento checkbox adicionado no início do nome de um tema. |
| ... | ... | @@ -14066,6 +14090,18 @@ i3GEO.arvoreDeCamadas = { |
| 14066 | 14090 | */ |
| 14067 | 14091 | ATIVATEMA: "", |
| 14068 | 14092 | /* |
| 14093 | + Property: OPCOESICONES | |
| 14094 | + | |
| 14095 | + Inclui ou não os ícones de opções em cada tema (farol, zoom para o tema, etc) | |
| 14096 | + | |
| 14097 | + Default: | |
| 14098 | + {true} | |
| 14099 | + | |
| 14100 | + Type: | |
| 14101 | + {boolean} | |
| 14102 | + */ | |
| 14103 | + OPCOESICONES: true, | |
| 14104 | + /* | |
| 14069 | 14105 | Property: OPCOESTEMAS |
| 14070 | 14106 | |
| 14071 | 14107 | Inclui ou não o nó com as opções de manipulação de cada tema. |
| ... | ... | @@ -14243,7 +14279,7 @@ i3GEO.arvoreDeCamadas = { |
| 14243 | 14279 | for (var i=0, j=c; i<j; i++){ |
| 14244 | 14280 | var ltema = temas[i]; |
| 14245 | 14281 | var d = {html:i3GEO.arvoreDeCamadas.montaTextoTema(ltema),id:temas[i].name,tipo:"tema"}; |
| 14246 | - var temaNode = new YAHOO.widget.HTMLNode(d, tempNode, false,true); | |
| 14282 | + var temaNode = new YAHOO.widget.HTMLNode(d, tempNode, i3GEO.arvoreDeCamadas.EXPANDIDA,true); | |
| 14247 | 14283 | temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes, currentIconMode); |
| 14248 | 14284 | } |
| 14249 | 14285 | document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left"; |
| ... | ... | @@ -14388,29 +14424,31 @@ i3GEO.arvoreDeCamadas = { |
| 14388 | 14424 | //YAHOO.log("Montando as opções da árvore de camadas", "i3geo"); |
| 14389 | 14425 | var idtema = node.data.id; |
| 14390 | 14426 | var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); |
| 14391 | - var farol = "maisamarelo.png"; | |
| 14392 | - if (ltema.escala*1 < i3GEO.parametros.mapscale*1){ | |
| 14393 | - var farol = "maisverde.png"; | |
| 14394 | - var mfarol = $trad("t9"); | |
| 14395 | - } | |
| 14396 | - if (ltema.escala*1 > i3GEO.parametros.mapscale*1){ | |
| 14397 | - var farol = "maisvermelho.png"; | |
| 14398 | - var mfarol = $trad("t10"); | |
| 14399 | - } | |
| 14400 | - if (ltema.escala == 0){ | |
| 14401 | - var farol = "maisamarelo.png"; | |
| 14402 | - var mfarol = $trad("t11"); | |
| 14427 | + if(i3GEO.arvoreDeCamadas.OPCOESICONES == true){ | |
| 14428 | + var farol = "maisamarelo.png"; | |
| 14429 | + if (ltema.escala*1 < i3GEO.parametros.mapscale*1){ | |
| 14430 | + var farol = "maisverde.png"; | |
| 14431 | + var mfarol = $trad("t9"); | |
| 14432 | + } | |
| 14433 | + if (ltema.escala*1 > i3GEO.parametros.mapscale*1){ | |
| 14434 | + var farol = "maisvermelho.png"; | |
| 14435 | + var mfarol = $trad("t10"); | |
| 14436 | + } | |
| 14437 | + if (ltema.escala == 0){ | |
| 14438 | + var farol = "maisamarelo.png"; | |
| 14439 | + var mfarol = $trad("t11"); | |
| 14440 | + } | |
| 14441 | + tnome = " <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>"; | |
| 14442 | + tnome += " <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14443 | + tnome += " <img class='sobe' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14444 | + tnome += " <img class='desce' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14445 | + //a operação de zoom para o tema não funciona na interface flamingo | |
| 14446 | + if( (ltema.zoomtema == "sim") && (!$i("flamingo"))) | |
| 14447 | + {tnome += " <img class='extent' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";} | |
| 14448 | + var d = {html:tnome}; | |
| 14449 | + var iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 14450 | + iconesNode.isLeaf = true; | |
| 14403 | 14451 | } |
| 14404 | - tnome = " <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>"; | |
| 14405 | - tnome += " <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14406 | - tnome += " <img class='sobe' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14407 | - tnome += " <img class='desce' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14408 | - //a operação de zoom para o tema não funciona na interface flamingo | |
| 14409 | - if( (ltema.zoomtema == "sim") && (!$i("flamingo"))) | |
| 14410 | - {tnome += " <img class='extent' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";} | |
| 14411 | - var d = {html:tnome}; | |
| 14412 | - var iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 14413 | - iconesNode.isLeaf = true; | |
| 14414 | 14452 | if(i3GEO.arvoreDeCamadas.OPCOESTEMAS == true){ |
| 14415 | 14453 | var conteudo = $trad("t18a"); |
| 14416 | 14454 | var d = {html:conteudo,idopcoes:ltema.name}; |
| ... | ... | @@ -14420,7 +14458,7 @@ i3GEO.arvoreDeCamadas = { |
| 14420 | 14458 | if(i3GEO.arvoreDeCamadas.OPCOESLEGENDA == true){ |
| 14421 | 14459 | var conteudo = $trad("p3"); |
| 14422 | 14460 | var d = {html:conteudo,idlegenda:ltema.name}; |
| 14423 | - var opcoesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 14461 | + var opcoesNode = new YAHOO.widget.HTMLNode(d, node, i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA,true); | |
| 14424 | 14462 | opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda, 1); |
| 14425 | 14463 | } |
| 14426 | 14464 | node.loadComplete(); |
| ... | ... | @@ -14502,7 +14540,7 @@ i3GEO.arvoreDeCamadas = { |
| 14502 | 14540 | var idtema = node.data.idlegenda; |
| 14503 | 14541 | var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); |
| 14504 | 14542 | var retorna = function(retorno){ |
| 14505 | - if (retorno.data.legenda){ | |
| 14543 | + if(retorno.data.legenda){ | |
| 14506 | 14544 | var original = retorno; |
| 14507 | 14545 | var retorno = retorno.data.legenda; |
| 14508 | 14546 | if (retorno[0]){ |
| ... | ... | @@ -14569,6 +14607,9 @@ i3GEO.arvoreDeCamadas = { |
| 14569 | 14607 | } |
| 14570 | 14608 | } |
| 14571 | 14609 | }; |
| 14610 | + if(i3GEO.configura.templateLegenda != "") | |
| 14611 | + i3GEO.php.criaLegendaHTML(retorna,idtema,i3GEO.configura.templateLegenda); | |
| 14612 | + else | |
| 14572 | 14613 | i3GEO.php.criaLegendaHTML(retorna,idtema); |
| 14573 | 14614 | }, |
| 14574 | 14615 | /* | ... | ... |
classesjs/i3geo_tudo_compacto.js.php
| ... | ... | @@ -14057,6 +14057,30 @@ Exemplos: |
| 14057 | 14057 | */ |
| 14058 | 14058 | i3GEO.arvoreDeCamadas = { |
| 14059 | 14059 | /* |
| 14060 | + Property: EXPANDIDA | |
| 14061 | + | |
| 14062 | + Indica se a árvore será montada de forma expandida ou não. Se true, os nós do primeiro nível serão abertos na inicialização da árvore. | |
| 14063 | + | |
| 14064 | + Default: | |
| 14065 | + {false} | |
| 14066 | + | |
| 14067 | + Type: | |
| 14068 | + {Boolena} | |
| 14069 | + */ | |
| 14070 | + EXPANDIDA: false, | |
| 14071 | + /* | |
| 14072 | + Property: LEGENDAEXPANDIDA | |
| 14073 | + | |
| 14074 | + Indica se a legenda da árvore será montada de forma expandida ou não. | |
| 14075 | + | |
| 14076 | + Default: | |
| 14077 | + {false} | |
| 14078 | + | |
| 14079 | + Type: | |
| 14080 | + {Boolena} | |
| 14081 | + */ | |
| 14082 | + LEGENDAEXPANDIDA: false, | |
| 14083 | + /* | |
| 14060 | 14084 | Property: ATIVATEMA |
| 14061 | 14085 | |
| 14062 | 14086 | Nome da função que será incluída no evento onclick do elemento checkbox adicionado no início do nome de um tema. |
| ... | ... | @@ -14066,6 +14090,18 @@ i3GEO.arvoreDeCamadas = { |
| 14066 | 14090 | */ |
| 14067 | 14091 | ATIVATEMA: "", |
| 14068 | 14092 | /* |
| 14093 | + Property: OPCOESICONES | |
| 14094 | + | |
| 14095 | + Inclui ou não os ícones de opções em cada tema (farol, zoom para o tema, etc) | |
| 14096 | + | |
| 14097 | + Default: | |
| 14098 | + {true} | |
| 14099 | + | |
| 14100 | + Type: | |
| 14101 | + {boolean} | |
| 14102 | + */ | |
| 14103 | + OPCOESICONES: true, | |
| 14104 | + /* | |
| 14069 | 14105 | Property: OPCOESTEMAS |
| 14070 | 14106 | |
| 14071 | 14107 | Inclui ou não o nó com as opções de manipulação de cada tema. |
| ... | ... | @@ -14243,7 +14279,7 @@ i3GEO.arvoreDeCamadas = { |
| 14243 | 14279 | for (var i=0, j=c; i<j; i++){ |
| 14244 | 14280 | var ltema = temas[i]; |
| 14245 | 14281 | var d = {html:i3GEO.arvoreDeCamadas.montaTextoTema(ltema),id:temas[i].name,tipo:"tema"}; |
| 14246 | - var temaNode = new YAHOO.widget.HTMLNode(d, tempNode, false,true); | |
| 14282 | + var temaNode = new YAHOO.widget.HTMLNode(d, tempNode, i3GEO.arvoreDeCamadas.EXPANDIDA,true); | |
| 14247 | 14283 | temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes, currentIconMode); |
| 14248 | 14284 | } |
| 14249 | 14285 | document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left"; |
| ... | ... | @@ -14388,29 +14424,31 @@ i3GEO.arvoreDeCamadas = { |
| 14388 | 14424 | //YAHOO.log("Montando as opções da árvore de camadas", "i3geo"); |
| 14389 | 14425 | var idtema = node.data.id; |
| 14390 | 14426 | var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); |
| 14391 | - var farol = "maisamarelo.png"; | |
| 14392 | - if (ltema.escala*1 < i3GEO.parametros.mapscale*1){ | |
| 14393 | - var farol = "maisverde.png"; | |
| 14394 | - var mfarol = $trad("t9"); | |
| 14395 | - } | |
| 14396 | - if (ltema.escala*1 > i3GEO.parametros.mapscale*1){ | |
| 14397 | - var farol = "maisvermelho.png"; | |
| 14398 | - var mfarol = $trad("t10"); | |
| 14399 | - } | |
| 14400 | - if (ltema.escala == 0){ | |
| 14401 | - var farol = "maisamarelo.png"; | |
| 14402 | - var mfarol = $trad("t11"); | |
| 14427 | + if(i3GEO.arvoreDeCamadas.OPCOESICONES == true){ | |
| 14428 | + var farol = "maisamarelo.png"; | |
| 14429 | + if (ltema.escala*1 < i3GEO.parametros.mapscale*1){ | |
| 14430 | + var farol = "maisverde.png"; | |
| 14431 | + var mfarol = $trad("t9"); | |
| 14432 | + } | |
| 14433 | + if (ltema.escala*1 > i3GEO.parametros.mapscale*1){ | |
| 14434 | + var farol = "maisvermelho.png"; | |
| 14435 | + var mfarol = $trad("t10"); | |
| 14436 | + } | |
| 14437 | + if (ltema.escala == 0){ | |
| 14438 | + var farol = "maisamarelo.png"; | |
| 14439 | + var mfarol = $trad("t11"); | |
| 14440 | + } | |
| 14441 | + tnome = " <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>"; | |
| 14442 | + tnome += " <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14443 | + tnome += " <img class='sobe' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14444 | + tnome += " <img class='desce' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14445 | + //a operação de zoom para o tema não funciona na interface flamingo | |
| 14446 | + if( (ltema.zoomtema == "sim") && (!$i("flamingo"))) | |
| 14447 | + {tnome += " <img class='extent' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";} | |
| 14448 | + var d = {html:tnome}; | |
| 14449 | + var iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 14450 | + iconesNode.isLeaf = true; | |
| 14403 | 14451 | } |
| 14404 | - tnome = " <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' \>"; | |
| 14405 | - tnome += " <img id='idx"+ltema.name+"' class='x' src='"+i3GEO.util.$im("branco.gif")+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14406 | - tnome += " <img class='sobe' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14407 | - tnome += " <img class='desce' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>"; | |
| 14408 | - //a operação de zoom para o tema não funciona na interface flamingo | |
| 14409 | - if( (ltema.zoomtema == "sim") && (!$i("flamingo"))) | |
| 14410 | - {tnome += " <img class='extent' src='"+i3GEO.util.$im("branco.gif") +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" \>";} | |
| 14411 | - var d = {html:tnome}; | |
| 14412 | - var iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 14413 | - iconesNode.isLeaf = true; | |
| 14414 | 14452 | if(i3GEO.arvoreDeCamadas.OPCOESTEMAS == true){ |
| 14415 | 14453 | var conteudo = $trad("t18a"); |
| 14416 | 14454 | var d = {html:conteudo,idopcoes:ltema.name}; |
| ... | ... | @@ -14420,7 +14458,7 @@ i3GEO.arvoreDeCamadas = { |
| 14420 | 14458 | if(i3GEO.arvoreDeCamadas.OPCOESLEGENDA == true){ |
| 14421 | 14459 | var conteudo = $trad("p3"); |
| 14422 | 14460 | var d = {html:conteudo,idlegenda:ltema.name}; |
| 14423 | - var opcoesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 14461 | + var opcoesNode = new YAHOO.widget.HTMLNode(d, node, i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA,true); | |
| 14424 | 14462 | opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda, 1); |
| 14425 | 14463 | } |
| 14426 | 14464 | node.loadComplete(); |
| ... | ... | @@ -14502,7 +14540,7 @@ i3GEO.arvoreDeCamadas = { |
| 14502 | 14540 | var idtema = node.data.idlegenda; |
| 14503 | 14541 | var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); |
| 14504 | 14542 | var retorna = function(retorno){ |
| 14505 | - if (retorno.data.legenda){ | |
| 14543 | + if(retorno.data.legenda){ | |
| 14506 | 14544 | var original = retorno; |
| 14507 | 14545 | var retorno = retorno.data.legenda; |
| 14508 | 14546 | if (retorno[0]){ |
| ... | ... | @@ -14569,6 +14607,9 @@ i3GEO.arvoreDeCamadas = { |
| 14569 | 14607 | } |
| 14570 | 14608 | } |
| 14571 | 14609 | }; |
| 14610 | + if(i3GEO.configura.templateLegenda != "") | |
| 14611 | + i3GEO.php.criaLegendaHTML(retorna,idtema,i3GEO.configura.templateLegenda); | |
| 14612 | + else | |
| 14572 | 14613 | i3GEO.php.criaLegendaHTML(retorna,idtema); |
| 14573 | 14614 | }, |
| 14574 | 14615 | /* | ... | ... |
classesphp/wmswfs.php
| ... | ... | @@ -49,23 +49,25 @@ function gravaCacheWMS($servico) |
| 49 | 49 | global $dir_tmp; |
| 50 | 50 | error_reporting(0); |
| 51 | 51 | try{ |
| 52 | - $teste = explode("=",$servico); | |
| 53 | - if ( count($teste) > 1 ){$servico = $servico."&";} | |
| 54 | - $wms_service_request = $servico . "REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1"; | |
| 55 | - $nome = $dir_tmp."/wms".md5($servico).".xml"; | |
| 56 | - if(!file_exists($nome)) | |
| 57 | - { | |
| 58 | - $wms_capabilities = file($wms_service_request); | |
| 59 | - if( !$wms_capabilities ) | |
| 60 | - {return "erro";} | |
| 52 | + $teste = explode("=",$servico); | |
| 53 | + if ( count($teste) > 1 ){$servico = $servico."&";} | |
| 61 | 54 | else |
| 55 | + {$servico = $servico."?";} | |
| 56 | + $wms_service_request = $servico . "REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1"; | |
| 57 | + $nome = $dir_tmp."/wms".md5($servico).".xml"; | |
| 58 | + if(!file_exists($nome)) | |
| 62 | 59 | { |
| 63 | - $fp = fopen($nome, 'w'); | |
| 64 | - fwrite($fp, implode("",$wms_capabilities)); | |
| 65 | - fclose($fp); | |
| 60 | + $wms_capabilities = file($wms_service_request); | |
| 61 | + if( !$wms_capabilities ) | |
| 62 | + {return "erro";} | |
| 63 | + else | |
| 64 | + { | |
| 65 | + $fp = fopen($nome, 'w'); | |
| 66 | + fwrite($fp, implode("",$wms_capabilities)); | |
| 67 | + fclose($fp); | |
| 68 | + } | |
| 66 | 69 | } |
| 67 | - } | |
| 68 | - return $nome; | |
| 70 | + return $nome; | |
| 69 | 71 | } |
| 70 | 72 | catch(Exception $e){return "erro";} |
| 71 | 73 | } |
| ... | ... | @@ -271,9 +273,6 @@ function temaswms() |
| 271 | 273 | { |
| 272 | 274 | global $servico,$cp,$id_ws; |
| 273 | 275 | $wms_service_request = gravaCacheWMS($servico); |
| 274 | - //$teste = explode("=",$servico); | |
| 275 | - //if ( count($teste) > 1 ){$servico = $servico."&";} | |
| 276 | - //$wms_service_request = $servico . "REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1"; | |
| 277 | 276 | # ------------------------------------------------------------- |
| 278 | 277 | # Test that the capabilites file has successfully downloaded. |
| 279 | 278 | # |
| ... | ... | @@ -292,12 +291,14 @@ function temaswms() |
| 292 | 291 | } |
| 293 | 292 | elseif(isset($id_ws)) |
| 294 | 293 | { |
| 295 | - $handle = fopen ($wms_service_request, "r"); | |
| 296 | - $wms_capabilities = fread ($handle, filesize ($wms_service_request)); | |
| 297 | - fclose ($handle); | |
| 294 | + if($id_ws != "") | |
| 298 | 295 | adicionaAcesso($id_ws,true); |
| 299 | 296 | } |
| 300 | - //$wms_capabilities = implode("",$wms_capabilities); | |
| 297 | + | |
| 298 | + $handle = fopen ($wms_service_request, "r"); | |
| 299 | + $wms_capabilities = fread($handle, filesize($wms_service_request)); | |
| 300 | + fclose ($handle); | |
| 301 | + | |
| 301 | 302 | $dom = new DomDocument(); |
| 302 | 303 | $dom->loadXML($wms_capabilities); |
| 303 | 304 | $layers = wms_layers($dom); | ... | ... |
| ... | ... | @@ -0,0 +1,176 @@ |
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| 2 | +<html> | |
| 3 | +<head> | |
| 4 | +<meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile"> | |
| 5 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| 6 | +<title>i3Geo - Mapa interativo</title> | |
| 7 | +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | |
| 8 | + <style> | |
| 9 | + .yui-log .i3geo {background-color:yellow;} /* customize a color */ | |
| 10 | + .yui-log .redesenho {background-color:yellow;} /* customize a color */ | |
| 11 | + .yui-log .janela {background-color:yellow;} /* customize a color */ | |
| 12 | + .yui-log-bd {text-align:left;} | |
| 13 | + .yui-log-entry yui-log-verbose, p{text-align:left;} | |
| 14 | + .info {text-align:left;} | |
| 15 | + </style> | |
| 16 | +</head> | |
| 17 | +<body id="i3geo"> | |
| 18 | + | |
| 19 | +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | |
| 20 | +<tr style="border:0px"> | |
| 21 | + <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | |
| 22 | +</tr> | |
| 23 | +<tr> | |
| 24 | +<td> | |
| 25 | + <table width=100% cellspacing=0 cellpadding=0 > | |
| 26 | + <tr> | |
| 27 | + <td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td> | |
| 28 | + <td> | |
| 29 | + <div class=verdeescuro style="top:0px;cursor:pointer;"> | |
| 30 | + <div id=guia1 class=guia >Temas</div> | |
| 31 | + <div id=guia2 class=guia >Adiciona</div> | |
| 32 | + <div id=guia4 class=guia >Legenda</div> | |
| 33 | + <div id=guia5 class=guia >Links</div> | |
| 34 | + </div> | |
| 35 | + </td> | |
| 36 | + </tr> | |
| 37 | + </table> | |
| 38 | +</td> | |
| 39 | +<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
| 40 | + <div id="menus" ></div> | |
| 41 | +</td> | |
| 42 | +</tr> | |
| 43 | +<tr> | |
| 44 | + <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:268px;text-align:left;"> | |
| 45 | + <div id='guia1obj' > | |
| 46 | + <div style='left:5px;top:10px;' id=buscaRapida ></div> | |
| 47 | + <div id=listaPropriedades style='top:15px;' ></div> | |
| 48 | + <div id=listaTemas style='top:15px;'></div> | |
| 49 | + </div> | |
| 50 | + <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | |
| 51 | + <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | |
| 52 | + <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | |
| 53 | + </td> | |
| 54 | + <td style="vertical-align:top;border-width:0px;"> | |
| 55 | + <table width="100%" style="vertical-align:top;border-width:0px"> | |
| 56 | + <tr><td class=verdeclaro id=contemImg > | |
| 57 | + <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | |
| 58 | + </td></tr> | |
| 59 | + </table> | |
| 60 | + </td> | |
| 61 | + </tr> | |
| 62 | +<tr> | |
| 63 | + <td class=tdbranca > | |
| 64 | + <div id=visual ></div> | |
| 65 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | |
| 66 | + </td> | |
| 67 | + <td class=tdbranca > | |
| 68 | + <table width=100% ><tr> | |
| 69 | + <td class=tdbranca ><div id=lugarquadros ></div></td> | |
| 70 | + <td class=tdbranca style=text-align:center > | |
| 71 | + <div id=localizarxy > | |
| 72 | + Aguarde... | |
| 73 | + </div> | |
| 74 | + </td> | |
| 75 | + <td class=tdbranca ><div id=escala ></div></td> | |
| 76 | + <td class=tdbranca ><div id=ondeestou ></div></td> | |
| 77 | + </tr> | |
| 78 | + <tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:10px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr> | |
| 79 | + </table> | |
| 80 | + </td> | |
| 81 | +</tr> | |
| 82 | +<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | |
| 83 | +<tr style="border:0px"><td colspan=3 style=background-color:black ><input style="border:0px none; background-color:black;color:white;font-size:12pt;" type="text" size="1" id="i3geo_letreiro" ></td></tr> | |
| 84 | +<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | |
| 85 | + | |
| 86 | +</table> | |
| 87 | +</center> | |
| 88 | +<div id=barraDeBotoes1 style='display:none'> | |
| 89 | + <table style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr><tr><td style=height:5px ></td></tr></table> | |
| 90 | + <table title="zoom" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> | |
| 91 | + <table title="desloca" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> | |
| 92 | + <table title="info" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> | |
| 93 | + <table title="geral" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table> | |
| 94 | + <table title="mede" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table> | |
| 95 | + <table title="area" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table> | |
| 96 | +</div> | |
| 97 | +<div id=barraDeBotoes2 style='display:none'> | |
| 98 | + <table style="width:100%"><caption style="text-align:center"> </caption> | |
| 99 | + <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr> | |
| 100 | + </table> | |
| 101 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 102 | + <p style='font-size:6px;'> </p> | |
| 103 | + <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/> | |
| 104 | + </div> | |
| 105 | + | |
| 106 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 107 | + <p style='font-size:6px;'> </p> | |
| 108 | + <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/> | |
| 109 | + </div> | |
| 110 | + | |
| 111 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 112 | + <p style='font-size:6px;'> </p> | |
| 113 | + <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/> | |
| 114 | + </div> | |
| 115 | + | |
| 116 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 117 | + <p style='font-size:6px;'> </p> | |
| 118 | + <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/> | |
| 119 | + </div> | |
| 120 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 121 | + <p style='font-size:6px;'> </p> | |
| 122 | + <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/> | |
| 123 | + </div> | |
| 124 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 125 | + <p style='font-size:6px;'> </p> | |
| 126 | + <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/> | |
| 127 | + </div> | |
| 128 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 129 | + <p style='font-size:6px;'> </p> | |
| 130 | + <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/> | |
| 131 | + </div> | |
| 132 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 133 | + <p style='font-size:6px;'> </p> | |
| 134 | + <img title="google" alt="" src="../imagens/branco.gif" id='google'/> | |
| 135 | + </div> | |
| 136 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 137 | + <p style='font-size:6px;'> </p> | |
| 138 | + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/> | |
| 139 | + </div> | |
| 140 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 141 | + <p style='font-size:6px;'> </p> | |
| 142 | + <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/> | |
| 143 | + </div> | |
| 144 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 145 | + <p style='font-size:6px;'> </p> | |
| 146 | + <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/> | |
| 147 | + </div> | |
| 148 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 149 | + <p style='font-size:6px;'> </p> | |
| 150 | + <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/> | |
| 151 | + </div> | |
| 152 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 153 | + <p style='font-size:6px;'> </p> | |
| 154 | + <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/> | |
| 155 | + </div> | |
| 156 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 157 | + <p style='font-size:6px;'> </p> | |
| 158 | + <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/> | |
| 159 | + </div> | |
| 160 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 161 | + <p style='font-size:6px;'> </p> | |
| 162 | + <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/> | |
| 163 | + </div> | |
| 164 | + <table style="width:100%;"><tr><td style='background-color:rgb(250,250,250);'><p style='font-size:6px;'> </p><img title="" alt="" src="../imagens/branco.gif" id='desceferramentas'/></td></tr></table> | |
| 165 | +</div> | |
| 166 | +<script type="text/javascript"> | |
| 167 | + | |
| 168 | +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
| 169 | +i3GEO.arvoreDeCamadas.EXPANDIDA = true; | |
| 170 | +i3GEO.cria() | |
| 171 | +i3GEO.inicia(); | |
| 172 | + | |
| 173 | + | |
| 174 | +</script> | |
| 175 | +</body> | |
| 176 | +</html> | |
| 0 | 177 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,177 @@ |
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| 2 | +<html> | |
| 3 | +<head> | |
| 4 | +<meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile"> | |
| 5 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| 6 | +<title>i3Geo - Mapa interativo</title> | |
| 7 | +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | |
| 8 | + <style> | |
| 9 | + .yui-log .i3geo {background-color:yellow;} /* customize a color */ | |
| 10 | + .yui-log .redesenho {background-color:yellow;} /* customize a color */ | |
| 11 | + .yui-log .janela {background-color:yellow;} /* customize a color */ | |
| 12 | + .yui-log-bd {text-align:left;} | |
| 13 | + .yui-log-entry yui-log-verbose, p{text-align:left;} | |
| 14 | + .info {text-align:left;} | |
| 15 | + </style> | |
| 16 | +</head> | |
| 17 | +<body id="i3geo"> | |
| 18 | + | |
| 19 | +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | |
| 20 | +<tr style="border:0px"> | |
| 21 | + <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | |
| 22 | +</tr> | |
| 23 | +<tr> | |
| 24 | +<td> | |
| 25 | + <table width=100% cellspacing=0 cellpadding=0 > | |
| 26 | + <tr> | |
| 27 | + <td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td> | |
| 28 | + <td> | |
| 29 | + <div class=verdeescuro style="top:0px;cursor:pointer;"> | |
| 30 | + <div id=guia1 class=guia >Temas</div> | |
| 31 | + <div id=guia2 class=guia >Adiciona</div> | |
| 32 | + <div id=guia4 class=guia >Legenda</div> | |
| 33 | + <div id=guia5 class=guia >Links</div> | |
| 34 | + </div> | |
| 35 | + </td> | |
| 36 | + </tr> | |
| 37 | + </table> | |
| 38 | +</td> | |
| 39 | +<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
| 40 | + <div id="menus" ></div> | |
| 41 | +</td> | |
| 42 | +</tr> | |
| 43 | +<tr> | |
| 44 | + <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:268px;text-align:left;"> | |
| 45 | + <div id='guia1obj' > | |
| 46 | + <div style='left:5px;top:10px;' id=buscaRapida ></div> | |
| 47 | + <div id=listaPropriedades style='top:15px;' ></div> | |
| 48 | + <div id=listaTemas style='top:15px;'></div> | |
| 49 | + </div> | |
| 50 | + <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | |
| 51 | + <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | |
| 52 | + <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | |
| 53 | + </td> | |
| 54 | + <td style="vertical-align:top;border-width:0px;"> | |
| 55 | + <table width="100%" style="vertical-align:top;border-width:0px"> | |
| 56 | + <tr><td class=verdeclaro id=contemImg > | |
| 57 | + <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | |
| 58 | + </td></tr> | |
| 59 | + </table> | |
| 60 | + </td> | |
| 61 | + </tr> | |
| 62 | +<tr> | |
| 63 | + <td class=tdbranca > | |
| 64 | + <div id=visual ></div> | |
| 65 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | |
| 66 | + </td> | |
| 67 | + <td class=tdbranca > | |
| 68 | + <table width=100% ><tr> | |
| 69 | + <td class=tdbranca ><div id=lugarquadros ></div></td> | |
| 70 | + <td class=tdbranca style=text-align:center > | |
| 71 | + <div id=localizarxy > | |
| 72 | + Aguarde... | |
| 73 | + </div> | |
| 74 | + </td> | |
| 75 | + <td class=tdbranca ><div id=escala ></div></td> | |
| 76 | + <td class=tdbranca ><div id=ondeestou ></div></td> | |
| 77 | + </tr> | |
| 78 | + <tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:10px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr> | |
| 79 | + </table> | |
| 80 | + </td> | |
| 81 | +</tr> | |
| 82 | +<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | |
| 83 | +<tr style="border:0px"><td colspan=3 style=background-color:black ><input style="border:0px none; background-color:black;color:white;font-size:12pt;" type="text" size="1" id="i3geo_letreiro" ></td></tr> | |
| 84 | +<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | |
| 85 | + | |
| 86 | +</table> | |
| 87 | +</center> | |
| 88 | +<div id=barraDeBotoes1 style='display:none'> | |
| 89 | + <table style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr><tr><td style=height:5px ></td></tr></table> | |
| 90 | + <table title="zoom" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> | |
| 91 | + <table title="desloca" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> | |
| 92 | + <table title="info" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> | |
| 93 | + <table title="geral" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table> | |
| 94 | + <table title="mede" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table> | |
| 95 | + <table title="area" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table> | |
| 96 | +</div> | |
| 97 | +<div id=barraDeBotoes2 style='display:none'> | |
| 98 | + <table style="width:100%"><caption style="text-align:center"> </caption> | |
| 99 | + <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr> | |
| 100 | + </table> | |
| 101 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 102 | + <p style='font-size:6px;'> </p> | |
| 103 | + <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/> | |
| 104 | + </div> | |
| 105 | + | |
| 106 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 107 | + <p style='font-size:6px;'> </p> | |
| 108 | + <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/> | |
| 109 | + </div> | |
| 110 | + | |
| 111 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 112 | + <p style='font-size:6px;'> </p> | |
| 113 | + <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/> | |
| 114 | + </div> | |
| 115 | + | |
| 116 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 117 | + <p style='font-size:6px;'> </p> | |
| 118 | + <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/> | |
| 119 | + </div> | |
| 120 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 121 | + <p style='font-size:6px;'> </p> | |
| 122 | + <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/> | |
| 123 | + </div> | |
| 124 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 125 | + <p style='font-size:6px;'> </p> | |
| 126 | + <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/> | |
| 127 | + </div> | |
| 128 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 129 | + <p style='font-size:6px;'> </p> | |
| 130 | + <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/> | |
| 131 | + </div> | |
| 132 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 133 | + <p style='font-size:6px;'> </p> | |
| 134 | + <img title="google" alt="" src="../imagens/branco.gif" id='google'/> | |
| 135 | + </div> | |
| 136 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 137 | + <p style='font-size:6px;'> </p> | |
| 138 | + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/> | |
| 139 | + </div> | |
| 140 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 141 | + <p style='font-size:6px;'> </p> | |
| 142 | + <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/> | |
| 143 | + </div> | |
| 144 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 145 | + <p style='font-size:6px;'> </p> | |
| 146 | + <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/> | |
| 147 | + </div> | |
| 148 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 149 | + <p style='font-size:6px;'> </p> | |
| 150 | + <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/> | |
| 151 | + </div> | |
| 152 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 153 | + <p style='font-size:6px;'> </p> | |
| 154 | + <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/> | |
| 155 | + </div> | |
| 156 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 157 | + <p style='font-size:6px;'> </p> | |
| 158 | + <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/> | |
| 159 | + </div> | |
| 160 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 161 | + <p style='font-size:6px;'> </p> | |
| 162 | + <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/> | |
| 163 | + </div> | |
| 164 | + <table style="width:100%;"><tr><td style='background-color:rgb(250,250,250);'><p style='font-size:6px;'> </p><img title="" alt="" src="../imagens/branco.gif" id='desceferramentas'/></td></tr></table> | |
| 165 | +</div> | |
| 166 | +<script type="text/javascript"> | |
| 167 | + | |
| 168 | +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
| 169 | +i3GEO.arvoreDeCamadas.EXPANDIDA = true; | |
| 170 | +i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA = true; | |
| 171 | +i3GEO.cria() | |
| 172 | +i3GEO.inicia(); | |
| 173 | + | |
| 174 | + | |
| 175 | +</script> | |
| 176 | +</body> | |
| 177 | +</html> | |
| 0 | 178 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,178 @@ |
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| 2 | +<html> | |
| 3 | +<head> | |
| 4 | +<meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile"> | |
| 5 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| 6 | +<title>i3Geo - Mapa interativo</title> | |
| 7 | +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | |
| 8 | + <style> | |
| 9 | + .yui-log .i3geo {background-color:yellow;} /* customize a color */ | |
| 10 | + .yui-log .redesenho {background-color:yellow;} /* customize a color */ | |
| 11 | + .yui-log .janela {background-color:yellow;} /* customize a color */ | |
| 12 | + .yui-log-bd {text-align:left;} | |
| 13 | + .yui-log-entry yui-log-verbose, p{text-align:left;} | |
| 14 | + .info {text-align:left;} | |
| 15 | + </style> | |
| 16 | +</head> | |
| 17 | +<body id="i3geo"> | |
| 18 | + | |
| 19 | +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | |
| 20 | +<tr style="border:0px"> | |
| 21 | + <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | |
| 22 | +</tr> | |
| 23 | +<tr> | |
| 24 | +<td> | |
| 25 | + <table width=100% cellspacing=0 cellpadding=0 > | |
| 26 | + <tr> | |
| 27 | + <td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td> | |
| 28 | + <td> | |
| 29 | + <div class=verdeescuro style="top:0px;cursor:pointer;"> | |
| 30 | + <div id=guia1 class=guia >Temas</div> | |
| 31 | + <div id=guia2 class=guia >Adiciona</div> | |
| 32 | + <div id=guia4 class=guia >Legenda</div> | |
| 33 | + <div id=guia5 class=guia >Links</div> | |
| 34 | + </div> | |
| 35 | + </td> | |
| 36 | + </tr> | |
| 37 | + </table> | |
| 38 | +</td> | |
| 39 | +<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
| 40 | + <div id="menus" ></div> | |
| 41 | +</td> | |
| 42 | +</tr> | |
| 43 | +<tr> | |
| 44 | + <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:268px;text-align:left;"> | |
| 45 | + <div id='guia1obj' > | |
| 46 | + <div id=listaTemas style='top:15px;'></div> | |
| 47 | + </div> | |
| 48 | + <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | |
| 49 | + <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | |
| 50 | + <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | |
| 51 | + </td> | |
| 52 | + <td style="vertical-align:top;border-width:0px;"> | |
| 53 | + <table width="100%" style="vertical-align:top;border-width:0px"> | |
| 54 | + <tr><td class=verdeclaro id=contemImg > | |
| 55 | + <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | |
| 56 | + </td></tr> | |
| 57 | + </table> | |
| 58 | + </td> | |
| 59 | + </tr> | |
| 60 | +<tr> | |
| 61 | + <td class=tdbranca > | |
| 62 | + <div id=visual ></div> | |
| 63 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | |
| 64 | + </td> | |
| 65 | + <td class=tdbranca > | |
| 66 | + <table width=100% ><tr> | |
| 67 | + <td class=tdbranca ><div id=lugarquadros ></div></td> | |
| 68 | + <td class=tdbranca style=text-align:center > | |
| 69 | + <div id=localizarxy > | |
| 70 | + Aguarde... | |
| 71 | + </div> | |
| 72 | + </td> | |
| 73 | + <td class=tdbranca ><div id=escala ></div></td> | |
| 74 | + <td class=tdbranca ><div id=ondeestou ></div></td> | |
| 75 | + </tr> | |
| 76 | + <tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:10px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr> | |
| 77 | + </table> | |
| 78 | + </td> | |
| 79 | +</tr> | |
| 80 | +<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | |
| 81 | +<tr style="border:0px"><td colspan=3 style=background-color:black ><input style="border:0px none; background-color:black;color:white;font-size:12pt;" type="text" size="1" id="i3geo_letreiro" ></td></tr> | |
| 82 | +<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | |
| 83 | + | |
| 84 | +</table> | |
| 85 | +</center> | |
| 86 | +<div id=barraDeBotoes1 style='display:none'> | |
| 87 | + <table style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr><tr><td style=height:5px ></td></tr></table> | |
| 88 | + <table title="zoom" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> | |
| 89 | + <table title="desloca" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> | |
| 90 | + <table title="info" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> | |
| 91 | + <table title="geral" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table> | |
| 92 | + <table title="mede" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table> | |
| 93 | + <table title="area" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table> | |
| 94 | +</div> | |
| 95 | +<div id=barraDeBotoes2 style='display:none'> | |
| 96 | + <table style="width:100%"><caption style="text-align:center"> </caption> | |
| 97 | + <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr> | |
| 98 | + </table> | |
| 99 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 100 | + <p style='font-size:6px;'> </p> | |
| 101 | + <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/> | |
| 102 | + </div> | |
| 103 | + | |
| 104 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 105 | + <p style='font-size:6px;'> </p> | |
| 106 | + <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/> | |
| 107 | + </div> | |
| 108 | + | |
| 109 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 110 | + <p style='font-size:6px;'> </p> | |
| 111 | + <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/> | |
| 112 | + </div> | |
| 113 | + | |
| 114 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 115 | + <p style='font-size:6px;'> </p> | |
| 116 | + <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/> | |
| 117 | + </div> | |
| 118 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 119 | + <p style='font-size:6px;'> </p> | |
| 120 | + <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/> | |
| 121 | + </div> | |
| 122 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 123 | + <p style='font-size:6px;'> </p> | |
| 124 | + <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/> | |
| 125 | + </div> | |
| 126 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 127 | + <p style='font-size:6px;'> </p> | |
| 128 | + <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/> | |
| 129 | + </div> | |
| 130 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 131 | + <p style='font-size:6px;'> </p> | |
| 132 | + <img title="google" alt="" src="../imagens/branco.gif" id='google'/> | |
| 133 | + </div> | |
| 134 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 135 | + <p style='font-size:6px;'> </p> | |
| 136 | + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/> | |
| 137 | + </div> | |
| 138 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 139 | + <p style='font-size:6px;'> </p> | |
| 140 | + <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/> | |
| 141 | + </div> | |
| 142 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 143 | + <p style='font-size:6px;'> </p> | |
| 144 | + <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/> | |
| 145 | + </div> | |
| 146 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 147 | + <p style='font-size:6px;'> </p> | |
| 148 | + <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/> | |
| 149 | + </div> | |
| 150 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 151 | + <p style='font-size:6px;'> </p> | |
| 152 | + <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/> | |
| 153 | + </div> | |
| 154 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 155 | + <p style='font-size:6px;'> </p> | |
| 156 | + <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/> | |
| 157 | + </div> | |
| 158 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 159 | + <p style='font-size:6px;'> </p> | |
| 160 | + <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/> | |
| 161 | + </div> | |
| 162 | + <table style="width:100%;"><tr><td style='background-color:rgb(250,250,250);'><p style='font-size:6px;'> </p><img title="" alt="" src="../imagens/branco.gif" id='desceferramentas'/></td></tr></table> | |
| 163 | +</div> | |
| 164 | +<script type="text/javascript"> | |
| 165 | + | |
| 166 | +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
| 167 | +i3GEO.arvoreDeCamadas.EXPANDIDA = true; | |
| 168 | +i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA = false; | |
| 169 | +i3GEO.arvoreDeCamadas.OPCOESTEMAS = false | |
| 170 | +i3GEO.arvoreDeCamadas.OPCOESICONES = false | |
| 171 | +i3GEO.configura.templateLegenda = "legenda3.htm" | |
| 172 | +i3GEO.cria() | |
| 173 | +i3GEO.inicia(); | |
| 174 | + | |
| 175 | + | |
| 176 | +</script> | |
| 177 | +</body> | |
| 178 | +</html> | |
| 0 | 179 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,185 @@ |
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| 2 | +<html> | |
| 3 | +<head> | |
| 4 | +<meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile"> | |
| 5 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| 6 | +<title>i3Geo - Mapa interativo</title> | |
| 7 | +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | |
| 8 | + <style> | |
| 9 | + .yui-log .i3geo {background-color:yellow;} /* customize a color */ | |
| 10 | + .yui-log .redesenho {background-color:yellow;} /* customize a color */ | |
| 11 | + .yui-log .janela {background-color:yellow;} /* customize a color */ | |
| 12 | + .yui-log-bd {text-align:left;} | |
| 13 | + .yui-log-entry yui-log-verbose, p{text-align:left;} | |
| 14 | + .info {text-align:left;} | |
| 15 | + </style> | |
| 16 | +</head> | |
| 17 | +<body id="i3geo"> | |
| 18 | + | |
| 19 | +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | |
| 20 | +<tr style="border:0px"> | |
| 21 | + <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | |
| 22 | +</tr> | |
| 23 | +<tr> | |
| 24 | +<td> | |
| 25 | + <table width=100% cellspacing=0 cellpadding=0 > | |
| 26 | + <tr> | |
| 27 | + <td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td> | |
| 28 | + <td> | |
| 29 | + <div class=verdeescuro style="top:0px;cursor:pointer;"> | |
| 30 | + <div id=guia1 class=guia >Temas</div> | |
| 31 | + <div id=guia4 class=guia >Legenda</div> | |
| 32 | + <div id=guia5 class=guia >Links</div> | |
| 33 | + </div> | |
| 34 | + </td> | |
| 35 | + </tr> | |
| 36 | + </table> | |
| 37 | +</td> | |
| 38 | +<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
| 39 | + <div id="menus" ></div> | |
| 40 | +</td> | |
| 41 | +</tr> | |
| 42 | +<tr> | |
| 43 | + <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:268px;text-align:left;"> | |
| 44 | + <div id='guia1obj' > | |
| 45 | + <input style="cursor:pointer;left:-60px;top:10px;position:relative;" id=botaoMaisTemas size=20 type=button value="Adicionar mais temas" onclick="janelaMaisTemas()" /> | |
| 46 | + <div id=listaTemas style='top:15px;'></div> | |
| 47 | + </div> | |
| 48 | + <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | |
| 49 | + <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | |
| 50 | + </td> | |
| 51 | + <td style="vertical-align:top;border-width:0px;"> | |
| 52 | + <table width="100%" style="vertical-align:top;border-width:0px"> | |
| 53 | + <tr><td class=verdeclaro id=contemImg > | |
| 54 | + <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | |
| 55 | + </td></tr> | |
| 56 | + </table> | |
| 57 | + </td> | |
| 58 | + </tr> | |
| 59 | +<tr> | |
| 60 | + <td class=tdbranca > | |
| 61 | + <div id=visual ></div> | |
| 62 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | |
| 63 | + </td> | |
| 64 | + <td class=tdbranca > | |
| 65 | + <table width=100% ><tr> | |
| 66 | + <td class=tdbranca ><div id=lugarquadros ></div></td> | |
| 67 | + <td class=tdbranca style=text-align:center > | |
| 68 | + <div id=localizarxy > | |
| 69 | + Aguarde... | |
| 70 | + </div> | |
| 71 | + </td> | |
| 72 | + <td class=tdbranca ><div id=escala ></div></td> | |
| 73 | + <td class=tdbranca ><div id=ondeestou ></div></td> | |
| 74 | + </tr> | |
| 75 | + <tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:10px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr> | |
| 76 | + </table> | |
| 77 | + </td> | |
| 78 | +</tr> | |
| 79 | +<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | |
| 80 | +<tr style="border:0px"><td colspan=3 style=background-color:black ><input style="border:0px none; background-color:black;color:white;font-size:12pt;" type="text" size="1" id="i3geo_letreiro" ></td></tr> | |
| 81 | +<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | |
| 82 | + | |
| 83 | +</table> | |
| 84 | +</center> | |
| 85 | +<div id=barraDeBotoes1 style='display:none'> | |
| 86 | + <table style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr><tr><td style=height:5px ></td></tr></table> | |
| 87 | + <table title="zoom" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> | |
| 88 | + <table title="desloca" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> | |
| 89 | + <table title="info" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> | |
| 90 | + <table title="geral" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table> | |
| 91 | + <table title="mede" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table> | |
| 92 | + <table title="area" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table> | |
| 93 | +</div> | |
| 94 | +<div id=barraDeBotoes2 style='display:none'> | |
| 95 | + <table style="width:100%"><caption style="text-align:center"> </caption> | |
| 96 | + <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr> | |
| 97 | + </table> | |
| 98 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 99 | + <p style='font-size:6px;'> </p> | |
| 100 | + <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/> | |
| 101 | + </div> | |
| 102 | + | |
| 103 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 104 | + <p style='font-size:6px;'> </p> | |
| 105 | + <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/> | |
| 106 | + </div> | |
| 107 | + | |
| 108 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 109 | + <p style='font-size:6px;'> </p> | |
| 110 | + <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/> | |
| 111 | + </div> | |
| 112 | + | |
| 113 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 114 | + <p style='font-size:6px;'> </p> | |
| 115 | + <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/> | |
| 116 | + </div> | |
| 117 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 118 | + <p style='font-size:6px;'> </p> | |
| 119 | + <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/> | |
| 120 | + </div> | |
| 121 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 122 | + <p style='font-size:6px;'> </p> | |
| 123 | + <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/> | |
| 124 | + </div> | |
| 125 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 126 | + <p style='font-size:6px;'> </p> | |
| 127 | + <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/> | |
| 128 | + </div> | |
| 129 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 130 | + <p style='font-size:6px;'> </p> | |
| 131 | + <img title="google" alt="" src="../imagens/branco.gif" id='google'/> | |
| 132 | + </div> | |
| 133 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 134 | + <p style='font-size:6px;'> </p> | |
| 135 | + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/> | |
| 136 | + </div> | |
| 137 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 138 | + <p style='font-size:6px;'> </p> | |
| 139 | + <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/> | |
| 140 | + </div> | |
| 141 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 142 | + <p style='font-size:6px;'> </p> | |
| 143 | + <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/> | |
| 144 | + </div> | |
| 145 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 146 | + <p style='font-size:6px;'> </p> | |
| 147 | + <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/> | |
| 148 | + </div> | |
| 149 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 150 | + <p style='font-size:6px;'> </p> | |
| 151 | + <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/> | |
| 152 | + </div> | |
| 153 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 154 | + <p style='font-size:6px;'> </p> | |
| 155 | + <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/> | |
| 156 | + </div> | |
| 157 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 158 | + <p style='font-size:6px;'> </p> | |
| 159 | + <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/> | |
| 160 | + </div> | |
| 161 | + <table style="width:100%;"><tr><td style='background-color:rgb(250,250,250);'><p style='font-size:6px;'> </p><img title="" alt="" src="../imagens/branco.gif" id='desceferramentas'/></td></tr></table> | |
| 162 | +</div> | |
| 163 | +<script type="text/javascript"> | |
| 164 | +function janelaMaisTemas(){ | |
| 165 | + var janela = i3GEO.janela.cria("400px","600px","","","","+ Temas","maisTemas"); | |
| 166 | + janela[2].style.textAlign="left" | |
| 167 | + janela[2].style.background = "white" | |
| 168 | + janela[2].style.overflow = "auto" | |
| 169 | + janela[2].style.height = "380px" | |
| 170 | + janela[2].innerHTML = "<div id='arvoreAdicionaTema' ></div>" | |
| 171 | + i3GEO.arvoreDeTemas.ARVORE = false | |
| 172 | + i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,"arvoreAdicionaTema"); | |
| 173 | +} | |
| 174 | +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
| 175 | +i3GEO.arvoreDeCamadas.EXPANDIDA = false; | |
| 176 | +i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA = false; | |
| 177 | +i3GEO.arvoreDeCamadas.OPCOESTEMAS = false | |
| 178 | +i3GEO.arvoreDeCamadas.OPCOESICONES = false | |
| 179 | +i3GEO.configura.templateLegenda = "legenda3.htm" | |
| 180 | +i3GEO.cria() | |
| 181 | +i3GEO.inicia(); | |
| 182 | + | |
| 183 | +</script> | |
| 184 | +</body> | |
| 185 | +</html> | |
| 0 | 186 | \ No newline at end of file | ... | ... |
exemplos/index.html
| ... | ... | @@ -24,4 +24,9 @@ body,td |
| 24 | 24 | <p><a href="mashup3.htm" target="_blank" >Exemplo 3</a></p> |
| 25 | 25 | <p><a href="mashup4.htm" target="_blank" >Exemplo 4</a></p> |
| 26 | 26 | <p><a href="mashup5.htm" target="_blank" >Exemplo 5</a></p> |
| 27 | +<p>Exemplos de configuração da árvore de camadas</p> | |
| 28 | +<p><a href="camadas1.htm" target="_blank" >Árvore expandida</a></p> | |
| 29 | +<p><a href="camadas2.htm" target="_blank" >Legenda expandida</a></p> | |
| 30 | +<p><a href="camadas3.htm" target="_blank" >Árvore simplificada</a></p> | |
| 31 | +<p><a href="camadas4.htm" target="_blank" >Opção "mais temas" na guia de camadas</a></p> | |
| 27 | 32 | </body> | ... | ... |
ferramentas/conectarwms/index.js
| ... | ... | @@ -25,6 +25,7 @@ g_tipo = ""; //tipo de tema |
| 25 | 25 | g_tema = ""; //tema selecionado do ws |
| 26 | 26 | g_legenda = ""; //legenda do tema |
| 27 | 27 | g_nometema = ""; //nome do tema |
| 28 | +g_idws = "" | |
| 28 | 29 | ativaGuias("") |
| 29 | 30 | mostraGuia("guia1") |
| 30 | 31 | $i("guia1").onclick = function() |
| ... | ... | @@ -104,6 +105,7 @@ function metadados(retorno) |
| 104 | 105 | } |
| 105 | 106 | function listatemas(retorno) |
| 106 | 107 | { |
| 108 | + g_idws = ""; | |
| 107 | 109 | aguarde("none"); |
| 108 | 110 | if ((retorno.data != "erro") && (retorno.data != undefined)) |
| 109 | 111 | { | ... | ... |
menutemas/admin.db
No preview for this file type
ogc.php
| ... | ... | @@ -168,6 +168,11 @@ foreach ($_GET as $k=>$v) |
| 168 | 168 | //if(strtolower($k) == "srs") |
| 169 | 169 | //{$SRS = $v;} |
| 170 | 170 | } |
| 171 | +if(count($_GET) == 0){ | |
| 172 | + $tipo="intervalo"; | |
| 173 | + $req->setParameter("REQUEST", "getCapabilities"); | |
| 174 | + $req->setParameter("SERVICE", "WMS"); | |
| 175 | +} | |
| 171 | 176 | if(isset($tema) && $tipo != "metadados") |
| 172 | 177 | {$tipo = "";} |
| 173 | 178 | $req->setParameter("VeRsIoN","1.1.0"); |
| ... | ... | @@ -189,7 +194,13 @@ if((isset($tema)) && ($tema != "") && ($tipo=="metadados")) |
| 189 | 194 | $oMap->setmetadata("ows_onlineresource",$or); |
| 190 | 195 | $oMap->setmetadata("ows_title",$tituloInstituicao." - i3geo"); |
| 191 | 196 | if (!isset($intervalo)) |
| 192 | -{$intervalo = "0,50";} | |
| 197 | +{$intervalo = "0,5000";} | |
| 198 | +else | |
| 199 | +{$tipo = "intervalo";} | |
| 200 | +if(!isset($tema)){ | |
| 201 | + $intervalo = "0,5000"; | |
| 202 | + $tipo = "intervalo"; | |
| 203 | +} | |
| 193 | 204 | if ($tipo == "" || $tipo == "metadados") |
| 194 | 205 | { |
| 195 | 206 | $tema = explode(" ",$tema); |
| ... | ... | @@ -274,6 +285,7 @@ else |
| 274 | 285 | } |
| 275 | 286 | foreach($codigosTema as $codigoTema) |
| 276 | 287 | { |
| 288 | + if(!file_exists("temas/".$codigoTema.".map")){break;} | |
| 277 | 289 | if (@ms_newMapobj("temas/".$codigoTema.".map")) |
| 278 | 290 | { |
| 279 | 291 | $nmap = ms_newMapobj("temas/".$codigoTema.".map"); | ... | ... |