Commit 8ae2738dd5f2bc10ad88d666730dfb473a21c443
1 parent
e57e59b7
Exists in
master
and in
7 other branches
Reformulação da ferramenta de configuração dos parâmetros da legenda inserida no…
… mapa. Foi incluída uma opção para escolha da fonte e para testar os parâmetros antes de aplicá-los definitivamente.
Showing
6 changed files
with
81 additions
and
19 deletions
Show diff stats
classesjs/classe_mapa.js
@@ -550,7 +550,7 @@ i3GEO.mapa = { | @@ -550,7 +550,7 @@ i3GEO.mapa = { | ||
550 | Abre a janela de configuração da legenda do mapa | 550 | Abre a janela de configuração da legenda do mapa |
551 | */ | 551 | */ |
552 | opcoesLegenda: function() | 552 | opcoesLegenda: function() |
553 | - {i3GEO.janela.cria("300px","280px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda");}, | 553 | + {i3GEO.janela.cria("320px","300px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda");}, |
554 | /* | 554 | /* |
555 | Function: gradeCoord | 555 | Function: gradeCoord |
556 | 556 |
classesjs/compactados/classe_mapa_compacto.js
1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.mapa={GEOXML:new Array(),ajustaPosicao:function(elemento){if(arguments.length==0){return}try{imagemxi=0;imagemyi=0;imagemxref=0;imagemyref=0;var dc=$i("i3geo");if(!dc){return}if(dc.style.left){imagemxi+=parseInt(dc.style.left)}if(dc.style.top){imagemyi+=parseInt(dc.style.top)}var dc=$i(elemento);while((dc.offsetParent)&&(dc.offsetParent.id!="i3geo")){dc=dc.offsetParent;imagemxi=imagemxi+dc.offsetLeft;imagemyi=imagemyi+dc.offsetTop}var c=$i(i3GEO.interface.IDCORPO);if(c){c.style.position="absolute";$left(i3GEO.interface.IDCORPO,imagemxi);$top(i3GEO.interface.IDCORPO,imagemyi);if($i("i3geo").style.left){$left(i3GEO.interface.IDCORPO,imagemxi-parseInt($i("i3geo").style.left))}if($i("i3geo").style.top){$top(i3GEO.interface.IDCORPO,imagemyi-parseInt($i("i3geo").style.top))}}}catch(e){alert("Ocorreu um erro. i3GEO.mapa.ajustaPosicao"+e)}},ativaLogo:function(){i3GEO.php.ativalogo(i3GEO.atualiza)},insereToponimo:function(){if(g_tipoacao=="textofid"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;texto=doc.getElementById("texto").value;var f=doc.getElementById("fonte").value;var t=doc.getElementById("tamanho").value;var a=doc.getElementById("angulo").value;var cf=doc.getElementById("fundoc").value;if(cf==""){cf="off"}var cs=doc.getElementById("sombra").value;if(cs==""){cs="off"}var xs=doc.getElementById("sombrax").value;var ys=doc.getElementById("sombray").value;var c=doc.getElementById("frente").value;var m=doc.getElementById("mascara").value;if(m==""){m="off"}var fcs=doc.getElementById("frentes").value;if(fcs==""){fcs="off"}var fxs=doc.getElementById("frentex").value;var fys=doc.getElementById("frentey").value;var forca=doc.getElementById("force").value;var md=doc.getElementById("mindistance").value;var mf=doc.getElementById("minfeaturesize").value;var ox=doc.getElementById("offsetx").value;var oy=doc.getElementById("offsety").value;var pl=doc.getElementById("partials").value;var pos=doc.getElementById("position").value;var digi=function(retorno){if(texto==""){i3GEO.janela.fechaAguarde("i3GEO.atualiza");texto=retorno.data}if(texto!=" "){i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.insereAnnotation(i3GEO.atualiza,g_nomepin+"topo",objposicaocursor.ddx+" "+objposicaocursor.ddy,texto,pos,pl,ox,oy,mf,md,forca,fcs,fxs,fys,m,c,ys,xs,cs,cf,a,t,f)}};if(doc.getElementById("tipoInsere").value=="digitando"){digi.call()}else{texto="";if((doc.getElementById("temasLigados"))&&(doc.getElementById("itemsel"))){var tema=doc.getElementById("temasLigados").value;var item=doc.getElementById("itemsel").value;i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.identificaunico(digi,objposicaocursor.ddx+","+objposicaocursor.ddy,tema,item)}}}else{i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.insereToponimo()")}},insereKml:function(pan,url){if(arguments.length==1){var i=$i("i3geo_urlkml");if(i){var url=i.value}else{var url=""}}if(url==""){return}var ngeoxml="geoXml_"+i3GEO.mapa.GEOXML.length;i3GEO.mapa.GEOXML.push(ngeoxml);var zoom=function(){if(pan){eval("var ll = "+ngeoxml+".getDefaultCenter()");eval(ngeoxml+".gotoDefaultViewport(i3GeoMap)")}};eval(ngeoxml+" = new GGeoXml(url,zoom)");eval("i3GeoMap.addOverlay("+ngeoxml+")");i3GEO.mapa.criaNoArvoreGoogle(ngeoxml)},criaNoArvoreGoogle:function(nomeOverlay){var root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();var node=i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idkml","raiz");if(!node){var titulo="<table><tr><td><b>Google Maps</b></td></tr></table>";var d={html:titulo,idkml:"raiz"};var node=new YAHOO.widget.HTMLNode(d,root,true,true)}html="<input onclick='i3GEO.mapa.ativaDesativaOverlayGoogle(this)' class=inputsb style='cursor:pointer;' type='checkbox' value='"+ngeoxml+"' checked />";html+=" <span style='cursor:move'>"+url+"</span>";var d={html:html};var nodekml=new YAHOO.widget.HTMLNode(d,node,true,true);nodekml.isleaf=true;i3GEO.arvoreDeCamadas.ARVORE.draw();i3GEO.arvoreDeCamadas.ARVORE.collapseAll();node.expand()},ativaDesativaOverlayGoogle:function(obj){if(!obj.checked){eval("i3GeoMap.removeOverlay("+obj.value+")")}else eval("i3GeoMap.addOverlay("+obj.value+")")},inserePonto:function(){if(g_tipoacao=="inserexy"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(doc.getElementById("resultado")){var ins=doc.getElementById("resultado").innerHTML;ins=ins+"<div style='font-size:12px' >"+objposicaocursor.ddx+" "+objposicaocursor.ddy+"</div><br>";doc.getElementById("resultado").innerHTML=ins}var item="";var valoritem="";if((doc.getElementById("valorItem"))&&(doc.getElementById("itemtema"))){var item=doc.getElementById("itemtema").value;var valoritem=doc.getElementById("valorItem").value}if(g_nomepin==""){alert("Nenhum tema definido para editar")}else{i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.insereSHP(i3GEO.atualiza,g_nomepin,item,valoritem,objposicaocursor.ddx+" "+objposicaocursor.ddy)}}},insereGrafico:function(){if(g_tipoacao=="inseregrafico"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var tema=doc.getElementById("temasLigados").value;var width=doc.getElementById("w").value;var inclinacao=doc.getElementById("inclinacao").value;var shadow_height=doc.getElementById("sombra").value;if(tema==""){alert("Nenhum tema definido para pegar os dados")}else{var listadeitens=new Array();var g=doc.getElementById("listai");var iguias=g.getElementsByTagName("input");var i=iguias.length-1;if(i>=0){do{if(iguias[i].checked==true){var it=iguias[i].id;var c=doc.getElementById("cor"+it).value;listadeitens.push(it+","+c)}}while(i--)}var itens=listadeitens.join("*");if(itens==""){alert("Nenhum item foi escolhido")}else{i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.insereSHPgrafico(i3GEO.atualiza,tema,objposicaocursor.ddx,objposicaocursor.ddy,itens,shadow_height,width,inclinacao)}}}},recupera:{TENTATIVA:0,inicia:function(){i3GEO.mapa.ajustaPosicao();i3GEO.janela.fechaAguarde();if(i3GEO.mapa.recupera.TENTATIVA==0){i3GEO.mapa.recupera.TENTATIVA++;i3GEO.mapa.recupera.restaura()}},restaura:function(){i3GEO.php.recuperamapa(i3GEO.atualiza)}},legendaHTML:{ID:"",cria:function(id){if(arguments.length==0){var id=""}i3GEO.mapa.legendaHTML.ID=id;if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.mapa.legendaHTML.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.mapa.legendaHTML.atualiza()")}i3GEO.mapa.legendaHTML.atualiza()},atualiza:function(){var temp=function(retorno){if(i3GEO.mapa.legendaHTML.ID!=""&&$i(i3GEO.mapa.legendaHTML.ID)){if((retorno.data!="erro")&&(retorno.data!=undefined)){var s=i3GEO.configura.locaplic+"/imagens/solta.gif";$i(i3GEO.mapa.legendaHTML.ID).innerHTML="<img onclick='i3GEO.mapa.legendaHTML.libera()' id=soltaLeg src="+s+" title='clique para liberar'/><br><div id='corpoLegi' >"+retorno.data.legenda+"</div>"}}if($i("wlegenda")){$i("wlegenda").innerHTML=retorno.data.legenda;var elementos=$i("wlegenda").getElementsByTagName("input");for(i=0;i<elementos.length;i++){elementos[i].style.display="none"}}};i3GEO.mapa.legendaHTML.obtem(temp)},obtem:function(funcao){i3GEO.php.criaLegendaHTML(funcao,"",i3GEO.configura.templateLegenda)},libera:function(){var temp=function(retorno){if(!$i("moveLegi")){var novoel=document.createElement("div");novoel.id="moveLegi";novoel.style.display="block";var temp='<div class="hd">Legenda</div>';temp+='<div id="wlegenda" style="text-align:left;background-color:white" ></div>';novoel.innerHTML=temp;document.body.appendChild(novoel);YAHOO.namespace("moveLegi.xp");YAHOO.moveLegi.xp.panel=new YAHOO.widget.Panel("moveLegi",{width:"300px",fixedcenter:true,constraintoviewport:false,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.moveLegi.xp.panel.render()}$i("wlegenda").innerHTML=retorno.data.legenda;var temp=$i("wlegenda").getElementsByTagName("input");var n=temp.length;for(i=0;i<n;i++){temp[i].style.display="none"}YAHOO.moveLegi.xp.panel.show()}i3GEO.mapa.legendaHTML.obtem(temp)}},legendaIMAGEM:{obtem:function(funcao){i3GEO.php.criaLegendaImagem(funcao)}},dialogo:{autoredesenha:function(){i3GEO.janela.cria("300px","180px",i3GEO.configura.locaplic+"/ferramentas/opcoes_autoredesenha/index.htm","","","Temporizador")},salvaMapa:function(){if(i3GEO.parametros==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}i3GEO.janela.cria("300px","180px",i3GEO.configura.locaplic+"/ferramentas/salvamapa/index.htm","","","Salva mapa")},carregaMapa:function(){i3GEO.janela.cria("300px","150px",i3GEO.configura.locaplic+"/ferramentas/carregamapa/index.htm?urlatual="+window.location,"","","Carrega mapa")},convertews:function(){if(i3GEO.parametros.mapfile==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}i3GEO.janela.cria("440px","280px",i3GEO.configura.locaplic+"/ferramentas/convertews/index.htm","","","Web service")},convertekml:function(){if(i3GEO.parametros.mapfile==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}i3GEO.janela.cria("440px","280px",i3GEO.configura.locaplic+"/ferramentas/convertemapakml/index.htm","","","Kml")},queryMap:function(){i3GEO.janela.cria("210px","170px",i3GEO.configura.locaplic+"/ferramentas/opcoes_querymap/index.htm","","","Querymap")},template:function(){i3GEO.janela.cria("300px","400px",i3GEO.configura.locaplic+"/ferramentas/template/index.htm","","","Template")},tamanho:function(){i3GEO.janela.cria("150px","170px",i3GEO.configura.locaplic+"/ferramentas/opcoes_tamanho/index.htm","","","Tamanho")},tipoimagem:function(){i3GEO.janela.cria("300px","260px",i3GEO.configura.locaplic+"/ferramentas/tipoimagem/index.htm","","","Tipo de imagem")},corFundo:function(){i3GEO.janela.cria("210px","170px",i3GEO.configura.locaplic+"/ferramentas/opcoes_fundo/index.htm","","","Fundo")},opcoesEscala:function(){i3GEO.janela.cria("250px","300px",i3GEO.configura.locaplic+"/ferramentas/opcoes_escala/index.htm","center","center","Escala")},opcoesLegenda:function(){i3GEO.janela.cria("300px","280px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda")},gradeCoord:function(){i3GEO.janela.cria("350px","280px",i3GEO.configura.locaplic+"/ferramentas/gradecoord/index.htm","","","Grade de coordenadas")},cliqueTexto:function(){if(g_tipoacao!="textofid"){var temp=Math.random()+"b";temp=temp.split(".");g_nomepin="pin"+temp[1];g_tipoacao="textofid";var janela=i3GEO.janela.cria("360px","250px",i3GEO.configura.locaplic+"/ferramentas/inseretxt/index.htm","","","Texto");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.mapa.insereToponimo()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.mapa.insereToponimo()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.insereToponimo()");i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)}},cliquePonto:function(){if(g_tipoacao!="inserexy"){g_tipoacao="inserexy";var temp=Math.random()+"a";temp=temp.split(".");g_nomepin="pin"+temp[1];var janela=i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+'/ferramentas/inserexy2/index.htm',"","","Insere");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.mapa.inserePonto()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.mapa.inserePonto()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.inserePonto()");i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)}},cliqueGrafico:function(){if(g_tipoacao!="inseregrafico"){g_tipoacao="inseregrafico";var temp=Math.random()+"a";temp=temp.split(".");g_nomepin="pin"+temp[1];var janela=i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+'/ferramentas/inseregrafico/index.htm',"","","Insere");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.mapa.insereGrafico()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.mapa.insereGrafico()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.insereGrafico()");i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)}}},corpo:{verifica:function(retorno){try{i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o3"));if(retorno.data){var retorno=retorno.data}if(retorno.variaveis){var retorno=retorno.variaveis}if((retorno=="erro")||(retorno==undefined)){i3GEO.mapa.ajustaPosicao();i3GEO.janela.fechaAguarde();i3GEO.mapa.recupera.inicia()}i3GEO.mapa.recupera.TENTATIVA=0}catch(e){if(i3GEO.interface.ATUAL=="openlayers"){i3GEO.janela.fechaAguarde();return}if(i3GEO.mapa.recupera.TENTATIVA==0){alert("Erro no mapa. Sera feita uma tentativa de recuperacao.");i3GEO.mapa.recupera.inicia()}else{alert("Recuperacao impossivel. Sera feita uma tentativa de reiniciar o mapa.");if(i3GEO.mapa.recupera.TENTATIVA==1){i3GEO.mapa.recupera.TENTATIVA=2;i3GEO.php.reiniciaMapa(i3GEO.atualiza)}}}}}}; | ||
2 | \ No newline at end of file | 1 | \ No newline at end of file |
2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.mapa={GEOXML:new Array(),ajustaPosicao:function(elemento){if(arguments.length==0){return}try{imagemxi=0;imagemyi=0;imagemxref=0;imagemyref=0;var dc=$i("i3geo");if(!dc){return}if(dc.style.left){imagemxi+=parseInt(dc.style.left)}if(dc.style.top){imagemyi+=parseInt(dc.style.top)}var dc=$i(elemento);while((dc.offsetParent)&&(dc.offsetParent.id!="i3geo")){dc=dc.offsetParent;imagemxi=imagemxi+dc.offsetLeft;imagemyi=imagemyi+dc.offsetTop}var c=$i(i3GEO.interface.IDCORPO);if(c){c.style.position="absolute";$left(i3GEO.interface.IDCORPO,imagemxi);$top(i3GEO.interface.IDCORPO,imagemyi);if($i("i3geo").style.left){$left(i3GEO.interface.IDCORPO,imagemxi-parseInt($i("i3geo").style.left))}if($i("i3geo").style.top){$top(i3GEO.interface.IDCORPO,imagemyi-parseInt($i("i3geo").style.top))}}}catch(e){alert("Ocorreu um erro. i3GEO.mapa.ajustaPosicao"+e)}},ativaLogo:function(){i3GEO.php.ativalogo(i3GEO.atualiza)},insereToponimo:function(){if(g_tipoacao=="textofid"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;texto=doc.getElementById("texto").value;var f=doc.getElementById("fonte").value;var t=doc.getElementById("tamanho").value;var a=doc.getElementById("angulo").value;var cf=doc.getElementById("fundoc").value;if(cf==""){cf="off"}var cs=doc.getElementById("sombra").value;if(cs==""){cs="off"}var xs=doc.getElementById("sombrax").value;var ys=doc.getElementById("sombray").value;var c=doc.getElementById("frente").value;var m=doc.getElementById("mascara").value;if(m==""){m="off"}var fcs=doc.getElementById("frentes").value;if(fcs==""){fcs="off"}var fxs=doc.getElementById("frentex").value;var fys=doc.getElementById("frentey").value;var forca=doc.getElementById("force").value;var md=doc.getElementById("mindistance").value;var mf=doc.getElementById("minfeaturesize").value;var ox=doc.getElementById("offsetx").value;var oy=doc.getElementById("offsety").value;var pl=doc.getElementById("partials").value;var pos=doc.getElementById("position").value;var digi=function(retorno){if(texto==""){i3GEO.janela.fechaAguarde("i3GEO.atualiza");texto=retorno.data}if(texto!=" "){i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.insereAnnotation(i3GEO.atualiza,g_nomepin+"topo",objposicaocursor.ddx+" "+objposicaocursor.ddy,texto,pos,pl,ox,oy,mf,md,forca,fcs,fxs,fys,m,c,ys,xs,cs,cf,a,t,f)}};if(doc.getElementById("tipoInsere").value=="digitando"){digi.call()}else{texto="";if((doc.getElementById("temasLigados"))&&(doc.getElementById("itemsel"))){var tema=doc.getElementById("temasLigados").value;var item=doc.getElementById("itemsel").value;i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.identificaunico(digi,objposicaocursor.ddx+","+objposicaocursor.ddy,tema,item)}}}else{i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.insereToponimo()")}},insereKml:function(pan,url){if(arguments.length==1){var i=$i("i3geo_urlkml");if(i){var url=i.value}else{var url=""}}if(url==""){return}var ngeoxml="geoXml_"+i3GEO.mapa.GEOXML.length;i3GEO.mapa.GEOXML.push(ngeoxml);var zoom=function(){if(pan){eval("var ll = "+ngeoxml+".getDefaultCenter()");eval(ngeoxml+".gotoDefaultViewport(i3GeoMap)")}};eval(ngeoxml+" = new GGeoXml(url,zoom)");eval("i3GeoMap.addOverlay("+ngeoxml+")");i3GEO.mapa.criaNoArvoreGoogle(ngeoxml)},criaNoArvoreGoogle:function(nomeOverlay){var root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();var node=i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idkml","raiz");if(!node){var titulo="<table><tr><td><b>Google Maps</b></td></tr></table>";var d={html:titulo,idkml:"raiz"};var node=new YAHOO.widget.HTMLNode(d,root,true,true)}html="<input onclick='i3GEO.mapa.ativaDesativaOverlayGoogle(this)' class=inputsb style='cursor:pointer;' type='checkbox' value='"+ngeoxml+"' checked />";html+=" <span style='cursor:move'>"+url+"</span>";var d={html:html};var nodekml=new YAHOO.widget.HTMLNode(d,node,true,true);nodekml.isleaf=true;i3GEO.arvoreDeCamadas.ARVORE.draw();i3GEO.arvoreDeCamadas.ARVORE.collapseAll();node.expand()},ativaDesativaOverlayGoogle:function(obj){if(!obj.checked){eval("i3GeoMap.removeOverlay("+obj.value+")")}else eval("i3GeoMap.addOverlay("+obj.value+")")},inserePonto:function(){if(g_tipoacao=="inserexy"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(doc.getElementById("resultado")){var ins=doc.getElementById("resultado").innerHTML;ins=ins+"<div style='font-size:12px' >"+objposicaocursor.ddx+" "+objposicaocursor.ddy+"</div><br>";doc.getElementById("resultado").innerHTML=ins}var item="";var valoritem="";if((doc.getElementById("valorItem"))&&(doc.getElementById("itemtema"))){var item=doc.getElementById("itemtema").value;var valoritem=doc.getElementById("valorItem").value}if(g_nomepin==""){alert("Nenhum tema definido para editar")}else{i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.insereSHP(i3GEO.atualiza,g_nomepin,item,valoritem,objposicaocursor.ddx+" "+objposicaocursor.ddy)}}},insereGrafico:function(){if(g_tipoacao=="inseregrafico"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var tema=doc.getElementById("temasLigados").value;var width=doc.getElementById("w").value;var inclinacao=doc.getElementById("inclinacao").value;var shadow_height=doc.getElementById("sombra").value;if(tema==""){alert("Nenhum tema definido para pegar os dados")}else{var listadeitens=new Array();var g=doc.getElementById("listai");var iguias=g.getElementsByTagName("input");var i=iguias.length-1;if(i>=0){do{if(iguias[i].checked==true){var it=iguias[i].id;var c=doc.getElementById("cor"+it).value;listadeitens.push(it+","+c)}}while(i--)}var itens=listadeitens.join("*");if(itens==""){alert("Nenhum item foi escolhido")}else{i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.insereSHPgrafico(i3GEO.atualiza,tema,objposicaocursor.ddx,objposicaocursor.ddy,itens,shadow_height,width,inclinacao)}}}},recupera:{TENTATIVA:0,inicia:function(){i3GEO.mapa.ajustaPosicao();i3GEO.janela.fechaAguarde();if(i3GEO.mapa.recupera.TENTATIVA==0){i3GEO.mapa.recupera.TENTATIVA++;i3GEO.mapa.recupera.restaura()}},restaura:function(){i3GEO.php.recuperamapa(i3GEO.atualiza)}},legendaHTML:{ID:"",cria:function(id){if(arguments.length==0){var id=""}i3GEO.mapa.legendaHTML.ID=id;if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.mapa.legendaHTML.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.mapa.legendaHTML.atualiza()")}i3GEO.mapa.legendaHTML.atualiza()},atualiza:function(){var temp=function(retorno){if(i3GEO.mapa.legendaHTML.ID!=""&&$i(i3GEO.mapa.legendaHTML.ID)){if((retorno.data!="erro")&&(retorno.data!=undefined)){var s=i3GEO.configura.locaplic+"/imagens/solta.gif";$i(i3GEO.mapa.legendaHTML.ID).innerHTML="<img onclick='i3GEO.mapa.legendaHTML.libera()' id=soltaLeg src="+s+" title='clique para liberar'/><br><div id='corpoLegi' >"+retorno.data.legenda+"</div>"}}if($i("wlegenda")){$i("wlegenda").innerHTML=retorno.data.legenda;var elementos=$i("wlegenda").getElementsByTagName("input");for(i=0;i<elementos.length;i++){elementos[i].style.display="none"}}};i3GEO.mapa.legendaHTML.obtem(temp)},obtem:function(funcao){i3GEO.php.criaLegendaHTML(funcao,"",i3GEO.configura.templateLegenda)},libera:function(){var temp=function(retorno){if(!$i("moveLegi")){var novoel=document.createElement("div");novoel.id="moveLegi";novoel.style.display="block";var temp='<div class="hd">Legenda</div>';temp+='<div id="wlegenda" style="text-align:left;background-color:white" ></div>';novoel.innerHTML=temp;document.body.appendChild(novoel);YAHOO.namespace("moveLegi.xp");YAHOO.moveLegi.xp.panel=new YAHOO.widget.Panel("moveLegi",{width:"300px",fixedcenter:true,constraintoviewport:false,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.moveLegi.xp.panel.render()}$i("wlegenda").innerHTML=retorno.data.legenda;var temp=$i("wlegenda").getElementsByTagName("input");var n=temp.length;for(i=0;i<n;i++){temp[i].style.display="none"}YAHOO.moveLegi.xp.panel.show()}i3GEO.mapa.legendaHTML.obtem(temp)}},legendaIMAGEM:{obtem:function(funcao){i3GEO.php.criaLegendaImagem(funcao)}},dialogo:{autoredesenha:function(){i3GEO.janela.cria("300px","180px",i3GEO.configura.locaplic+"/ferramentas/opcoes_autoredesenha/index.htm","","","Temporizador")},salvaMapa:function(){if(i3GEO.parametros==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}i3GEO.janela.cria("300px","180px",i3GEO.configura.locaplic+"/ferramentas/salvamapa/index.htm","","","Salva mapa")},carregaMapa:function(){i3GEO.janela.cria("300px","150px",i3GEO.configura.locaplic+"/ferramentas/carregamapa/index.htm?urlatual="+window.location,"","","Carrega mapa")},convertews:function(){if(i3GEO.parametros.mapfile==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}i3GEO.janela.cria("440px","280px",i3GEO.configura.locaplic+"/ferramentas/convertews/index.htm","","","Web service")},convertekml:function(){if(i3GEO.parametros.mapfile==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}i3GEO.janela.cria("440px","280px",i3GEO.configura.locaplic+"/ferramentas/convertemapakml/index.htm","","","Kml")},queryMap:function(){i3GEO.janela.cria("210px","170px",i3GEO.configura.locaplic+"/ferramentas/opcoes_querymap/index.htm","","","Querymap")},template:function(){i3GEO.janela.cria("300px","400px",i3GEO.configura.locaplic+"/ferramentas/template/index.htm","","","Template")},tamanho:function(){i3GEO.janela.cria("150px","170px",i3GEO.configura.locaplic+"/ferramentas/opcoes_tamanho/index.htm","","","Tamanho")},tipoimagem:function(){i3GEO.janela.cria("300px","260px",i3GEO.configura.locaplic+"/ferramentas/tipoimagem/index.htm","","","Tipo de imagem")},corFundo:function(){i3GEO.janela.cria("210px","170px",i3GEO.configura.locaplic+"/ferramentas/opcoes_fundo/index.htm","","","Fundo")},opcoesEscala:function(){i3GEO.janela.cria("250px","300px",i3GEO.configura.locaplic+"/ferramentas/opcoes_escala/index.htm","center","center","Escala")},opcoesLegenda:function(){i3GEO.janela.cria("320px","300px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda")},gradeCoord:function(){i3GEO.janela.cria("350px","280px",i3GEO.configura.locaplic+"/ferramentas/gradecoord/index.htm","","","Grade de coordenadas")},cliqueTexto:function(){if(g_tipoacao!="textofid"){var temp=Math.random()+"b";temp=temp.split(".");g_nomepin="pin"+temp[1];g_tipoacao="textofid";var janela=i3GEO.janela.cria("360px","250px",i3GEO.configura.locaplic+"/ferramentas/inseretxt/index.htm","","","Texto");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.mapa.insereToponimo()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.mapa.insereToponimo()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.insereToponimo()");i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)}},cliquePonto:function(){if(g_tipoacao!="inserexy"){g_tipoacao="inserexy";var temp=Math.random()+"a";temp=temp.split(".");g_nomepin="pin"+temp[1];var janela=i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+'/ferramentas/inserexy2/index.htm',"","","Insere");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.mapa.inserePonto()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.mapa.inserePonto()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.inserePonto()");i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)}},cliqueGrafico:function(){if(g_tipoacao!="inseregrafico"){g_tipoacao="inseregrafico";var temp=Math.random()+"a";temp=temp.split(".");g_nomepin="pin"+temp[1];var janela=i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+'/ferramentas/inseregrafico/index.htm',"","","Insere");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.mapa.insereGrafico()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.mapa.insereGrafico()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.mapa.insereGrafico()");i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)}}},corpo:{verifica:function(retorno){try{i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o3"));if(retorno.data){var retorno=retorno.data}if(retorno.variaveis){var retorno=retorno.variaveis}if((retorno=="erro")||(retorno==undefined)){i3GEO.mapa.ajustaPosicao();i3GEO.janela.fechaAguarde();i3GEO.mapa.recupera.inicia()}i3GEO.mapa.recupera.TENTATIVA=0}catch(e){if(i3GEO.interface.ATUAL=="openlayers"){i3GEO.janela.fechaAguarde();return}if(i3GEO.mapa.recupera.TENTATIVA==0){alert("Erro no mapa. Sera feita uma tentativa de recuperacao.");i3GEO.mapa.recupera.inicia()}else{alert("Recuperacao impossivel. Sera feita uma tentativa de reiniciar o mapa.");if(i3GEO.mapa.recupera.TENTATIVA==1){i3GEO.mapa.recupera.TENTATIVA=2;i3GEO.php.reiniciaMapa(i3GEO.atualiza)}}}}}}; | ||
3 | \ No newline at end of file | 3 | \ No newline at end of file |
classesjs/i3geo_tudo_compacto.js
@@ -11478,7 +11478,7 @@ i3GEO.mapa = { | @@ -11478,7 +11478,7 @@ i3GEO.mapa = { | ||
11478 | Abre a janela de configuração da legenda do mapa | 11478 | Abre a janela de configuração da legenda do mapa |
11479 | */ | 11479 | */ |
11480 | opcoesLegenda: function() | 11480 | opcoesLegenda: function() |
11481 | - {i3GEO.janela.cria("300px","280px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda");}, | 11481 | + {i3GEO.janela.cria("320px","300px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda");}, |
11482 | /* | 11482 | /* |
11483 | Function: gradeCoord | 11483 | Function: gradeCoord |
11484 | 11484 |
classesjs/i3geo_tudo_compacto.js.php
@@ -11478,7 +11478,7 @@ i3GEO.mapa = { | @@ -11478,7 +11478,7 @@ i3GEO.mapa = { | ||
11478 | Abre a janela de configuração da legenda do mapa | 11478 | Abre a janela de configuração da legenda do mapa |
11479 | */ | 11479 | */ |
11480 | opcoesLegenda: function() | 11480 | opcoesLegenda: function() |
11481 | - {i3GEO.janela.cria("300px","280px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda");}, | 11481 | + {i3GEO.janela.cria("320px","300px",i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/index.htm","","","Legenda");}, |
11482 | /* | 11482 | /* |
11483 | Function: gradeCoord | 11483 | Function: gradeCoord |
11484 | 11484 |
ferramentas/opcoes_legenda/index.htm
@@ -5,8 +5,10 @@ | @@ -5,8 +5,10 @@ | ||
5 | <style type="text/css">.yuibutton button{padding-left:2em;background:url(../../imagens/tic.png) 5% 50% no-repeat;}</style> | 5 | <style type="text/css">.yuibutton button{padding-left:2em;background:url(../../imagens/tic.png) 5% 50% no-repeat;}</style> |
6 | <title></title> | 6 | <title></title> |
7 | </head> | 7 | </head> |
8 | -<body> | ||
9 | -<div style=top:0px;left:0px;text-align:left;width:100%; > | 8 | +<body class="yui-skin-sam" > |
9 | + | ||
10 | +<div style="height:98%;overflow:auto;cursor:pointer;position:relative;top:1px;left:0px;text-align:left"> | ||
11 | + | ||
10 | <table summary="" class=lista3 width="100%"> | 12 | <table summary="" class=lista3 width="100%"> |
11 | <tr> | 13 | <tr> |
12 | <td>Inclui no corpo do mapa?:</td> | 14 | <td>Inclui no corpo do mapa?:</td> |
@@ -19,14 +21,14 @@ | @@ -19,14 +21,14 @@ | ||
19 | <td> | 21 | <td> |
20 | </tr> | 22 | </tr> |
21 | <tr> | 23 | <tr> |
22 | - <td>Cor:</td> | 24 | + <td>Cor do fundo:</td> |
23 | <td><input style="cursor:text" size=12 class=digitar type='text' id=imagecolor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('imagecolor')" /></td> | 25 | <td><input style="cursor:text" size=12 class=digitar type='text' id=imagecolor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('imagecolor')" /></td> |
24 | </tr> | 26 | </tr> |
25 | <tr> | 27 | <tr> |
26 | - <td>Contorno:</td> | 28 | + <td>Contorno dos símbolos:</td> |
27 | <td><input style="cursor:text" size=12 class=digitar type='text' id=outlinecolor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('outlinecolor')" /></td> | 29 | <td><input style="cursor:text" size=12 class=digitar type='text' id=outlinecolor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('outlinecolor')" /></td> |
28 | </tr> | 30 | </tr> |
29 | - <tr> | 31 | + <tr> |
30 | <td>Posição:</td> | 32 | <td>Posição:</td> |
31 | <td> | 33 | <td> |
32 | <select id=position > | 34 | <select id=position > |
@@ -39,30 +41,39 @@ | @@ -39,30 +41,39 @@ | ||
39 | </select> | 41 | </select> |
40 | <td> | 42 | <td> |
41 | </tr> | 43 | </tr> |
42 | - <tr> | 44 | + <tr> |
43 | <td>Espaçamento em Y:</td> | 45 | <td>Espaçamento em Y:</td> |
44 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keyspacingy value='' /></td> | 46 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keyspacingy value='' /></td> |
45 | </tr> | 47 | </tr> |
46 | - <tr> | 48 | + <tr> |
47 | <td>Espaçamento em X:</td> | 49 | <td>Espaçamento em X:</td> |
48 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keyspacingx value='' /></td> | 50 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keyspacingx value='' /></td> |
49 | </tr> | 51 | </tr> |
50 | - <tr> | 52 | + <tr> |
51 | <td>Tamanho do símb. Y:</td> | 53 | <td>Tamanho do símb. Y:</td> |
52 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keysizey value='' /></td> | 54 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keysizey value='' /></td> |
53 | </tr> | 55 | </tr> |
54 | - <tr> | 56 | + <tr> |
55 | <td>Tamanho do símb. X:</td> | 57 | <td>Tamanho do símb. X:</td> |
56 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keysizex value='' /></td> | 58 | <td><input style="cursor:text" size=4 class=digitar type='text' id=keysizex value='' /></td> |
57 | </tr> | 59 | </tr> |
58 | - <tr> | 60 | + <tr> |
59 | <td>Tamanho do texto:</td> | 61 | <td>Tamanho do texto:</td> |
60 | <td><input style="cursor:text" size=4 class=digitar type='text' id=labelsize value='' /></td> | 62 | <td><input style="cursor:text" size=4 class=digitar type='text' id=labelsize value='' /></td> |
61 | </tr> | 63 | </tr> |
64 | + <tr> | ||
65 | + <td>Fonte:</td> | ||
66 | + <td id=listaf >aguarde...</td> | ||
67 | + </tr> | ||
68 | + | ||
62 | </table> | 69 | </table> |
63 | <div style=top:10px;left:0px;text-align:left; onclick="executa()"> | 70 | <div style=top:10px;left:0px;text-align:left; onclick="executa()"> |
64 | <input id=botao1 size=20 type=button value="Aplicar" /> | 71 | <input id=botao1 size=20 type=button value="Aplicar" /> |
65 | </div> | 72 | </div> |
73 | + <div style="width:100px;left:100px;position:relative;text-align:left;top:-17px;" onclick="testa()"> | ||
74 | + <input id=botao2 size=20 type=button value="Testar" /> | ||
75 | + </div> | ||
76 | + <img src="" id=testeLegenda /> | ||
66 | </div> | 77 | </div> |
67 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> | 78 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> |
68 | <script language="JavaScript" type="text/javascript" src="index.js"></script> | 79 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
ferramentas/opcoes_legenda/index.js
@@ -23,17 +23,41 @@ Free Software Foundation, Inc., no endereço | @@ -23,17 +23,41 @@ Free Software Foundation, Inc., no endereço | ||
23 | YAHOO.example.init = function () | 23 | YAHOO.example.init = function () |
24 | { | 24 | { |
25 | function onPushButtonsMarkupReady() | 25 | function onPushButtonsMarkupReady() |
26 | - {new YAHOO.widget.Button("botao1");} | 26 | + { |
27 | + new YAHOO.widget.Button("botao1"); | ||
28 | + new YAHOO.widget.Button("botao2"); | ||
29 | + } | ||
27 | YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady); | 30 | YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady); |
28 | }() | 31 | }() |
29 | 32 | ||
30 | aguarde("block") | 33 | aguarde("block") |
31 | parametrosURL() | 34 | parametrosURL() |
32 | -var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=pegaParametrosLegImg" | 35 | + |
36 | +//preenche a lista de fontes | ||
37 | +var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=listatruetype" | ||
33 | var cp = new cpaint(); | 38 | var cp = new cpaint(); |
34 | //cp.set_debug(2) | 39 | //cp.set_debug(2) |
35 | cp.set_response_type("JSON"); | 40 | cp.set_response_type("JSON"); |
36 | -cp.call(p,"pegaParametrosLegImg",inicia); | 41 | +cp.call(p,"listaTrueType",listafontesf); |
42 | +//monta a lista de fontes | ||
43 | +function listafontesf(retorno) | ||
44 | +{ | ||
45 | + var retorno = retorno.data | ||
46 | + var lista = retorno.split(",") | ||
47 | + var ins = "<select id=fonte_i >" | ||
48 | + ins = ins + "<option value=bitmap >bitmap</option>" | ||
49 | + for (i=0;i<lista.length;i++) | ||
50 | + {ins = ins + "<option value="+lista[i]+" >"+lista[i]+"</option>"} | ||
51 | + ins = ins + "</select>" | ||
52 | + $i("listaf").innerHTML = ins | ||
53 | + | ||
54 | + var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=pegaParametrosLegImg" | ||
55 | + var cp = new cpaint(); | ||
56 | + //cp.set_debug(2) | ||
57 | + cp.set_response_type("JSON"); | ||
58 | + cp.call(p,"pegaParametrosLegImg",inicia); | ||
59 | + | ||
60 | +} | ||
37 | function inicia(retorno) | 61 | function inicia(retorno) |
38 | { | 62 | { |
39 | if(retorno.data != "") | 63 | if(retorno.data != "") |
@@ -47,12 +71,16 @@ function inicia(retorno) | @@ -47,12 +71,16 @@ function inicia(retorno) | ||
47 | $i("keysizey").value = retorno.data.keysizey | 71 | $i("keysizey").value = retorno.data.keysizey |
48 | $i("keysizex").value = retorno.data.keysizex | 72 | $i("keysizex").value = retorno.data.keysizex |
49 | $i("labelsize").value = retorno.data.labelsize | 73 | $i("labelsize").value = retorno.data.labelsize |
74 | + if(retorno.data.tipofonte == 1) | ||
75 | + {$i("fonte_i").value = "bitmap"} | ||
76 | + else | ||
77 | + {$i("fonte_i").value = retorno.data.font} | ||
50 | } | 78 | } |
51 | aguarde("none") | 79 | aguarde("none") |
80 | + testa() | ||
52 | } | 81 | } |
53 | -function executa() | 82 | +function pegaParametros() |
54 | { | 83 | { |
55 | - aguarde("block") | ||
56 | var par = "" | 84 | var par = "" |
57 | var v = $i("imagecolor").value | 85 | var v = $i("imagecolor").value |
58 | if (v == ""){v = "-1,-1,-1"} | 86 | if (v == ""){v = "-1,-1,-1"} |
@@ -69,17 +97,40 @@ function executa() | @@ -69,17 +97,40 @@ function executa() | ||
69 | par += "&height=0" | 97 | par += "&height=0" |
70 | par += "&width=0" | 98 | par += "&width=0" |
71 | par += "&labelsize="+$i("labelsize").value | 99 | par += "&labelsize="+$i("labelsize").value |
100 | + par += "&fonte="+$i("fonte_i").value | ||
101 | + return(par) | ||
102 | +} | ||
103 | +function executa() | ||
104 | +{ | ||
105 | + aguarde("block") | ||
72 | var temp = function() | 106 | var temp = function() |
73 | { | 107 | { |
74 | aguarde("none") | 108 | aguarde("none") |
75 | window.parent.i3GEO.atualiza("") | 109 | window.parent.i3GEO.atualiza("") |
76 | } | 110 | } |
111 | + var par = pegaParametros() | ||
77 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=aplicaParametrosLegImg"+par | 112 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=aplicaParametrosLegImg"+par |
78 | var cp = new cpaint(); | 113 | var cp = new cpaint(); |
79 | //cp.set_debug(2) | 114 | //cp.set_debug(2) |
80 | cp.set_response_type("JSON"); | 115 | cp.set_response_type("JSON"); |
81 | cp.call(p,"mudaEscalaGrafica",temp); | 116 | cp.call(p,"mudaEscalaGrafica",temp); |
82 | } | 117 | } |
118 | +function testa() | ||
119 | +{ | ||
120 | + aguarde("block") | ||
121 | + var temp = function(retorno) | ||
122 | + { | ||
123 | + aguarde("none") | ||
124 | + eval(retorno.data) | ||
125 | + $i("testeLegenda").src = legimagem | ||
126 | + } | ||
127 | + var par = pegaParametros() | ||
128 | + var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=testaLegenda"+par | ||
129 | + var cp = new cpaint(); | ||
130 | + //cp.set_debug(2) | ||
131 | + cp.set_response_type("JSON"); | ||
132 | + cp.call(p,"testaLegenda",temp); | ||
133 | +} | ||
83 | //abre a paleta de cores | 134 | //abre a paleta de cores |
84 | function corj(obj) | 135 | function corj(obj) |
85 | {window.parent.i3GEO.util.abreCor("wdocai",obj)} | 136 | {window.parent.i3GEO.util.abreCor("wdocai",obj)} |