Commit fcd4eb501039c700738f8d32fd7ed3585f97b523

Authored by Edmar Moretti
1 parent 80adcd79

Ajustes no css de elementos do tipo tabela

css/default.css
@@ -873,6 +873,29 @@ td { @@ -873,6 +873,29 @@ td {
873 background: none; 873 background: none;
874 } 874 }
875 875
  876 +.bd table {
  877 + border: 0px solid #FFFFFF;
  878 + padding: 0px;
  879 + margin: 0px;
  880 + width: 100%;
  881 + max-width: 100%;
  882 + font-weight: unset;
  883 +}
  884 +
  885 +.bd table tr:first-of-type td {
  886 + padding: 20px;
  887 +}
  888 +
  889 +.bd td {
  890 + border: 0px solid #89afd4;
  891 + padding: 0px;
  892 + color: white;
  893 + margin: 0px;
  894 + text-align: center;
  895 + border-top: 3px solid #89afd4;
  896 + font-weight: initial;
  897 +}
  898 +
876 .yui-skin-sam .yui-panel .ft { 899 .yui-skin-sam .yui-panel .ft {
877 background: none repeat scroll 0 0 rgba(0, 0, 0, 0); 900 background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
878 border: 13px none; 901 border: 13px none;
@@ -658,6 +658,16 @@ table { @@ -658,6 +658,16 @@ table {
658 margin: 0px; 658 margin: 0px;
659 font-family: Verdana, Arial, Helvetica, sans-serif; 659 font-family: Verdana, Arial, Helvetica, sans-serif;
660 } 660 }
  661 +td {
  662 + background-color: white;
  663 + border: 0px solid gray;
  664 + padding: 0px;
  665 + color: #2F4632;
  666 + margin: 0px;
  667 + text-align: center;
  668 + font-size: 10pt !Important;
  669 + font-family: Verdana, Arial, Helvetica, sans-serif;
  670 +}
661 671
662 div { 672 div {
663 border: 0px solid #FFFFFF; 673 border: 0px solid #FFFFFF;
@@ -676,16 +686,7 @@ H1 { @@ -676,16 +686,7 @@ H1 {
676 color: #004080; 686 color: #004080;
677 } 687 }
678 688
679 -td {  
680 - background-color: white;  
681 - border: 0px solid gray;  
682 - padding: 0px;  
683 - color: #2F4632;  
684 - margin: 0px;  
685 - text-align: center;  
686 - font-size: 10pt !Important;  
687 - font-family: Verdana, Arial, Helvetica, sans-serif;  
688 -} 689 +
689 /* 690 /*
690 .ajuda_usuario { 691 .ajuda_usuario {
691 background-image: url(../imagens/oxygen/16x16/dialog-information.png); 692 background-image: url(../imagens/oxygen/16x16/dialog-information.png);
ferramentas/atalhosedicao/template_mst.html
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 38
39 <div class="checkbox text-left"> 39 <div class="checkbox text-left">
40 <label> 40 <label>
41 - <input id='i3GEOFatalhosedicaoClasse' type="checkbox" name='classe' onclick="i3GEOF.atalhosedicao.metadata(this,true)"> 41 + <input checked id='i3GEOFatalhosedicaoClasse' type="checkbox" name='classe' onclick="i3GEOF.atalhosedicao.metadata(this,true)">
42 <span class="checkbox-material noprint"><span class="check"></span></span> {{{mostraClasses}}} 42 <span class="checkbox-material noprint"><span class="check"></span></span> {{{mostraClasses}}}
43 </label> 43 </label>
44 </div> 44 </div>
ferramentas/etiqueta/templateLista_mst.html
1 <div> 1 <div>
2 - <table class="lista8" style="background-color: #89afd4;"> 2 + <table>
3 <tr> 3 <tr>
4 <td>Coluna</td> 4 <td>Coluna</td>
5 <td>Identifica</td> 5 <td>Identifica</td>
ferramentas/graficotema/index.js
@@ -60,6 +60,7 @@ i3GEOF.graficoTema = { @@ -60,6 +60,7 @@ i3GEOF.graficoTema = {
60 * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php 60 * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php
61 */ 61 */
62 MUSTACHE : "", 62 MUSTACHE : "",
  63 + MUSTACHELISTA : "",
63 /** 64 /**
64 * Susbtitutos para o template 65 * Susbtitutos para o template
65 */ 66 */
@@ -97,12 +98,20 @@ i3GEOF.graficoTema = { @@ -97,12 +98,20 @@ i3GEOF.graficoTema = {
97 */ 98 */
98 inicia: function(iddiv){ 99 inicia: function(iddiv){
99 if(i3GEOF.graficoTema.MUSTACHE == ""){ 100 if(i3GEOF.graficoTema.MUSTACHE == ""){
100 - $.get(i3GEO.configura.locaplic + "/ferramentas/graficotema/template_mst.html", function(template) {  
101 - i3GEOF.graficoTema.MUSTACHE = template; 101 + var t1 = i3GEO.configura.locaplic + "/ferramentas/graficotema/template_mst.html",
  102 + t2 = i3GEO.configura.locaplic + "/ferramentas/graficotema/templateLista_mst.html";
  103 +
  104 + $.when( $.get(t1),$.get(t2) ).done(function(r1,r2) {
  105 + i3GEOF.graficoTema.MUSTACHE = r1[0];
  106 + i3GEOF.graficoTema.MUSTACHELISTA = r2[0];
102 i3GEOF.graficoTema.inicia(iddiv); 107 i3GEOF.graficoTema.inicia(iddiv);
  108 + }).fail(function() {
  109 + i3GEO.janela.closeMsg($trad("erroTpl"));
  110 + return;
103 }); 111 });
104 return; 112 return;
105 } 113 }
  114 +
106 if (!$i("i3GEOFgraficotemaComboCabecaSel")) { 115 if (!$i("i3GEOFgraficotemaComboCabecaSel")) {
107 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFgraficotemaComboCabeca","i3GEOFgraficotemaComboCabecaSel","graficoTema","ligadosComTabela",function(evt){ 116 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFgraficotemaComboCabeca","i3GEOFgraficotemaComboCabecaSel","graficoTema","ligadosComTabela",function(evt){
108 var botao = evt.target; 117 var botao = evt.target;
@@ -130,12 +139,7 @@ i3GEOF.graficoTema = { @@ -130,12 +139,7 @@ i3GEOF.graficoTema = {
130 {i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficotemaguia1","i3GEOgraficotemaguia");}; 139 {i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficotemaguia1","i3GEOgraficotemaguia");};
131 $i("i3GEOgraficotemaguia2").onclick = function() 140 $i("i3GEOgraficotemaguia2").onclick = function()
132 {i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficotemaguia2","i3GEOgraficotemaguia");}; 141 {i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficotemaguia2","i3GEOgraficotemaguia");};
133 - var b = new YAHOO.widget.Button(  
134 - "i3GEOgraficotemabotao1",  
135 - {onclick:{fn: i3GEOF.graficoTema.criaNovoTema}}  
136 - );  
137 - b.addClass("rodar");  
138 - i3GEO.util.mensagemAjuda("i3GEOgraficotemamen1",$i("i3GEOgraficotemamen1").innerHTML); 142 +
139 // 143 //
140 //pega a lista de itens e chama a fun&ccedil;&atilde;o de montagem das op&ccedil;&otilde;es de escolha 144 //pega a lista de itens e chama a fun&ccedil;&atilde;o de montagem das op&ccedil;&otilde;es de escolha
141 // 145 //
@@ -172,7 +176,7 @@ i3GEOF.graficoTema = { @@ -172,7 +176,7 @@ i3GEOF.graficoTema = {
172 return; 176 return;
173 } 177 }
174 //cria a janela flutuante 178 //cria a janela flutuante
175 - titulo = "<div id='i3GEOFgraficotemaComboCabeca' class='comboTemasCabecalhoBs form-group' style='width:200px; left:5px;'> ------</div></div><a class='i3GeoTituloJanelaBs' style='right:40px;' target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=8&idajuda=40' >"+$trad("t37a")+"</a>"; 179 + titulo = "<div id='i3GEOFgraficotemaComboCabeca' class='comboTemasCabecalhoBs form-group' style='width:200px; left:15px;'> ------</div></div><a class='i3GeoTituloJanelaBs' style='right:40px;' target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=8&idajuda=40' >"+$trad("t37a")+"</a>";
176 janela = i3GEO.janela.cria( 180 janela = i3GEO.janela.cria(
177 "400px", 181 "400px",
178 "330px", 182 "330px",
@@ -186,7 +190,11 @@ i3GEOF.graficoTema = { @@ -186,7 +190,11 @@ i3GEOF.graficoTema = {
186 "", 190 "",
187 "", 191 "",
188 "", 192 "",
189 - true 193 + true,
  194 + "",
  195 + "",
  196 + "",
  197 + ""
190 ); 198 );
191 divid = janela[2].id; 199 divid = janela[2].id;
192 i3GEOF.graficoTema.aguarde = $i("i3GEOF.graficoTema_imagemCabecalho").style; 200 i3GEOF.graficoTema.aguarde = $i("i3GEOF.graficoTema_imagemCabecalho").style;
@@ -201,18 +209,28 @@ i3GEOF.graficoTema = { @@ -201,18 +209,28 @@ i3GEOF.graficoTema = {
201 A lista &eacute; inserida no elemento html com id "i3GEOgraficotemalistai" 209 A lista &eacute; inserida no elemento html com id "i3GEOgraficotemalistai"
202 */ 210 */
203 montaListaItens: function(retorno){ 211 montaListaItens: function(retorno){
204 - var ins,i,n; 212 + var ins,i,n, temp = {}, mustache = [];
205 try{ 213 try{
206 ins = []; 214 ins = [];
207 ins.push("<table class=lista8 >"); 215 ins.push("<table class=lista8 >");
208 n = retorno.data.valores.length; 216 n = retorno.data.valores.length;
209 for (i=0;i<n; i++){ 217 for (i=0;i<n; i++){
210 - ins.push("<tr><td><input size=2 style='cursor:pointer;border:0px solid white;' name="+retorno.data.valores[i].item+" type=checkbox id=i3GEOgraficotema"+retorno.data.valores[i].item+" /></td>");  
211 - ins.push("<td>&nbsp;"+retorno.data.valores[i].item+"</td>");  
212 - ins.push("<td><div class='i3geoForm100 i3geoFormIconeAquarela' ><input id=i3GEOgraficotema"+retorno.data.valores[i].item+"cor type=text size=13 value="+i3GEO.util.randomRGB()+" /></td></tr>"); 218 + temp = {};
  219 + temp.item = retorno.data.valores[i].item;
  220 + temp.rcor = i3GEO.util.randomRGB();
  221 + mustache.push(temp);
213 } 222 }
214 - ins.push("</table>");  
215 - $i("i3GEOgraficotemalistai").innerHTML = ins.join(""); 223 + ins = Mustache.render(
  224 + i3GEOF.graficoTema.MUSTACHELISTA,
  225 + $.extend(
  226 + {},
  227 + {
  228 + "linhas" : mustache,
  229 + },
  230 + i3GEOF.graficoTema.DICIONARIO
  231 + )
  232 + );
  233 + $i("i3GEOgraficotemalistai").innerHTML = ins;
216 i3GEO.util.aplicaAquarela("i3GEOgraficotemalistai"); 234 i3GEO.util.aplicaAquarela("i3GEOgraficotemalistai");
217 } 235 }
218 catch(e) 236 catch(e)
ferramentas/graficotema/templateLista_mst.html 0 → 100755
@@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
  1 +<table class=lista8>
  2 + <tr>
  3 + </tr>
  4 + {{#linhas}}
  5 + <tr>
  6 + <td>
  7 + <div class="checkbox condensed">
  8 + <label>
  9 + <input name="{{{item}}}" type=checkbox id="i3GEOgraficotema{{{item}}}" />
  10 + <span class="checkbox-material noprint">
  11 + <span class="check"></span>
  12 + </span>
  13 + </label>
  14 + </div>
  15 + </td>
  16 + <td>{{{item}}}</td>
  17 + <td>
  18 + <div class='form-group condensed'>
  19 + <input class="form-control input i3geoFormIconeAquarela" type='text' id="i3GEOgraficotema{{{item}}}cor" value='{{{rcor}}}' />
  20 + </div>
  21 + </td>
  22 + </tr>
  23 + {{/linhas}}
  24 +</table>
0 \ No newline at end of file 25 \ No newline at end of file
ferramentas/graficotema/template_mst.html
1 -<div id='i3GEOgraficotemaguiasYUI' class='yui-navset' style='top: 0px; cursor: pointer; left: 0px;'> 1 +<div id='i3GEOgraficotemaguiasYUI' class='yui-navset' style='top: 0px; cursor: pointer; left: 0px; margin-left: 2px;'>
2 <ul class='yui-nav' style='border-width: 0pt 0pt 0px; border-color: rgb(240, 240, 240); border-bottom-color: white;'> 2 <ul class='yui-nav' style='border-width: 0pt 0pt 0px; border-color: rgb(240, 240, 240); border-bottom-color: white;'>
3 <li> 3 <li>
4 <div id='i3GEOgraficotemaguia1' style='text-align: center; left: 0px;'> 4 <div id='i3GEOgraficotemaguia1' style='text-align: center; left: 0px;'>
@@ -15,44 +15,40 @@ @@ -15,44 +15,40 @@
15 </ul> 15 </ul>
16 </div> 16 </div>
17 <br> 17 <br>
18 -<div class='guiaobj' id='i3GEOgraficotemaguia1obj' style='left: 1px; 90%; display: none;'>  
19 - <div id='i3GEOgraficotemacombot' style='display: none; position: relative; top: 5px; left: 0px;'></div>  
20 - <p class='paragrafo'>  
21 - <b>{{{selecionaItens}}}</b><br> <br>  
22 - <div id='i3GEOgraficotemalistai' class='digitar' style='text-align: left; left: 0px; top: 0px; 330 px; height: 80px; overflow: auto; display: block;'>{{{selecionaTema}}}</div>  
23 - <br> <br>  
24 - <p class='paragrafo'>  
25 - <input id='i3GEOgraficotemabotao1' size='35' type='button' value='{{{criaGrafico}}}' />  
26 - <div id='i3GEOgraficotemamen1' style='top: 10px; left: 1px'>  
27 - <p class='paragrafo'>{{{compoeGrafico}}}  
28 - </div> 18 +<div class='container-fluid' id='i3GEOgraficotemaguia1obj' >
  19 + <h5>{{{selecionaItens}}}</h5>
  20 + <div id='i3GEOgraficotemalistai'></div>
  21 +
  22 + <button onclick="i3GEOF.graficoTema.criaNovoTema()" class='btn btn-primary btn-sm btn-raised'>{{{criaGrafico}}}</button>
  23 + <h5 class="alert alert-info">
  24 + {{{compoeGrafico}}}
  25 + </h5>
29 </div> 26 </div>
30 -<div class='guiaobj' id='i3GEOgraficotemaguia2obj' style='left: 1px; display: none;'>  
31 - <p class='paragrafo'>{{{tipo}}}:</p>  
32 - <div class='styled-select'>  
33 - <select id='i3GEOgraficotematipo'> 27 +<div class='container-fluid' id='i3GEOgraficotemaguia2obj' >
  28 + <div class='form-group label-fixed condensed'>
  29 + <label class="control-label" for="i3GEOgraficotematipo">{{{tipo}}}</label>
  30 + <div class="input-group">
  31 + <select class="form-control" id="i3GEOgraficotematipo">
34 <option value='PIE'>{{{pizza}}}</option> 32 <option value='PIE'>{{{pizza}}}</option>
35 <option value='BAR'>{{{barras}}}</option> 33 <option value='BAR'>{{{barras}}}</option>
36 </select> 34 </select>
  35 + </div>
37 </div> 36 </div>
38 - <br>  
39 - <p class='paragrafo'>{{{largura}}}:</p>  
40 - <div class='i3geoForm i3geoFormIconeNumero'>  
41 - <input type='number' id='i3GEOgraficotemalargura' value='50' /> 37 + <div class='form-group label-fixed condensed' >
  38 + <label class="control-label" for="i3GEOgraficotemalargura">{{{largura}}}</label>
  39 + <input class="form-control input-lg" type='text' id='i3GEOgraficotemalargura' value='50' />
42 </div> 40 </div>
43 - <br>  
44 - <p class='paragrafo'>{{{altura}}}:</p>  
45 - <div class='i3geoForm i3geoFormIconeNumero'>  
46 - <input type='number' id='i3GEOgraficotemaaltura' value='50' /> 41 + <div class='form-group label-fixed condensed' >
  42 + <label class="control-label" for="i3GEOgraficotemaaltura">{{{altura}}}</label>
  43 + <input class="form-control input-lg" type='text' id='i3GEOgraficotemaaltura' value='50' />
47 </div> 44 </div>
48 - <br>  
49 - <p class='paragrafo'>{{{deslocamentoFatias}}}:</p>  
50 - <div class='i3geoForm i3geoFormIconeNumero'>  
51 - <input type='number' id='i3GEOgraficotemaoffset' value='0' /> 45 + <div class='form-group label-fixed condensed' >
  46 + <label class="control-label" for="i3GEOgraficotemaoffset">{{{deslocamentoFatias}}}</label>
  47 + <input class="form-control input-lg" type='text' id='i3GEOgraficotemaoffset' value='0' />
52 </div> 48 </div>
53 - <br>  
54 - <p class='paragrafo'>{{{corContorno}}}:</p>  
55 - <div class='i3geoForm100 i3geoFormIconeAquarela'>  
56 - <input type='text' id='i3GEOgraficotemaoutlinecolor' value='0,0,0' /> 49 + <div class='form-group label-fixed condensed' >
  50 + <label class="control-label" for="i3GEOgraficotemaoutlinecolor">{{{corContorno}}}</label>
  51 + <input class="form-control input-lg i3geoFormIconeAquarela" type='text' id='i3GEOgraficotemaoutlinecolor' value='0,0,0' />
57 </div> 52 </div>
  53 +
58 </div> 54 </div>
59 \ No newline at end of file 55 \ No newline at end of file
ferramentas/legenda/templateLista_mst.html
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <button onclick="i3GEOF.legenda.mudaLegenda()" class='btn btn-primary btn-sm btn-raised'>{{{aplicaAlteracao}}}</button> 3 <button onclick="i3GEOF.legenda.mudaLegenda()" class='btn btn-primary btn-sm btn-raised'>{{{aplicaAlteracao}}}</button>
4 <button id="botaoAdicionaClasse" onclick="i3GEOF.legenda.adicionaClasse()" title='{{{adicionaNovaClasse}}}' class='btn btn-primary btn-sm btn-raised'>{{{adicionaClasse}}}</button> 4 <button id="botaoAdicionaClasse" onclick="i3GEOF.legenda.adicionaClasse()" title='{{{adicionaNovaClasse}}}' class='btn btn-primary btn-sm btn-raised'>{{{adicionaClasse}}}</button>
5 <h5 class="alert alert-info">{{{clicaSimbolo}}}</h5> 5 <h5 class="alert alert-info">{{{clicaSimbolo}}}</h5>
6 - <table id="i3GEOlegendalegenda" class="lista8" style="background-color: #89afd4;"> 6 + <table id="i3GEOlegendalegenda" >
7 <tr> 7 <tr>
8 <td> 8 <td>
9 <button title='{{{inverte}}}' onclick='i3GEOF.legenda.inverteCores()' class="btn btn-xs" style="margin: 2px; padding: 2px;"> 9 <button title='{{{inverte}}}' onclick='i3GEOF.legenda.inverteCores()' class="btn btn-xs" style="margin: 2px; padding: 2px;">
ferramentas/legendax/dependencias.php
@@ -1,24 +0,0 @@ @@ -1,24 +0,0 @@
1 -<?php  
2 -include(dirname(__FILE__)."/../blacklist.php");  
3 -verificaBlFerramentas(basename(dirname(__FILE__)));  
4 -  
5 -/**  
6 - * Carrega os programas javascript necessarios para a ferramenta  
7 - * Esse programa e usado na tag <script> ou com a funcao scripttag do i3Geo  
8 - * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel  
9 - * javascript i3GEOF.legenda.MUSTACHE  
10 - * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta  
11 - */  
12 -  
13 -if(extension_loaded('zlib')){  
14 - ob_start('ob_gzhandler');  
15 -}  
16 -header("Content-type: text/javascript");  
17 -include("index.js");  
18 -include("dicionario.js");  
19 -echo "\n";  
20 -  
21 -if(extension_loaded('zlib')){  
22 - ob_end_flush();  
23 -}  
24 -?>  
25 \ No newline at end of file 0 \ No newline at end of file
ferramentas/legendax/dicionario.js
@@ -1,905 +0,0 @@ @@ -1,905 +0,0 @@
1 -//+$trad(1,i3GEOF.legenda.dicionario)+  
2 -i3GEOF.legenda.dicionario =  
3 - {  
4 - 'ajuda' : [  
5 - {  
6 - pt : "Para acessar o editor, clique em um s&iacute;mbolo na guia <i>Legenda</i>",  
7 - en : "",  
8 - es : ""  
9 - }  
10 - ],  
11 - 'propriedades' : [  
12 - {  
13 - pt : "Propriedades",  
14 - en : "",  
15 - es : ""  
16 - }  
17 - ],  
18 - "legenda" : [  
19 - {  
20 - pt : "Legenda",  
21 - en : "",  
22 - es : ""  
23 - }  
24 - ],  
25 - "classes" : [  
26 - {  
27 - pt : "Classes",  
28 - en : "",  
29 - es : ""  
30 - }  
31 - ],  
32 - 'editor' : [  
33 - {  
34 - pt : "Editor",  
35 - en : "",  
36 - es : ""  
37 - }  
38 - ],  
39 - 'graficos' : [  
40 - {  
41 - pt : "Gr&aacute;ficos",  
42 - en : "",  
43 - es : ""  
44 - }  
45 - ],  
46 - 'importaExportaSLD' : [  
47 - {  
48 - pt : "SLD",  
49 - en : "",  
50 - es : ""  
51 - }  
52 - ],  
53 - 'mostraClassesLegenda' : [  
54 - {  
55 - pt : "Mostra as classes desse tema na legenda do mapa",  
56 - en : "",  
57 - es : ""  
58 - }  
59 - ],  
60 - 'incluiNumeroOcorrencia' : [  
61 - {  
62 - pt : "Inclui n&uacute;mero de ocorr&ecirc;ncias",  
63 - en : "",  
64 - es : ""  
65 - }  
66 - ],  
67 - 'incluiNumeroOcorrencia2' : [  
68 - {  
69 - pt : "incluir o n&uacute;mero de ocorr&ecirc;ncias no nome de cada classe",  
70 - en : "",  
71 - es : ""  
72 - }  
73 - ],  
74 - 'aplicaOpacidadeVariavel' : [  
75 - {  
76 - pt : "Aplica opacidade vari&aacute;vel",  
77 - en : "",  
78 - es : ""  
79 - }  
80 - ],  
81 - 'aplicaOpacidade' : [  
82 - {  
83 - pt : "aplicar opacidade nas classes existente, variando de 10 at&eacute; 100",  
84 - en : "",  
85 - es : ""  
86 - }  
87 - ],  
88 - 'escolhePaletaCores' : [  
89 - {  
90 - pt : "Escolher paleta de cores",  
91 - en : "",  
92 - es : ""  
93 - }  
94 - ],  
95 - 'variaCoresExtremos' : [  
96 - {  
97 - pt : "escolher e aplicar as varia&ccedil;&otilde;es de cores, entre dois extremos, nas classes existentes",  
98 - en : "",  
99 - es : ""  
100 - }  
101 - ],  
102 - 'geraCores' : [  
103 - {  
104 - pt : "Gerar cores",  
105 - en : "",  
106 - es : ""  
107 - }  
108 - ],  
109 - 'ate' : [  
110 - {  
111 - pt : "at&eacute;",  
112 - en : "",  
113 - es : ""  
114 - }  
115 - ],  
116 - 'de' : [  
117 - {  
118 - pt : "de",  
119 - en : "",  
120 - es : ""  
121 - }  
122 - ],  
123 - 'aplica' : [  
124 - {  
125 - pt : "Aplicar",  
126 - en : "",  
127 - es : ""  
128 - }  
129 - ],  
130 - 'aplicaVariaCores' : [  
131 - {  
132 - pt : "aplicar varia&ccedil;&otilde;es de cores, entre dois extremos, nas classes existentes",  
133 - en : "",  
134 - es : ""  
135 - }  
136 - ],  
137 - 'aplicaAlteracao' : [  
138 - {  
139 - pt : "Aplicar altera&ccedil;&otilde;es",  
140 - en : "",  
141 - es : ""  
142 - }  
143 - ],  
144 - 'adicionaClasse' : [  
145 - {  
146 - pt : "Adicionar classe",  
147 - en : "",  
148 - es : ""  
149 - }  
150 - ],  
151 - 'adicionaNovaClasse' : [  
152 - {  
153 - pt : "adicionar uma nova classe na legenda",  
154 - en : "",  
155 - es : ""  
156 - }  
157 - ],  
158 - 'clicaSimbolo' : [  
159 - {  
160 - pt : "Clique no s&iacute;mbolo da classe para alterar",  
161 - en : "",  
162 - es : ""  
163 - }  
164 - ],  
165 - 'consideraElementosVisisveis' : [  
166 - {  
167 - pt : "marque para considerar apenas os elementos vis&iacute;veis na extens&atilde;o geogr&aacute;fica atual, caso contr&aacute;rio, ser&aacute; considerada a extens&atilde;o geogr&aacute;fica inicial do mapa",  
168 - en : "",  
169 - es : ""  
170 - }  
171 - ],  
172 - 'ignoraValores' : [  
173 - {  
174 - pt : "Ao gerar as classes, ignorar os valores (separe com v&iacute;rgula)",  
175 - en : "",  
176 - es : ""  
177 - }  
178 - ],  
179 - 'transformaGeom' : [  
180 - {  
181 - pt : "Transforma a representa&ccedil;&atilde;o geom&eacute;trica dos elementos do tema. Ap&oacute;s alterar esse par&acirc;metro, pode ser necess&aacute;rio modificar as caracter&iacute;sticas do s&iacute;mbolo.",  
182 - en : "",  
183 - es : ""  
184 - }  
185 - ],  
186 - 'semTransformacao' : [  
187 - {  
188 - pt : "nenhuma transforma&ccedil;&atilde;o",  
189 - en : "",  
190 - es : ""  
191 - }  
192 - ],  
193 - 'centroide' : [  
194 - {  
195 - pt : "centr&oacute;ide",  
196 - en : "",  
197 - es : ""  
198 - }  
199 - ],  
200 - 'vertices' : [  
201 - {  
202 - pt : "v&eacute;rtices",  
203 - en : "",  
204 - es : ""  
205 - }  
206 - ],  
207 - 'verticeInicial' : [  
208 - {  
209 - pt : "v&eacute;rtice inicial",  
210 - en : "",  
211 - es : ""  
212 - }  
213 - ],  
214 - 'verticeFinal' : [  
215 - {  
216 - pt : "v&eacute;rtice final",  
217 - en : "",  
218 - es : ""  
219 - }  
220 - ],  
221 - 'alteraGeom' : [  
222 - {  
223 - pt : "Altera geometria",  
224 - en : "",  
225 - es : ""  
226 - }  
227 - ],  
228 - 'alteraTipoGeom' : [  
229 - {  
230 - pt : "Altera o tipo de representa&ccedil;&atilde;o do tema. Se for poligonal, passa para linear e vice-versa.",  
231 - en : "",  
232 - es : ""  
233 - }  
234 - ],  
235 - 'alteraTipo' : [  
236 - {  
237 - pt : "Altera tipo",  
238 - en : "",  
239 - es : ""  
240 - }  
241 - ],  
242 - 'todosElementosUnicoSimbolo' : [  
243 - {  
244 - pt : "Todos os elementos ser&atilde;o desenhados com um &uacute;nico s&iacute;mbolo",  
245 - en : "",  
246 - es : ""  
247 - }  
248 - ],  
249 - 'simboloUnico' : [  
250 - {  
251 - pt : "S&iacute;mbolo &uacute;nico",  
252 - en : "",  
253 - es : ""  
254 - }  
255 - ],  
256 - 'cadaOcorrenciaUnicoSimbolo' : [  
257 - {  
258 - pt : "Cada ocorr&ecirc;ncia de um valor para o item selecionado, ser&aacute; desenhado com o mesmo s&iacute;mbolo",  
259 - en : "",  
260 - es : ""  
261 - }  
262 - ],  
263 - 'valorUnico' : [  
264 - {  
265 - pt : "Calcular valor &uacute;nico",  
266 - en : "",  
267 - es : ""  
268 - }  
269 - ],  
270 - 'criaClassesItemNumerico' : [  
271 - {  
272 - pt : "Cria classes para um item num&eacute;rico utilizando um n&uacute;mero fixo de classes",  
273 - en : "",  
274 - es : ""  
275 - }  
276 - ],  
277 - 'numeroClasses' : [  
278 - {  
279 - pt : "N&uacute;mero de classes",  
280 - en : "",  
281 - es : ""  
282 - }  
283 - ],  
284 - 'intervalosIguais' : [  
285 - {  
286 - pt : "Calcular intervalos iguais",  
287 - en : "",  
288 - es : ""  
289 - }  
290 - ],  
291 - 'criaQuartis' : [  
292 - {  
293 - pt : "Cria classes para um item num&eacute;rico utilizando os quartis",  
294 - en : "",  
295 - es : ""  
296 - }  
297 - ],  
298 - 'estiloNomeClasses' : [  
299 - {  
300 - pt : "Estilo dos nomes das classes",  
301 - en : "",  
302 - es : ""  
303 - }  
304 - ],  
305 - 'soValores' : [  
306 - {  
307 - pt : "s&oacute; os valores",  
308 - en : "",  
309 - es : ""  
310 - }  
311 - ],  
312 - 'quartilValores' : [  
313 - {  
314 - pt : "quartil e os valores",  
315 - en : "",  
316 - es : ""  
317 - }  
318 - ],  
319 - 'expressaoCompleta' : [  
320 - {  
321 - pt : "express&atilde;o completa",  
322 - en : "",  
323 - es : ""  
324 - }  
325 - ],  
326 - "etiquetasClasse" : [  
327 - {  
328 - pt : "Textos da classe (labels)",  
329 - en : "",  
330 - es : ""  
331 - }  
332 - ],  
333 - 'itemComTexto' : [  
334 - {  
335 - pt : "Item com o texto",  
336 - en : "",  
337 - es : ""  
338 - }  
339 - ],  
340 - 'exclui' : [  
341 - {  
342 - pt : "excluir",  
343 - en : "",  
344 - es : ""  
345 - }  
346 - ],  
347 - 'adiciona' : [  
348 - {  
349 - pt : "adicionar",  
350 - en : "",  
351 - es : ""  
352 - }  
353 - ],  
354 - 'propriedades2' : [  
355 - {  
356 - pt : "propriedades",  
357 - en : "",  
358 - es : ""  
359 - }  
360 - ],  
361 - 'estilos' : [  
362 - {  
363 - pt : "Estilos",  
364 - en : "",  
365 - es : ""  
366 - }  
367 - ],  
368 - 'ajudaEstilo' : [  
369 - {  
370 - pt : "Cada s&iacute;mbolo pode ser formado por um ou mais estilos. Utilize -1,-1,-1 para anular uma cor. A cor deve ser definida no formato vermelho,verde,azul. Para criar linhas tracejadas utilize o s&iacute;mbolo 0 ou vazio e digite um padr&atilde;o de repeti&ccedil;&atilde;o como por exemplo 2 10 2 10 ",  
371 - en : "",  
372 - es : ""  
373 - }  
374 - ],  
375 - 'aplicaAlteracoes' : [  
376 - {  
377 - pt : "Aplicar todas as altera&ccedil;&otilde;es",  
378 - en : "",  
379 - es : ""  
380 - }  
381 - ],  
382 - 'geraSLD' : [  
383 - {  
384 - pt : "Gera um arquivo XML, no padr&atilde;o SLD, contendo a legenda atual da camada. Para maiores informa&ccedil;&otilde;es, veja",  
385 - en : "",  
386 - es : ""  
387 - }  
388 - ],  
389 - 'ajudaSLD' : [  
390 - {  
391 - pt : "(O SLD s&oacute; &eacute; gerado ou aplicado corretamente em camadas que utilizam express&otilde;es simples e o elemento CLASSITEM)",  
392 - en : "",  
393 - es : ""  
394 - }  
395 - ],  
396 - 'exportaSLD' : [  
397 - {  
398 - pt : "Exportar SLD",  
399 - en : "",  
400 - es : ""  
401 - }  
402 - ],  
403 - 'msgAplicaSLD' : [  
404 - {  
405 - pt : "Aplica um arquivo SLD &agrave; camada ativa",  
406 - en : "",  
407 - es : ""  
408 - }  
409 - ],  
410 - 'aplicaSLD' : [  
411 - {  
412 - pt : "Aplicar SLD",  
413 - en : "",  
414 - es : ""  
415 - }  
416 - ],  
417 - 'temaInexistente' : [  
418 - {  
419 - pt : "O tema ja nao existe mais no mapa",  
420 - en : "",  
421 - es : ""  
422 - }  
423 - ],  
424 - 'cliqueAltera' : [  
425 - {  
426 - pt : "clique para alterar",  
427 - en : "",  
428 - es : ""  
429 - }  
430 - ],  
431 - 'cliqueExclui' : [  
432 - {  
433 - pt : "clique para excluir",  
434 - en : "",  
435 - es : ""  
436 - }  
437 - ],  
438 - 'digitaNovoNome' : [  
439 - {  
440 - pt : "digite o novo nome",  
441 - en : "",  
442 - es : ""  
443 - }  
444 - ],  
445 - 'digitaNovaExpressao' : [  
446 - {  
447 - pt : "digite a nova express&atilde;o",  
448 - en : "",  
449 - es : ""  
450 - }  
451 - ],  
452 - 'sobe' : [  
453 - {  
454 - pt : "sobe",  
455 - en : "",  
456 - es : ""  
457 - }  
458 - ],  
459 - 'desce' : [  
460 - {  
461 - pt : "desce",  
462 - en : "",  
463 - es : ""  
464 - }  
465 - ],  
466 - 'ajudaEscalaCores' : [  
467 - {  
468 - pt : "Para aplicar um ajuste entre 0 e 255 cores, utilize a op&ccedil;&atilde;o <i>Escala de Cores</i>.",  
469 - en : "",  
470 - es : ""  
471 - }  
472 - ],  
473 - 'msgEscalaCoresAuto' : [  
474 - {  
475 - pt : "O valor de SCALE= pode ser a palavra AUTO (SCALE=AUTO) ou um valor m&iacute;nimo e m&aacute;ximo (por exemplo SCALE=20,3000).",  
476 - en : "",  
477 - es : ""  
478 - }  
479 - ],  
480 - 'msgEscalaCoresIndividual' : [  
481 - {  
482 - pt : "Voc&ecirc; pode aplicar a escala em bandas individuais, para isso, utilize SCALE_n, por exemplo SCALE_1=AUTO SCALE_2=200,500.",  
483 - en : "",  
484 - es : ""  
485 - }  
486 - ],  
487 - 'msgBandas' : [  
488 - {  
489 - pt : "Para escolher quais bandas ser&atilde;o utilizadas e qual sua ordem, utilize a op&ccedil;&atilde;o BANDAS. Utilize, por exemplo, BANDS=1,2,3 BANDS=1 .",  
490 - en : "",  
491 - es : ""  
492 - }  
493 - ],  
494 - 'msgReamostragem' : [  
495 - {  
496 - pt : "Para alterar o modo de amostragem, utilize RESAMPLE com uma das op&ccedil;&otilde;es: AVERAGE,NEAREST ou BILINEAR.",  
497 - en : "",  
498 - es : ""  
499 - }  
500 - ],  
501 - 'adicionaProcesso' : [  
502 - {  
503 - pt : "Voc&ecirc; pode incluir processos na imagem para modificar as caracter&iacute;sticas de visualiza&ccedil;&atilde;o<br><br>Adicionar processo",  
504 - en : "",  
505 - es : ""  
506 - }  
507 - ],  
508 - 'selecionaProcesso' : [  
509 - {  
510 - pt : "selecione o processo",  
511 - en : "",  
512 - es : ""  
513 - }  
514 - ],  
515 - 'escalaCores' : [  
516 - {  
517 - pt : "Escala de cores",  
518 - en : "",  
519 - es : ""  
520 - }  
521 - ],  
522 - 'reamostragem' : [  
523 - {  
524 - pt : "Reamostragem",  
525 - en : "",  
526 - es : ""  
527 - }  
528 - ],  
529 - 'bandas' : [  
530 - {  
531 - pt : "Bandas",  
532 - en : "",  
533 - es : ""  
534 - }  
535 - ],  
536 - 'aplicaProcesso' : [  
537 - {  
538 - pt : "aplicar processos",  
539 - en : "",  
540 - es : ""  
541 - }  
542 - ],  
543 - 'msgNaoEditaLegenda' : [  
544 - {  
545 - pt : "N&atilde;o &eacute; poss&iacute;vel editar a legenda desse tema",  
546 - en : "",  
547 - es : ""  
548 - }  
549 - ],  
550 - 'msgAplicaAlteracao' : [  
551 - {  
552 - pt : "Clique em <i>Aplicar</i> para que as altera&ccedil;&otilde;pes sejam salvas",  
553 - en : "",  
554 - es : ""  
555 - }  
556 - ],  
557 - 'consideraElementosVisiveis' : [  
558 - {  
559 - pt : "A contagem considera apenas os elementos vis&iacute;veis na abrang&ecirc;ncia do mapa",  
560 - en : "",  
561 - es : ""  
562 - }  
563 - ],  
564 - 'selecionaUmItem' : [  
565 - {  
566 - pt : "Selecione um item!",  
567 - en : "",  
568 - es : ""  
569 - }  
570 - ],  
571 - 'estiloEdicao' : [  
572 - {  
573 - pt : "Estilo em edi&ccedil;&atilde;o",  
574 - en : "",  
575 - es : ""  
576 - }  
577 - ],  
578 - 'corFundo' : [  
579 - {  
580 - pt : "Cor do fundo",  
581 - en : "",  
582 - es : ""  
583 - }  
584 - ],  
585 - 'corFrente' : [  
586 - {  
587 - pt : "Cor da frente",  
588 - en : "",  
589 - es : ""  
590 - }  
591 - ],  
592 - 'tamanhoEspacamento' : [  
593 - {  
594 - pt : "Tamanho / espa&ccedil;amento",  
595 - en : "",  
596 - es : ""  
597 - }  
598 - ],  
599 - 'espessura' : [  
600 - {  
601 - pt : "Espessura",  
602 - en : "",  
603 - es : ""  
604 - }  
605 - ],  
606 - 'padraoRepeticao' : [  
607 - {  
608 - pt : "Padr&atilde;o de repeti&ccedil;&atilde;o",  
609 - en : "",  
610 - es : ""  
611 - }  
612 - ],  
613 - 'opacidade' : [  
614 - {  
615 - pt : "Opacidade",  
616 - en : "",  
617 - es : ""  
618 - }  
619 - ],  
620 - 'angulo' : [  
621 - {  
622 - pt : "&Acirc;ngulo",  
623 - en : "",  
624 - es : ""  
625 - }  
626 - ],  
627 - 'simbolo' : [  
628 - {  
629 - pt : "Nome do s&iacute;mbolo<br>Voc&ecirc; pode tamb&eacute;m usar o caminho absoluto de uma imagem PNG existente no servidor ou clicar em " + "um dos s&iacute;mbolos mostrados abaixo. <a href='"  
630 - + i3GEO.configura.locaplic  
631 - + "/admin/html/subirsimbolo.html' target=_blank >Clique aqui para upload dessa imagem</a>",  
632 - en : "",  
633 - es : ""  
634 - }  
635 - ],  
636 - 'listaSimbolo' : [  
637 - {  
638 - pt : "Lista de s&iacute;mbolos. Clique para selecionar",  
639 - en : "",  
640 - es : ""  
641 - }  
642 - ],  
643 - 'graficoPizza' : [  
644 - {  
645 - pt : "Gr&aacute;fico de pizza",  
646 - en : "",  
647 - es : ""  
648 - }  
649 - ],  
650 - 'numeroOcorrenciasClasses' : [  
651 - {  
652 - pt : "N&uacute;mero de ocorr&ecirc;ncias em cada classe (n)",  
653 - en : "",  
654 - es : ""  
655 - }  
656 - ],  
657 - 'msgNumeroClasses' : [  
658 - {  
659 - pt : "O tema deve conter pelo menos 2 classes",  
660 - en : "",  
661 - es : ""  
662 - }  
663 - ],  
664 - 'quebrasNaturais' : [  
665 - {  
666 - pt : "Calcular quebras naturais",  
667 - en : "",  
668 - es : ""  
669 - }  
670 - ],  
671 - 'calcularQuartil' : [  
672 - {  
673 - pt : "Calcular quartis",  
674 - en : "",  
675 - es : ""  
676 - }  
677 - ],  
678 - 'calcularQuantil' : [  
679 - {  
680 - pt : "Calcular quantis",  
681 - en : "",  
682 - es : ""  
683 - }  
684 - ],  
685 - 'minScale' : [  
686 - {  
687 - pt : "N&atilde;o desenha se escala for menor que",  
688 - en : "",  
689 - es : ""  
690 - }  
691 - ],  
692 - 'maxScale' : [  
693 - {  
694 - pt : "N&atilde;o desenha se escala for maior que",  
695 - en : "",  
696 - es : ""  
697 - }  
698 - ],  
699 - 'aplicatodos' : [  
700 - {  
701 - pt : "Aplicar esse par&acirc;metro em todas as classes",  
702 - en : "",  
703 - es : ""  
704 - }  
705 - ],  
706 - 'nomeClassesUnicoSimbolo' : [  
707 - {  
708 - pt : "(Opcional) Item que ser&aacute; utilizado para obter os nomes das classes",  
709 - en : "",  
710 - es : ""  
711 - }  
712 - ],  
713 - 'aplicar' : [  
714 - {  
715 - pt : "aplicar",  
716 - en : "",  
717 - es : ""  
718 - }  
719 - ],  
720 - 'symbolscale' : [  
721 - {  
722 - pt : "Denominador da escala na qual o s&iacute;mbolo ser&aacute; apresentado com o tamanho definido. Esse par&acirc;metro funciona em conjunto com MAXSCALE e MINSCALE e &eacute; v&aacute;lido para a camada como um todo e n&atilde;o para cada estilo (afeta pontos)",  
723 - en : "",  
724 - es : ""  
725 - }  
726 - ],  
727 - 'minsize' : [  
728 - {  
729 - pt : "Menor tamanho (pixels), que os s&iacute;mbolos ser&atilde;o desenhados, quando a escala de desenho de s&iacute;mbolos estiver ativo",  
730 - en : "",  
731 - es : ""  
732 - }  
733 - ],  
734 - 'maxsize' : [  
735 - {  
736 - pt : "Maior tamanho (pixels), que os s&iacute;mbolos ser&atilde;o desenhados, quando a escala de desenho de s&iacute;mbolos estiver ativo",  
737 - en : "",  
738 - es : ""  
739 - }  
740 - ],  
741 - "editorExp" : [  
742 - {  
743 - pt : "Editor de express&atilde;o",  
744 - en : "",  
745 - es : ""  
746 - }  
747 - ],  
748 - "offsetx" : [  
749 - {  
750 - pt : "Deslocamento em <b>X</b> com rela&ccedil;&atilde;o ao ponto de inser&ccedil;&atilde;o de s&iacute;mbolo",  
751 - en : "",  
752 - es : ""  
753 - }  
754 - ],  
755 - "offsety" : [  
756 - {  
757 - pt : "Deslocamento em <b>Y</b> com rela&ccedil;&atilde;o ao ponto de inser&ccedil;&atilde;o de s&iacute;mbolo",  
758 - en : "",  
759 - es : ""  
760 - }  
761 - ],  
762 - "metade" : [  
763 - {  
764 - pt : "Metade",  
765 - en : "",  
766 - es : ""  
767 - }  
768 - ],  
769 - "duasmetades" : [  
770 - {  
771 - pt : "Classifica os dados em duas classes, a primeira concentra os registros que somados correspondem &agrave; primeira metade do total e a segunda classe corresponde &agrave; segunda metade",  
772 - en : "",  
773 - es : ""  
774 - }  
775 - ],  
776 - "iunico" : [  
777 - {  
778 - pt : "Coluna que identifica cada registro de forma &uacute;nica",  
779 - en : "",  
780 - es : ""  
781 - }  
782 - ],  
783 - "media" : [  
784 - {  
785 - pt : "M&eacute;dia",  
786 - en : "",  
787 - es : ""  
788 - }  
789 - ],  
790 - "duasmedias" : [  
791 - {  
792 - pt : "Classifica os dados em duas classes, a primeira concentra os registros que est&atilde;o abaixo da m&eacute;dia e a segunda aqueles que s&atilde;o iguais ou superiores a m&eacute;dia",  
793 - en : "",  
794 - es : ""  
795 - }  
796 - ],  
797 - "cluster" : [  
798 - {  
799 - pt : "Cluster",  
800 - en : "",  
801 - es : ""  
802 - }  
803 - ],  
804 - "ClusterMaxdistance" : [  
805 - {  
806 - pt : "Dist&acirc;ncia (pixels) m&aacute;xima entre os pontos que ser&aacute; considerada para permitir o agrupamento",  
807 - en : "",  
808 - es : ""  
809 - }  
810 - ],  
811 - "ClusterBuffer" : [  
812 - {  
813 - pt : "Dist&acirc;ncia em pixel, no entorno da extens&atilde;o geogr&aacute;fica do mapa ou dos tiles, se for o caso, que extende a &aacute;rea de pesuisa dos pontos para forma&ccedil;&atilde;o do agrupamento",  
814 - en : "",  
815 - es : ""  
816 - }  
817 - ],  
818 - "ClusterFilter" : [  
819 - {  
820 - pt : "Filtro que ser&aacute; aplicado para restringir os pontos que podem participar do agrupamento. A sintaxe do filtro &eacute; a mesma utilizada na defini&ccedil;&atilde;o das express&otilde;es que definem cada classe (ver o editor de classes)",  
821 - en : "",  
822 - es : ""  
823 - }  
824 - ],  
825 - "ClusterRegion" : [  
826 - {  
827 - pt : "Tipo de forma que ser&aacute; utilizada na defini&ccedil;&atilde;o da regi&atilde;o de busca dos pontos que formar&atilde;o o agrupamento",  
828 - en : "",  
829 - es : ""  
830 - }  
831 - ],  
832 - "ClusterGroup" : [  
833 - {  
834 - pt : "Item que ser&aacute; utilizado para separar os diferentes agrupamentos",  
835 - en : "",  
836 - es : ""  
837 - }  
838 - ],  
839 - "remover" : [  
840 - {  
841 - pt : "Remover",  
842 - en : "",  
843 - es : ""  
844 - }  
845 - ],  
846 - "legendaImg" : [  
847 - {  
848 - pt : "Imagem que ser&aacute; utilizada no lugar da montagem autom&aacute;tica da legenda",  
849 - en : "",  
850 - es : ""  
851 - }  
852 - ],  
853 - "offsite" : [  
854 - {  
855 - pt : "Cor, em imagens, que ser&aacute; considerada como NODATA e renderizada como transparente (RGB separado por v&iacute;rgulas)",  
856 - en : "",  
857 - es : ""  
858 - }  
859 - ],  
860 - 'autoClasses' : [ {  
861 - pt : "&Eacute; poss&iacute;vel a gera&ccedil;&atilde;o de classes automaticamente por meio da defini&ccedil;&atilde;o de colunas na tabela de atributos do tema que armazenam as informa&ccedil;&otilde;es sobre cor, tamanho, etc.",  
862 - en : "",  
863 - es : ""  
864 - } ],  
865 - 'classesitem' : [ {  
866 - pt : "Qual a coluna da tabela que identifica unicamente cada classe. Para cada valor ser&aacute; criada uma classe. O tema que utiliza a gera&ccedil;&atilde;o de classes de forma autom&aacute;tica, deve ter definido apenas uma classe. Essa classe ser&aacute; utilizada como padr&atilde;o para gera&ccedil;&atilde;o das demais.",  
867 - en : "",  
868 - es : ""  
869 - } ],  
870 - 'classesnome' : [ {  
871 - pt : "Nome da coluna que ser&aacute; utilizada para compor o nome das classes geradas automaticamente.",  
872 - en : "",  
873 - es : ""  
874 - } ],  
875 - 'classescor' : [ {  
876 - pt : "Nome da coluna que definir&aacute; a cor do s&iacute;mbolo utilizado em cada classe. As cores devem ser definidas em RGB.",  
877 - en : "",  
878 - es : ""  
879 - } ],  
880 - 'classessimbolo' : [ {  
881 - pt : "Nome da coluna que definir&aacute; o s&iacute;mbolo utilizado em cada classe.",  
882 - en : "",  
883 - es : ""  
884 - } ],  
885 - 'classestamanho' : [ {  
886 - pt : "Nome da coluna que definir&aacute; o tamanho de cada s&iacute;mbolo.",  
887 - en : "",  
888 - es : ""  
889 - } ],  
890 - 'palletefile' : [ {  
891 - pt : "Palete de cores. Endere&ccedil;o do arquivo no servidor (opcional)",  
892 - en : "",  
893 - es : ""  
894 - } ],  
895 - 'palletestep' : [ {  
896 - pt : "Quantas cores em cada n&iacute;vel da palete (opcional)",  
897 - en : "",  
898 - es : ""  
899 - } ],  
900 - "colunasTxt" : [ {  
901 - pt : "Itens dispon&iacute;veis",  
902 - en : "",  
903 - es : ""  
904 - } ]  
905 - };  
ferramentas/legendax/exec.php
@@ -1,173 +0,0 @@ @@ -1,173 +0,0 @@
1 -<?php  
2 -include(dirname(__FILE__)."/../safe.php");  
3 -verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false);  
4 -//  
5 -//faz a busca da fun&ccedil;&atilde;o que deve ser executada  
6 -//  
7 -$retorno = ""; //string que ser&aacute; retornada ao browser via JSON  
8 -switch (strtoupper($funcao))  
9 -{  
10 - case "PARAMETROSAUTO":  
11 - $map = ms_newMapObj($map_file);  
12 - $layer = $map->getlayerbyname($tema);  
13 - $retorno = array();  
14 - $retorno["classesitem"] = $layer->getmetadata("classesitem");  
15 - $retorno["classesnome"] = $layer->getmetadata("classesnome");  
16 - $retorno["classescor"] = $layer->getmetadata("classescor");  
17 - $retorno["classessimbolo"] = $layer->getmetadata("classessimbolo");  
18 - $retorno["classestamanho"] = $layer->getmetadata("classestamanho");  
19 - $retorno["palletefile"] = $layer->getmetadata("palletefile");  
20 - $retorno["palletestep"] = $layer->getmetadata("palletestep");  
21 - $sopen = $layer->open();  
22 - if($sopen != MS_FAILURE){  
23 - $items = $layer->getItems();  
24 - }  
25 - else{  
26 - $items = array();  
27 - }  
28 - $retorno["colunas"] = implode(",",$items);  
29 - break;  
30 - case "SALVAPARAMETROSAUTO":  
31 - $map = ms_newMapObj($map_file);  
32 - $layer = $map->getlayerbyname($tema);  
33 - $layer->setmetadata("classesitem",$_GET["classesitem"]);  
34 - $layer->setmetadata("classesnome",$_GET["classesnome"]);  
35 - $layer->setmetadata("classescor",$_GET["classescor"]);  
36 - $layer->setmetadata("classessimbolo",$_GET["classessimbolo"]);  
37 - $layer->setmetadata("classestamanho",$_GET["classestamanho"]);  
38 - $layer->setmetadata("palletefile",$_GET["palletefile"]);  
39 - $layer->setmetadata("palletestep",$_GET["palletestep"]);  
40 - $map->save($map_file);  
41 - $retorno = "ok";  
42 - break;  
43 -/*  
44 -Valor: TEMA2SLD  
45 -  
46 -Mostra na tela o SLD de um tema  
47 -  
48 -<Temas->sld>  
49 -*/  
50 - case "TEMA2SLD":  
51 - include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php");  
52 - $m = new Temas($map_file,$tema);  
53 - $sld = $m->sld();  
54 - echo header('Content-Disposition: attachment; filename="'.$tema.'.sld"');  
55 - echo header("Content-type: application/xml");  
56 - echo $m->sld();  
57 - exit;  
58 - break;  
59 -/*  
60 -function: ADICIONALABELCLASSE  
61 -  
62 -Adiciona LABEL em uma classe de um layer  
63 -  
64 -<Temas->adicionaLabel>  
65 -*/  
66 - case "ADICIONALABELCLASSE":  
67 - include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php");  
68 - $m = new Temas($map_file,$tema);  
69 - $l = $m->mapa->getlayerbyname($tema);  
70 - if(empty($item))  
71 - {$retorno = "erro";}  
72 - else{  
73 - //$l->set("labelitem",$item);  
74 - $novac = $l->getclass($_GET["classe"]);  
75 - $m->adicionaLabel($novac,$_GET["wrap"],$_GET["fonte"],$_GET["tamanho"],$_GET["angulo"],$_GET["fundo"],$_GET["sombra"],$_GET["cor"],$_GET["outlinecolor"],$_GET["shadowcolor"],$_GET["shadowsizex"],$_GET["shadowsizey"],$_GET["force"],$_GET["mindistance"],$_GET["minfeaturesize"],$_GET["offsetx"],$_GET["offsety"],$_GET["partials"],$_GET["position"],"[".$_GET["item"]."]");  
76 - $m->salva();  
77 - $retorno = "ok";  
78 - }  
79 - break;  
80 -/*  
81 -function: REMOVELABELCLASSE  
82 -  
83 -Remove LABEL em uma classe de um layer  
84 -*/  
85 - case "REMOVELABELCLASSE":  
86 - include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php");  
87 - $m = new Temas($map_file,$tema);  
88 - $m->removeLabel($_GET["classe"]);  
89 - $m->salva();  
90 - $retorno = "ok";  
91 - break;  
92 -/*  
93 -Valor: EDITALEGENDA  
94 -  
95 -Cria elementos para construir uma legenda no formato de tabela em HTML.  
96 -  
97 -<Legenda->tabelaLegenda>  
98 -*/  
99 - case "EDITALEGENDA":  
100 - include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php");  
101 - $m = new Legenda($map_file,$locaplic,$tema);  
102 - $r = $m->tabelaLegenda();  
103 - if (!$r){$r = "erro.Erro legenda nao disponivel";}  
104 - $retorno = $r;  
105 - break;  
106 -/*  
107 -Valor: CONTAGEMCLASSE  
108 -  
109 -Acrescenta a contagem de elementos em cada classe.  
110 -  
111 -<Legenda->tabelaLegenda>  
112 -*/  
113 - case "CONTAGEMCLASSE":  
114 - //apresenta erro com palavras acentuadas  
115 - include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php");  
116 - $m = new Legenda($map_file,$locaplic,$tema);  
117 - $r = $m->tabelaLegenda("sim");  
118 - $m->salva();  
119 - if (!$r){$r = "erro.Erro legenda nao disponivel";}  
120 - $retorno = $r;  
121 - break;  
122 - /*  
123 - Valor: APLICATODASCLASSES  
124 -  
125 - Aplica um parametro a todas as classes  
126 - */  
127 - case "APLICATODASCLASSES":  
128 - include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php");  
129 - $m = new Legenda($map_file,$locaplic,$tema);  
130 - $r = $m->aplicaTodasClasses($_GET["parametro"],$_GET["valor"]);  
131 - $m->salva();  
132 - if (!$r){$r = "erro.Erro legenda nao disponivel";}  
133 - $retorno = $r;  
134 - break;  
135 - case "APLICARCLUSTER":  
136 - include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php");  
137 - $m = new Temas($map_file,$tema);  
138 - $l = $m->mapa->getlayerbyname($tema);  
139 - if($filter != ""){  
140 - //$filter = base64decode($filter);  
141 - }  
142 - $m->criaCluster($_GET["group"],$_GET["filter"],$_GET["maxdistance"],$_GET["region"],$_GET["buffer"]);  
143 - $m->salva();  
144 - $retorno = "ok";  
145 - break;  
146 - case "REMOVERCLUSTER":  
147 - include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php");  
148 - $m = new Temas($map_file,$tema);  
149 - $l = $m->mapa->getlayerbyname($tema);  
150 - $m->removeCluster();  
151 - $m->salva();  
152 - $retorno = "ok";  
153 - break;  
154 - case "APLICALEGENDAIMG":  
155 - include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php");  
156 - $m = new Legenda($map_file,$locaplic,$tema);  
157 - $m->aplicaLegendaImg($_GET["imagem"]);  
158 - $m->salva();  
159 - $retorno = "ok";  
160 - break;  
161 - case "APLICAOFFSITE":  
162 - include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php");  
163 - $m = new Temas($map_file,$tema);  
164 - $m->mudaOffsite($_GET["offsite"]);  
165 - $m->salva();  
166 - $retorno = "ok";  
167 - break;  
168 -}  
169 -if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){  
170 - restauraCon($map_file,$postgis_mapa);  
171 -}  
172 -cpjson($retorno);  
173 -?>  
174 \ No newline at end of file 0 \ No newline at end of file
ferramentas/legendax/index.js
@@ -1,2511 +0,0 @@ @@ -1,2511 +0,0 @@
1 -/*  
2 - Title: Editor de legenda  
3 -  
4 - Define a forma de representa&ccedil;&atilde;o de um tema, modificando o tipo de classifica&ccedil;&atilde;o e os s&iacute;mbolos utilizados em cada classe  
5 -  
6 - Veja:  
7 -  
8 - <i3GEO.tema.dialogo.editaLegenda>  
9 -  
10 - Arquivo:  
11 -  
12 - i3geo/ferramentas/legenda/index.js.php  
13 -  
14 - Licenca:  
15 -  
16 - GPL2  
17 -  
18 - i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet  
19 -  
20 - Direitos Autorais Reservados (c) 2006 Minist&eacute;rio do Meio Ambiente Brasil  
21 - Desenvolvedor: Edmar Moretti edmar.moretti@gmail.com  
22 -  
23 - Este programa &eacute; software livre; voc&ecirc; pode redistribu&iacute;-lo  
24 - e/ou modific&aacute;-lo sob os termos da Licen&ccedil;a P&uacute;blica Geral  
25 - GNU conforme publicada pela Free Software Foundation;  
26 -  
27 - Este programa &eacute; distribu&iacute;do na expectativa de que seja &uacute;til,  
28 - por&eacute;m, SEM NENHUMA GARANTIA; nem mesmo a garantia impl&iacute;cita  
29 - de COMERCIABILIDADE OU ADEQUA&Ccedil;&Atilde;O A UMA FINALIDADE ESPEC&Iacute;FICA.  
30 - Consulte a Licen&ccedil;a P&uacute;blica Geral do GNU para mais detalhes.  
31 - Voc&ecirc; deve ter recebido uma c&oacute;pia da Licen&ccedil;a P&uacute;blica Geral do  
32 - GNU junto com este programa; se n&atilde;o, escreva para a  
33 - Free Software Foundation, Inc., no endere&ccedil;o  
34 - 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.  
35 - */  
36 -  
37 -if (typeof (i3GEOF) === 'undefined') {  
38 - var i3GEOF = {};  
39 -}  
40 -/*  
41 - * Classe: i3GEOF.legenda  
42 - */  
43 -// incuir opcao para inserir o nome de uma imagem da legenda  
44 -i3GEOF.legenda =  
45 - {  
46 - /*  
47 - * Variavel: parDefault  
48 - *  
49 - * Parametros padr&atilde;o utilizados para formatar os labels  
50 - */  
51 - parDefault : "&position=MS_UR&partials=1&offsetx=0&offsety=0&minfeaturesize=auto&mindistance=auto&force=0&shadowsizex=1&shadowsizey=1&cor=0 0 0&sombray=1&sombrax=1&angulo=0&tamanho=8&fonte=bitmap&fundo=off&sombra=off&outlinecolor=off&shadowcolor=off&wrap=",  
52 - /*  
53 - * Variavel: aviso  
54 - *  
55 - * Indica que uma altera&ccedil;&atilde;o ainda n&atilde;o foi salva  
56 - *  
57 - * Type: {boolean}  
58 - */  
59 - aviso : false,  
60 - /*  
61 - * Variavel: tema  
62 - *  
63 - * Tema que ser&aacute; utilizado  
64 - *  
65 - * Type: {string}  
66 - */  
67 - tema : i3GEO.temaAtivo,  
68 - /*  
69 - * Variavel: dadosGrafico  
70 - *  
71 - * Dados utilizados no gr&aacute;fico no formato da ferramenta graficointerativo  
72 - */  
73 - dadosGrafico : "",  
74 - /*  
75 - * Variavel: aguarde  
76 - *  
77 - * Estilo do objeto DOM com a imagem de aguarde existente no cabe&ccedil;alho da janela.  
78 - */  
79 - aguarde : "",  
80 - /*  
81 - * Variavel: estilos  
82 - *  
83 - * Estilos existentes em um s&iacute;mbolo de uma classe  
84 - */  
85 - estilos : "",  
86 - /*  
87 - * Variavel: estilo  
88 - *  
89 - * Ultimo estilo selecionado  
90 - */  
91 - estilo : "",  
92 - /*  
93 - * Variavel: classe  
94 - *  
95 - * Ultima classe selecionado  
96 - */  
97 - classe : "",  
98 - /**  
99 - * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php  
100 - */  
101 - MUSTACHE : "",  
102 - /**  
103 - * Funcao do usuario que e executada apos iniciar a ferramenta  
104 - */  
105 - aposIniciar : function(){  
106 -  
107 - },  
108 - /**  
109 - * Susbtitutos para o template  
110 - */  
111 - mustacheHash : function() {  
112 - var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.legenda.dicionario);  
113 - dicionario["locaplic"] = i3GEO.configura.locaplic;  
114 - dicionario["asp"] = '"';  
115 - dicionario["aplicar"] = $trad("p14");  
116 - return dicionario;  
117 - },  
118 - /*  
119 - * Function: inicia  
120 - *  
121 - * Inicia a ferramenta. &Eacute; chamado por criaJanelaFlutuante  
122 - *  
123 - * Parametro:  
124 - *  
125 - * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta  
126 - */  
127 - inicia : function(iddiv) {  
128 - if(i3GEOF.legenda.MUSTACHE == ""){  
129 - $.get(i3GEO.configura.locaplic + "/ferramentas/legenda/template_mst.html", function(template) {  
130 - i3GEOF.legenda.MUSTACHE = template;  
131 - i3GEOF.legenda.inicia(iddiv);  
132 - });  
133 - return;  
134 - }  
135 - if (!$i("i3GEOFlegendaComboCabecaSel")) {  
136 - i3GEO.janela.comboCabecalhoTemasBs("i3GEOFlegendaComboCabeca", "i3GEOFlegendaComboCabecaSel", "legenda", "ligados",function(evt){  
137 - var botao = evt.target;  
138 - if (botao) {  
139 - if (botao.value != "") {  
140 - i3GEO.mapa.ativaTema(botao.value);  
141 - i3GEOF.legenda.tema = botao.value;  
142 - $i(iddiv).innerHTML = "";  
143 - i3GEOF.legenda.inicia(iddiv);  
144 - } else {  
145 - $i(iddiv).innerHTML = "";  
146 - }  
147 - }  
148 - });  
149 - }  
150 - if (i3GEO.temaAtivo === "") {  
151 - $i(iddiv).innerHTML = "";  
152 - return;  
153 - }  
154 - try {  
155 - $i(iddiv).innerHTML += i3GEOF.legenda.html();  
156 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia");  
157 - // eventos das guias  
158 - $i("i3GEOlegendaguia8").onclick = function() {  
159 - i3GEOF.legenda.ativaAplicar("none");  
160 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia8", "i3GEOlegendaguia");  
161 - i3GEOF.legenda.parametrosAuto();  
162 - };  
163 - $i("i3GEOlegendaguia7").onclick = function() {  
164 - i3GEOF.legenda.ativaAplicar("none");  
165 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia7", "i3GEOlegendaguia");  
166 - };  
167 - $i("i3GEOlegendaguia6").onclick = function() {  
168 - i3GEOF.legenda.ativaAplicar("none");  
169 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia6", "i3GEOlegendaguia");  
170 - };  
171 - $i("i3GEOlegendaguia1").onclick = function() {  
172 - i3GEOF.legenda.ativaAplicar("none");  
173 - i3GEOF.legenda.mostralegenda();  
174 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia");  
175 - };  
176 - $i("i3GEOlegendaguia2").onclick = function() {  
177 - i3GEOF.legenda.ativaAplicar("none");  
178 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia2", "i3GEOlegendaguia");  
179 - };  
180 - $i("i3GEOlegendaguia3").onclick = function() {  
181 - i3GEO.janela.tempoMsg($trad('ajuda', i3GEOF.legenda.dicionario));  
182 - };  
183 - $i("i3GEOlegendaguia4").onclick = function() {  
184 - i3GEOF.legenda.ativaAplicar("none");  
185 - i3GEOF.legenda.mostraGrafico();  
186 - };  
187 - $i("i3GEOlegendaguia5").onclick = function() {  
188 - i3GEOF.legenda.ativaAplicar("none");  
189 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia5", "i3GEOlegendaguia");  
190 - };  
191 -  
192 - var b = new YAHOO.widget.Button("i3GEOlegendabotaoImagemLegenda", {  
193 - onclick : {  
194 - fn : i3GEOF.legenda.aplicarLegendaImg  
195 - }  
196 - });  
197 - b.addClass("rodar100");  
198 -  
199 - var b = new YAHOO.widget.Button("i3GEOlegendabotaoOffsite", {  
200 - onclick : {  
201 - fn : i3GEOF.legenda.aplicarOffsite  
202 - }  
203 - });  
204 - b.addClass("rodar100");  
205 -  
206 - var b = new YAHOO.widget.Button("i3GEOlegendabotaoAplicarCluster", {  
207 - onclick : {  
208 - fn : i3GEOF.legenda.aplicarCluster  
209 - }  
210 - });  
211 - b.addClass("rodar");  
212 -  
213 - var b = new YAHOO.widget.Button("i3GEOlegendabotaoRemoverCluster", {  
214 - onclick : {  
215 - fn : i3GEOF.legenda.removerCluster  
216 - }  
217 - });  
218 - b.addClass("rodar");  
219 -  
220 - var b = new YAHOO.widget.Button("i3GEOlegendabotaoAplicarAuto", {  
221 - onclick : {  
222 - fn : i3GEOF.legenda.salvaParametrosAuto  
223 - }  
224 - });  
225 - b.addClass("rodar");  
226 -  
227 - var b = new YAHOO.widget.Button("i3GEOlegendabotao1", {  
228 - onclick : {  
229 - fn : i3GEOF.legenda.mudaLegenda  
230 - }  
231 - });  
232 - b.addClass("rodar150");  
233 - b = new YAHOO.widget.Button("i3GEOlegendabotao2", {  
234 - onclick : {  
235 - fn : i3GEOF.legenda.adicionaClasse  
236 - }  
237 - });  
238 - b.addClass("rodar150");  
239 - b = new YAHOO.widget.Button("i3GEOlegendabotao3", {  
240 - onclick : {  
241 - fn : i3GEOF.legenda.adicionaConta  
242 - }  
243 - });  
244 - b.addClass("rodar");  
245 - b = new YAHOO.widget.Button("i3GEOlegendabotao15", {  
246 - onclick : {  
247 - fn : i3GEOF.legenda.adicionaOpacidade  
248 - }  
249 - });  
250 - b.addClass("rodar");  
251 -  
252 - b = new YAHOO.widget.Button("i3GEOlegendabotaoRamp", {  
253 - onclick : {  
254 - fn : function() {  
255 - var tabela = $i("i3GEOlegendalegenda");  
256 - var trs = tabela.getElementsByTagName("tr");  
257 - var ncores = trs.length - 1;  
258 - // $i("i3geo_janelaCorRampComboCabecaSel").value = i3GEOF.legenda.tema;  
259 - i3GEO.util.abreColourRamp("", "listaColourRamp", ncores, i3GEOF.legenda.tema);  
260 - }  
261 - }  
262 - });  
263 - b.addClass("rodar");  
264 - b = new YAHOO.widget.Button("i3GEOlegendabotao4", {  
265 - onclick : {  
266 - fn : i3GEOF.legenda.paleta  
267 - }  
268 - });  
269 - b.addClass("rodar100");  
270 - b = new YAHOO.widget.Button("i3GEOlegendabotao5", {  
271 - onclick : {  
272 - fn : i3GEOF.legenda.simbU  
273 - }  
274 - });  
275 - b.addClass("rodar");  
276 - b = new YAHOO.widget.Button("i3GEOlegendabotao6", {  
277 - onclick : {  
278 - fn : i3GEOF.legenda.valorU  
279 - }  
280 - });  
281 - b.addClass("rodar");  
282 - b = new YAHOO.widget.Button("i3GEOlegendabotaoMetade", {  
283 - onclick : {  
284 - fn : i3GEOF.legenda.metade  
285 - }  
286 - });  
287 - b.addClass("rodar");  
288 - b = new YAHOO.widget.Button("i3GEOlegendabotaoMedia", {  
289 - onclick : {  
290 - fn : i3GEOF.legenda.media  
291 - }  
292 - });  
293 - b.addClass("rodar");  
294 - b = new YAHOO.widget.Button("i3GEOlegendabotao7", {  
295 - onclick : {  
296 - fn : i3GEOF.legenda.representacao  
297 - }  
298 - });  
299 - b.addClass("rodar");  
300 - b = new YAHOO.widget.Button("i3GEOlegendabotao8", {  
301 - onclick : {  
302 - fn : i3GEOF.legenda.valorC  
303 - }  
304 - });  
305 - b.addClass("rodar");  
306 - b = new YAHOO.widget.Button("i3GEOlegendabotao9", {  
307 - onclick : {  
308 - fn : i3GEOF.legenda.valorQ  
309 - }  
310 - });  
311 - b.addClass("rodar");  
312 - b = new YAHOO.widget.Button("i3GEOlegendabotaoQuantil", {  
313 - onclick : {  
314 - fn : i3GEOF.legenda.valorQu  
315 - }  
316 - });  
317 - b.addClass("rodar");  
318 - b = new YAHOO.widget.Button("i3GEOlegendabotaoQN", {  
319 - onclick : {  
320 - fn : i3GEOF.legenda.valorQN  
321 - }  
322 - });  
323 - b.addClass("rodar");  
324 -  
325 - b = new YAHOO.widget.Button("i3GEOlegendabotao17", {  
326 - onclick : {  
327 - fn : i3GEOF.legenda.alteraGeometriaTema  
328 - }  
329 - });  
330 - b.addClass("rodar");  
331 - b =  
332 - new YAHOO.widget.Button("i3GEOlegendabotaoSLDe", {  
333 - onclick : {  
334 - fn : function() {  
335 - window.open(i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?funcao=tema2sld&tema="  
336 - + i3GEOF.legenda.tema  
337 - + "&g_sid="  
338 - + i3GEO.configura.sid);  
339 - }  
340 - }  
341 - });  
342 - b.addClass("rodar");  
343 - b = new YAHOO.widget.Button("i3GEOlegendabotaoSLDi", {  
344 - onclick : {  
345 - fn : function() {  
346 - i3GEO.tema.dialogo.aplicarsld(i3GEOF.legenda.tema);  
347 - }  
348 - }  
349 - });  
350 - b.addClass("rodar");  
351 -  
352 - b =  
353 - new YAHOO.widget.Button("i3GEOlegendabotaoIncluirLabel", {  
354 - onclick : {  
355 - fn : function() {  
356 - var par, p, temp, cp;  
357 - try {  
358 - par = i3GEOF.proplabel.pegaPar();  
359 - i3GEOF.legenda.parDefault = par;  
360 - } catch (e) {  
361 - par = i3GEOF.legenda.parDefault;  
362 - }  
363 - i3GEOF.legenda.aguarde.visibility = "visible";  
364 - temp = function() {  
365 - i3GEOF.legenda.aguarde.visibility = "hidden";  
366 - i3GEOF.legenda.aposAlterarLegenda();  
367 - i3GEOF.legenda.aguarde.visibility = "hidden";  
368 - };  
369 - p =  
370 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
371 - + i3GEO.configura.sid  
372 - + "&funcao=adicionaLabelClasse&tema="  
373 - + i3GEOF.legenda.tema  
374 - + "&classe="  
375 - + i3GEOF.legenda.classe  
376 - + par;  
377 - p += "&item=" + $i("i3GEOlegendaSelItemLabel").value;  
378 - cp = new cpaint();  
379 - cp.set_response_type("JSON");  
380 - cp.call(p, "foo", temp);  
381 - }  
382 - }  
383 - });  
384 - b.addClass("rodar100");  
385 - b =  
386 - new YAHOO.widget.Button("i3GEOlegendabotaoExcluirLabel", {  
387 - onclick : {  
388 - fn : function() {  
389 - var p, temp, cp;  
390 - i3GEOF.legenda.aguarde.visibility = "visible";  
391 - temp = function() {  
392 - i3GEOF.legenda.aguarde.visibility = "hidden";  
393 - i3GEOF.legenda.aposAlterarLegenda();  
394 - i3GEOF.legenda.aguarde.visibility = "hidden";  
395 - };  
396 - p =  
397 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
398 - + i3GEO.configura.sid  
399 - + "&funcao=removeLabelClasse&tema="  
400 - + i3GEOF.legenda.tema  
401 - + "&classe="  
402 - + i3GEOF.legenda.classe;  
403 - cp = new cpaint();  
404 - cp.set_response_type("JSON");  
405 - cp.call(p, "foo", temp);  
406 - }  
407 - }  
408 - });  
409 - b.addClass("rodar100");  
410 - b =  
411 - new YAHOO.widget.Button("i3GEOlegendabotaoPropriedadeLabel", {  
412 - onclick : {  
413 - fn : function() {  
414 - i3GEO.util.scriptTag(  
415 - i3GEO.configura.locaplic + "/ferramentas/opcoes_label/index.js",  
416 - "i3GEOF.proplabel.criaJanelaFlutuante(false)",  
417 - "i3GEOFproplabel",  
418 - false);  
419 - }  
420 - }  
421 - });  
422 - b.addClass("abrir100");  
423 - i3GEOF.legenda.ativaFoco();  
424 - i3GEOF.legenda.mostralegenda();  
425 - i3GEOF.legenda.montaCombosItens();  
426 - var objTema = i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema);  
427 - if (objTema.classe && objTema.classe.toLowerCase() == "nao") {  
428 - $i("i3GEOFlegendamostra").checked = false;  
429 - }  
430 - if(objTema.legendaimg){  
431 - $i("i3GEOlegendaImg").value = objTema.legendaimg;  
432 - }  
433 - if(objTema.offsite){  
434 - $i("i3GEOoffsite").value = objTema.offsite;  
435 - }  
436 - $i("i3GEOFlegendamostra").onclick = function() {  
437 - i3GEO.tema.invertestatuslegenda(i3GEOF.legenda.tema);  
438 - };  
439 - i3GEO.util.aplicaAquarela("i3GEOF.legenda_corpo");  
440 - i3GEOF.legenda.aposIniciar.call();  
441 - } catch (erro) {  
442 - i3GEO.janela.tempoMsg(erro);  
443 - i3GEOF.legenda.aposIniciar = function(){};  
444 - }  
445 - i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda");  
446 - },  
447 - /*  
448 - * Function: html  
449 - *  
450 - * Gera o c&oacute;digo html para apresenta&ccedil;&atilde;o das op&ccedil;&otilde;es da ferramenta  
451 - *  
452 - * Retorno:  
453 - *  
454 - * String com o c&oacute;digo html  
455 - */  
456 - html : function() {  
457 - var ins = Mustache.render(i3GEOF.legenda.MUSTACHE, i3GEOF.legenda.mustacheHash());  
458 - return ins;  
459 - },  
460 - /*  
461 - * Function: iniciaJanelaFlutuante  
462 - *  
463 - * Cria a janela flutuante para controle da ferramenta.  
464 - */  
465 - iniciaJanelaFlutuante : function() {  
466 - var minimiza, cabecalho, janela, divid, temp, titulo;  
467 - if ($i("i3GEOF.legenda")) {  
468 - i3GEOF.legenda.tema = i3GEO.temaAtivo;  
469 - i3GEOF.legenda.inicia("i3GEOF.legenda_corpo");  
470 - return;  
471 - }  
472 - cabecalho = function() {  
473 - i3GEOF.legenda.ativaFoco();  
474 - };  
475 - minimiza = function() {  
476 - i3GEO.janela.minimiza("i3GEOF.legenda");  
477 - i3GEOF.legenda.ativaAplicar("none");  
478 - };  
479 - // cria a janela flutuante  
480 - titulo =  
481 - "<div id='i3GEOF.legendaI' style='left:5px;'>"  
482 - + "<div id='i3GEOFlegendaComboCabeca' class='comboTemasCabecalhoBs form-group' style='width:200px'> ------</div></div>"  
483 - + "</div><a class='i3GeoTituloJanelaBs' target=_blank href='"  
484 - + i3GEO.configura.locaplic  
485 - + "/ajuda_usuario.php?idcategoria=5&idajuda=41' > "  
486 - + $trad("t33")  
487 - +"</a>";  
488 - janela = i3GEO.janela.cria(  
489 - "590px",  
490 - "350px",  
491 - "",  
492 - "",  
493 - "",  
494 - titulo,  
495 - "i3GEOF.legenda",  
496 - false,  
497 - "hd",  
498 - cabecalho,  
499 - minimiza,  
500 - function() {i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda");},  
501 - true  
502 - );  
503 -  
504 - divid = janela[2].id;  
505 - i3GEOF.legenda.aguarde = $i("i3GEOF.legenda_imagemCabecalho").style;  
506 - $i("i3GEOF.legenda_corpo").style.backgroundColor = "white";  
507 - i3GEOF.legenda.inicia(divid);  
508 - },  
509 - /*  
510 - * Function: ativaFoco  
511 - *  
512 - * Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado  
513 - */  
514 - ativaFoco : function() {  
515 -  
516 - },  
517 - ativaAplicar : function(tipo) {  
518 - var b = $i("i3GEOlegendabotao10");  
519 - if (b) {  
520 - b.style.display = tipo;  
521 - } else {  
522 - YAHOO.i3GEO.janela.manager.find("i3GEOF.legenda").setFooter(  
523 - '<input id="i3GEOlegendabotao10" type="button" value="' + $trad('aplicaAlteracoes', i3GEOF.legenda.dicionario)  
524 - + '" style="width: 450px;cursor:pointer;color:blue;display: block;"/>');  
525 - b = new YAHOO.widget.Button("i3GEOlegendabotao10", {  
526 - onclick : {  
527 - fn : i3GEOF.legenda.aplicaEstilo  
528 - }  
529 - });  
530 - b.addClass("rodar");  
531 - $i("i3GEOlegendabotao10-button").style.width = "100%";  
532 - $i("i3GEOlegendabotao10").style.width = "100%";  
533 - $i("i3GEOlegendabotao10").style.display = tipo;  
534 - }  
535 - },  
536 - /*  
537 - * Function: aposAlterarLegenda  
538 - *  
539 - * Fun&ccedil;&atilde;o executada ap&oacute;s ocorrer alguma altera&ccedil;&atilde;o efetiva da legenda do mapa  
540 - */  
541 - aposAlterarLegenda : function() {  
542 - i3GEO.arvoreDeCamadas.CAMADAS = [];  
543 - i3GEO.atualiza();  
544 - i3GEO.Interface.atualizaTema("", i3GEOF.legenda.tema);  
545 - i3GEO.arvoreDeCamadas.atualizaLegenda(i3GEOF.legenda.tema);  
546 - i3GEO.mapa.legendaHTML.atualiza();  
547 - },  
548 - /*  
549 - * Function: mostralegenda  
550 - *  
551 - * Pega os dados da legenda do mapa atual e mostra na tela  
552 - *  
553 - * Veja:  
554 - *  
555 - * <EDITALEGENDA>  
556 - */  
557 - mostralegenda : function() {  
558 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
559 - return;  
560 - }  
561 - i3GEOF.legenda.aguarde.visibility = "visible";  
562 - var p, cp;  
563 - p =  
564 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
565 - + i3GEO.configura.sid  
566 - + "&funcao=editalegenda&opcao=edita&tema="  
567 - + i3GEOF.legenda.tema;  
568 - cp = new cpaint();  
569 - cp.set_response_type("JSON");  
570 - cp.call(p, "tabelaLegenda", i3GEOF.legenda.montaLegenda);  
571 - },  
572 - /*  
573 - * Function: montaLegenda  
574 - *  
575 - * Formata a tabela de edi&ccedil;&atilde;o da legenda  
576 - *  
577 - * Parametro:  
578 - *  
579 - * retorno - objeto contendo os dados para formata&ccedil;&atilde;o da legenda  
580 - */  
581 - montaLegenda : function(retorno) {  
582 - i3GEOF.legenda.aviso = false;  
583 - try {  
584 - if (retorno.data != undefined) {  
585 - var b, ins, i, ajuda, id, re, exp, n, filtro;  
586 - // se nao for do tipo raster  
587 - if (retorno.data[0].proc === "") {  
588 - ins =  
589 - [  
590 - "<table class=lista4 id=i3GEOlegendalegenda ><tr>" + "<td><img src='"  
591 - + i3GEO.configura.locaplic  
592 - + "/imagens/inverter.png' title='Inverter cores' onclick='i3GEOF.legenda.inverteCores()' style=cursor:pointer /></td>"  
593 - + "<td style=background-color:white ><img src='"  
594 - + i3GEO.configura.locaplic  
595 - + "/imagens/tamanho.png' title='Calcula tamanho' onclick='i3GEOF.legenda.calculaTamanho()' style=cursor:pointer /></td>"  
596 - + "<td></td>"  
597 - + "<td style=background-color:yellow >"  
598 - + "<img src='"  
599 - + i3GEO.configura.locaplic  
600 - + "/imagens/oxygen/16x16/draw-triangle.png' title='Ordenar' onclick='i3GEOF.legenda.ordenaClasses()' style=cursor:pointer />"  
601 - + "<span style='vertical-align:super;margin-left:3px;'>nome</span></td>"  
602 - + "<td style=background-color:yellow >express&atilde;o</td>"  
603 - + "<td style=background-color:yellow ></td>"  
604 - + "<td style=background-color:yellow >minScale</td>"  
605 - + "<td style=background-color:yellow >maxScale</td>"  
606 - + "</tr>"  
607 - ];  
608 - n = retorno.data.length;  
609 - for (i = 0; i < n; i++) {  
610 - id = retorno.data[i].tema + "-" + retorno.data[i].idclasse; // layer+indice da classe  
611 - re = new RegExp("'", "g");  
612 - exp = (retorno.data[i].expressao).replace(re, '"');  
613 -  
614 - ins.push("<tr>");  
615 - ins.push("<td><div style='cursor:pointer;height:14px;' title='" + $trad('cliqueExclui', i3GEOF.legenda.dicionario)  
616 - + "' onclick='i3GEOF.legenda.excluilinhaf(this)' src='"  
617 - + i3GEO.configura.locaplic  
618 - + "/imagens/x.gif' title='excluir' class='i3GEOiconeXis' >&nbsp;</div></td>");  
619 -  
620 - ins.push("<td><img width='30px' height='15px' style='cursor:pointer' title='" + $trad(  
621 - 'cliqueAltera',  
622 - i3GEOF.legenda.dicionario)  
623 - + "' src='"  
624 - + retorno.data[i].imagem  
625 - + "' onclick=i3GEOF.legenda.editaSimbolo('i3GEOlegendaid_"  
626 - + id  
627 - + "') /></td>");  
628 -  
629 - ins.push("<td><img onclick=i3GEOF.legenda.modificaCor('" + retorno.data[i].idclasse  
630 - + "') title='alterar a cor' style='cursor:pointer' src='"  
631 - + i3GEO.configura.locaplic  
632 - + "/imagens/aquarela.gif' /></td>");  
633 -  
634 - ins.push("<td>" + $inputText(  
635 - "",  
636 - "",  
637 - "i3GEOlegendaid_" + id,  
638 - $trad('digitaNovoNome', i3GEOF.legenda.dicionario),  
639 - 20,  
640 - retorno.data[i].nomeclasse,  
641 - "nome",  
642 - "javascript:i3GEOF.legenda.aviso()")  
643 - + "</td>");  
644 -  
645 - filtro =  
646 - "<img title='" + $trad("editorExp", i3GEOF.legenda.dicionario)  
647 - + "' src='"  
648 - + i3GEO.configura.locaplic  
649 - + "/imagens/oxygen/16x16/tools-wizard.png' "  
650 - + "onclick='i3GEOF.legenda.filtro(\""  
651 - + "i3GEOlegendaid_exp"  
652 - + id  
653 - + "\")'>";  
654 -  
655 - ins.push("<td>" + $inputText("", "", "i3GEOlegendaid_exp" + id, $trad(  
656 - 'digitaNovaExpressao',  
657 - i3GEOF.legenda.dicionario), 25, exp, "expressao", "javascript:i3GEOF.legenda.aviso()")  
658 - + "</td>");  
659 -  
660 - ins.push("<td>" + filtro + "</td>");  
661 -  
662 - ins.push("<td>" + $inputText(  
663 - "",  
664 - "",  
665 - "i3GEOlegendaid_" + id,  
666 - $trad('minScale', i3GEOF.legenda.dicionario),  
667 - 10,  
668 - retorno.data[i].minScale,  
669 - "minScale",  
670 - "javascript:i3GEOF.legenda.aviso()")  
671 - + "</td>");  
672 -  
673 - ins.push("<td>" + $inputText(  
674 - "",  
675 - "",  
676 - "i3GEOlegendaid_" + id,  
677 - $trad('maxScale', i3GEOF.legenda.dicionario),  
678 - 10,  
679 - retorno.data[i].maxScale,  
680 - "maxScale",  
681 - "javascript:i3GEOF.legenda.aviso()")  
682 - + "</td>");  
683 -  
684 - if (n > 1) {  
685 - ins.push("<td><img src='" + i3GEO.configura.locaplic  
686 - + "/imagens/sobe1.png' style=cursor:pointer title='"  
687 - + $trad('sobe', i3GEOF.legenda.dicionario)  
688 - + "' onclick=i3GEOF.legenda.sobelinhaf('"  
689 - + retorno.data[i].idclasse  
690 - + "') /></td>");  
691 -  
692 - ins.push("<td><img src='" + i3GEO.configura.locaplic  
693 - + "/imagens/desce1.png' style=cursor:pointer title='"  
694 - + $trad('desce', i3GEOF.legenda.dicionario)  
695 - + "' onclick=i3GEOF.legenda.descelinhaf('"  
696 - + retorno.data[i].idclasse  
697 - + "') /></td>");  
698 - }  
699 - ins.push("</tr>");  
700 - }  
701 - ins.push("</table><br>");  
702 - $i("i3GEOlegendaresultado").innerHTML = ins.join("");  
703 - } else {  
704 - ajuda =  
705 - "<br><p class=paragrafo >" + $trad('ajudaEscalaCores', i3GEOF.legenda.dicionario)  
706 - + "<p class=paragrafo >"  
707 - + $trad('msgEscalaCoresAuto', i3GEOF.legenda.dicionario)  
708 - + "<p class=paragrafo >"  
709 - + $trad('msgEscalaCoresIndividual', i3GEOF.legenda.dicionario)  
710 - + "<p class=paragrafo >"  
711 - + $trad('msgBandas', i3GEOF.legenda.dicionario)  
712 - + "<p class=paragrafo >"  
713 - + $trad('msgReamostragem', i3GEOF.legenda.dicionario);  
714 - ins =  
715 - "<p class=paragrafo >" + $trad('adicionaProcesso', i3GEOF.legenda.dicionario)  
716 - + ":"  
717 - + "<select onchange=i3GEOF.legenda.adicionaProcesso(this) >"  
718 - + "<option value='' >"  
719 - + $trad('selecionaProcesso', i3GEOF.legenda.dicionario)  
720 - + "</option>"  
721 - + "<option value='SCALE=' >"  
722 - + $trad('escalaCores', i3GEOF.legenda.dicionario)  
723 - + "</option>"  
724 - + "<option value='RESAMPLE=' >"  
725 - + $trad('reamostragem', i3GEOF.legenda.dicionario)  
726 - + "</option>"  
727 - + "<option value='BANDS=' >"  
728 - + $trad('bandas', i3GEOF.legenda.dicionario)  
729 - + "</option>"  
730 - + "<option value='COLOR_MATCH_THRESHOLD=' >Threshold</option>"  
731 - + "<option value='NODATA=' >Nodata</option>"  
732 - + "</select><br>"  
733 - + '<p class=paragrafo ><input id=i3GEOlegendabotao16 class="executar" size="22" type="buttom" value="'  
734 - + $trad('aplicaProcesso', i3GEOF.legenda.dicionario)  
735 - + '">';  
736 - if (retorno.data[0].proc == "") {  
737 - ins += "<div style=width:80% id=i3GEOlegendaprocessos ></div>";  
738 - } else {  
739 - ins += "<div style='width:80%;text-align:left;' id=i3GEOlegendaprocessos >";  
740 - for (i = 0; i < retorno.data[0].proc.length; i++) {  
741 - ins += "<br>" + $inputText("", "", "", "", 50, retorno.data[0].proc[i]);  
742 - }  
743 - ins += "</div>";  
744 - }  
745 - $i("i3GEOlegendaresultado").innerHTML = ins + ajuda;  
746 - b = new YAHOO.widget.Button("i3GEOlegendabotao16", {  
747 - onclick : {  
748 - fn : i3GEOF.legenda.aplicaProcessos  
749 - }  
750 - });  
751 - b.addClass("rodar");  
752 - }  
753 - } else {  
754 - $i("i3GEOlegendaresultado").innerHTML = "<p style=color:red >Erro<br>";  
755 - }  
756 - i3GEOF.legenda.aguarde.visibility = "hidden";  
757 - } catch (e) {  
758 - i3GEO.janela.tempoMsg($trad('msgNaoEditaLegenda', i3GEOF.legenda.dicionario));  
759 - i3GEOF.legenda.aguarde.visibility = "hidden";  
760 - }  
761 - },  
762 - filtro : function(idRetorno) {  
763 - i3GEO.tema.dialogo.filtro(i3GEOF.legenda.tema, true, idRetorno);  
764 - },  
765 - /*  
766 - * Function: aviso  
767 - *  
768 - * Mostra um i3GEO.janela.tempoMsga ao usu&aacute;rio quando um campo da tabela que cont&eacute;m os dados da legenda &eacute;  
769 - * alterado  
770 - *  
771 - * O aviso &eacute; mostrado apenas uma vez  
772 - */  
773 - aviso : function() {  
774 - if (i3GEOF.legenda.aviso == true) {  
775 - i3GEO.janela.tempoMsg($trad('msgAplicaAlteracao', i3GEOF.legenda.dicionario));  
776 - i3GEOF.legenda.aviso == false;  
777 - }  
778 - },  
779 - /*  
780 - * Function: aplicaColourRamp  
781 - *  
782 - * Aplica nas classes da legenda as cores escolhidas no seletor de cores  
783 - */  
784 - aplicaColourRamp : function() {  
785 - if ($i("listaColourRamp").value != "") {  
786 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
787 - return;  
788 - }  
789 - i3GEOF.legenda.aguarde.visibility = "visible";  
790 - var cores = $i("listaColourRamp").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), temp = function() {  
791 - i3GEOF.legenda.aguarde.visibility = "hidden";  
792 - i3GEOF.legenda.mostralegenda();  
793 - i3GEOF.legenda.aposAlterarLegenda();  
794 - }, p =  
795 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
796 - + i3GEO.configura.sid  
797 - + "&funcao=alteraclasse&opcao=aplicacoresrgb&ext="  
798 - + ext  
799 - + "&tema="  
800 - + i3GEOF.legenda.tema, cp = new cpaint();  
801 - cp.set_transfer_mode('POST');  
802 - cp.set_response_type("JSON");  
803 - cp.call(p, "foo", temp, "cores=" + cores);  
804 - }  
805 - },  
806 - /*  
807 - * Function: corj  
808 - *  
809 - * Abre a janela para o usu&aacute;rio selecionar uma cor interativamente  
810 - */  
811 - corj : function(obj) {  
812 - i3GEO.util.abreCor("", obj);  
813 - },  
814 - /*  
815 - * Function: modificaCor  
816 - *  
817 - * Modifica a cor de uma classe  
818 - */  
819 - modificaCor : function(id) {  
820 - var obj = $i("tempCorLegenda");  
821 - if (!obj) {  
822 - var obj = document.createElement("input");  
823 - obj.id = "tempCorLegenda";  
824 - obj.style.display = "none";  
825 - obj.type = "text";  
826 - obj.value = "";  
827 - document.body.appendChild(obj);  
828 - obj.onchange = function() {  
829 - i3GEOF.legenda.aplicaNovaCor($i("tempCorLegenda").name);  
830 - };  
831 - }  
832 - obj.name = id;  
833 - i3GEO.util.abreCor("", "tempCorLegenda");  
834 - },  
835 - aplicaNovaCor : function(id) {  
836 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
837 - return;  
838 - }  
839 - i3GEOF.legenda.aguarde.visibility = "visible";  
840 - var retorna = function() {  
841 - i3GEOF.legenda.aposAlterarLegenda();  
842 - i3GEOF.legenda.aguarde.visibility = "hidden";  
843 - i3GEOF.legenda.mostralegenda();  
844 - };  
845 - i3GEO.php.aplicaCorClasseTema(retorna, i3GEOF.legenda.tema, id, $i("tempCorLegenda").value);  
846 - },  
847 - aplicarLegendaImg : function() {  
848 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
849 - return;  
850 - }  
851 - //muda o valor do objeto tema para que a proxima vez que abrir a ferramenta o campo input seja preenchido corretamente  
852 - var objTema = i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema);  
853 - objTema.legendaimg = $i("i3GEOlegendaImg").value;  
854 -  
855 - i3GEOF.legenda.aguarde.visibility = "visible";  
856 - var retorna = function() {  
857 - i3GEOF.legenda.aposAlterarLegenda();  
858 - i3GEOF.legenda.aguarde.visibility = "hidden";  
859 - i3GEOF.legenda.mostralegenda();  
860 - };  
861 - var p =  
862 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
863 - + i3GEO.configura.sid  
864 - + "&funcao=aplicaLegendaImg"  
865 - + "&tema="  
866 - + i3GEOF.legenda.tema  
867 - + "&imagem="  
868 - + objTema.legendaimg,  
869 - cp = new cpaint();  
870 - cp.set_response_type("JSON");  
871 - cp.call(p, "foo", retorna);  
872 - },  
873 - aplicarOffsite : function() {  
874 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
875 - return;  
876 - }  
877 - //muda o valor do objeto tema para que a proxima vez que abrir a ferramenta o campo input seja preenchido corretamente  
878 - var objTema = i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema);  
879 - objTema.offsite = $i("i3GEOoffsite").value;  
880 -  
881 - i3GEOF.legenda.aguarde.visibility = "visible";  
882 - var retorna = function() {  
883 - i3GEOF.legenda.aposAlterarLegenda();  
884 - i3GEOF.legenda.aguarde.visibility = "hidden";  
885 - i3GEOF.legenda.mostralegenda();  
886 - };  
887 - var p =  
888 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
889 - + i3GEO.configura.sid  
890 - + "&funcao=aplicaOffsite"  
891 - + "&tema="  
892 - + i3GEOF.legenda.tema  
893 - + "&offsite="  
894 - + objTema.offsite,  
895 - cp = new cpaint();  
896 - cp.set_response_type("JSON");  
897 - cp.call(p, "foo", retorna);  
898 - },  
899 - /*  
900 - * Function: mudaLegenda  
901 - *  
902 - * Altera a legenda conforme os valores existentes na tabela de propriedades (express&atilde;o e nome da classe)  
903 - *  
904 - * Veja:  
905 - *  
906 - * <ALTERACLASSE>  
907 - */  
908 - mudaLegenda : function() {  
909 - i3GEOF.legenda.aviso = false;  
910 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
911 - return;  
912 - }  
913 - i3GEOF.legenda.aguarde.visibility = "visible";  
914 - try {  
915 - var tabela = $i("i3GEOlegendalegenda"), trs = tabela.getElementsByTagName("tr"), minScales = [], maxScales = [], nomes = [], exps =  
916 - [], ids = [], t, nn, n, p, cp, temp;  
917 - // expn,  
918 - // re = new RegExp('"', "g");  
919 - for (t = 0; t < trs.length; t++) {  
920 - if (trs[t].childNodes) {  
921 - nn = trs[t].childNodes;  
922 - for (n = 0; n < nn.length; n++) {  
923 - if (nn[n].childNodes) {  
924 - var isn = nn[n].getElementsByTagName("input");  
925 - if (isn[0] != undefined) {  
926 - if (isn[0].name == "nome") {  
927 - nomes.push(isn[0].value);  
928 - temp = (isn[0].id).split("i3GEOlegendaid_");  
929 - ids.push(temp[1]);  
930 - }  
931 - if (isn[0].name == "expressao") {  
932 - exps.push(isn[0].value);  
933 - }  
934 - if (isn[0].name == "minScale") {  
935 - minScales.push(parseInt(isn[0].value, 10));  
936 - }  
937 - if (isn[0].name == "maxScale") {  
938 - maxScales.push(parseInt(isn[0].value, 10));  
939 - }  
940 - }  
941 - }  
942 - }  
943 - }  
944 - }  
945 - ids = ids.join(";");  
946 - nomes = nomes.join(";");  
947 - exps = exps.join(";");  
948 - minScales = minScales.join(";");  
949 - maxScales = maxScales.join(";");  
950 - temp = function() {  
951 - i3GEOF.legenda.aguarde.visibility = "hidden";  
952 - i3GEOF.legenda.mostralegenda();  
953 - i3GEOF.legenda.aposAlterarLegenda();  
954 - i3GEOF.legenda.aguarde.visibility = "hidden";  
955 - };  
956 - var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
957 - p =  
958 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?"  
959 - + "base64=nao"  
960 - + "&g_sid="  
961 - + i3GEO.configura.sid  
962 - + "&funcao=alteraclasse"  
963 - + "&opcao=alteraclasses"  
964 - + "&ext="  
965 - + ext;  
966 - cp = new cpaint();  
967 - cp.set_transfer_mode('POST');  
968 - cp.set_response_type("JSON");  
969 - cp.call(p, "alteraclassesPost", temp, "ids=" + ids  
970 - + "&nomes="  
971 - //+ i3GEO.util.base64encode(nomes)  
972 - + nomes  
973 - + "&exps="  
974 - //+ i3GEO.util.base64encode(exps)  
975 - + exps  
976 - + "&minScales="  
977 - + minScales  
978 - + "&maxScales="  
979 - + maxScales);  
980 - } catch (e) {  
981 - i3GEO.janela.tempoMsg("Erro: " + e);  
982 - i3GEOF.legenda.aguarde.visibility = "hidden";  
983 - }  
984 - },  
985 - /*  
986 - * Function: alteraGeometria  
987 - *  
988 - * Altera o tipo de representa&ccedil;&atilde;o geom&eacute;trica dos elementos de um layer  
989 - *  
990 - * Veja:  
991 - *  
992 - * <ALTERACLASSE>  
993 - */  
994 - alteraGeometriaTema : function() {  
995 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
996 - return;  
997 - }  
998 - i3GEOF.legenda.aguarde.visibility = "visible";  
999 - var retorna = function() {  
1000 - i3GEOF.legenda.aposAlterarLegenda();  
1001 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1002 - i3GEOF.legenda.mostralegenda();  
1003 - };  
1004 - var p =  
1005 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1006 - + i3GEO.configura.sid  
1007 - + "&funcao=alteraclasse&opcao=alterageometria&tema="  
1008 - + i3GEOF.legenda.tema  
1009 - + "&tipo="  
1010 - + $i("i3GEOlegentaTipoGeo").value, cp = new cpaint();  
1011 - cp.set_response_type("JSON");  
1012 - cp.call(p, "", retorna);  
1013 - },  
1014 - /*  
1015 - * Function: adicionaConta  
1016 - *  
1017 - * Adiciona ao nome de cada classe o n&uacute;mero de ocorr&ecirc;ncias em cada uma  
1018 - *  
1019 - * Veja:  
1020 - *  
1021 - * <CONTAGEMCLASSE>  
1022 - */  
1023 - adicionaConta : function() {  
1024 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1025 - return;  
1026 - }  
1027 - i3GEOF.legenda.aguarde.visibility = "visible";  
1028 - var p =  
1029 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
1030 - + i3GEO.configura.sid  
1031 - + "&funcao=contagemclasse"  
1032 - + "&tema="  
1033 - + i3GEOF.legenda.tema, cp = new cpaint();  
1034 - cp.set_response_type("JSON");  
1035 - cp.call(p, "contagemclasse", i3GEOF.legenda.montaLegenda);  
1036 - i3GEO.janela.tempoMsg($trad('consideraElementosVisiveis', i3GEOF.legenda.dicionario));  
1037 - },  
1038 - /*  
1039 - * Function: adicionaClasse  
1040 - *  
1041 - * Adiciona uma nova classe ao tema  
1042 - *  
1043 - * Veja:  
1044 - *  
1045 - * <ALTERACLASSE>  
1046 - */  
1047 - adicionaClasse : function() {  
1048 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1049 - return;  
1050 - }  
1051 - var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
1052 - var p =  
1053 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1054 - + i3GEO.configura.sid  
1055 - + "&funcao=alteraclasse&opcao=adicionaclasse"  
1056 - + "&tema="  
1057 - + i3GEOF.legenda.tema  
1058 - + "&ext="  
1059 - + ext, cp = new cpaint();  
1060 - cp.set_response_type("JSON");  
1061 - cp.call(p, "alteraclasse", i3GEOF.legenda.mostralegenda);  
1062 - },  
1063 - /*  
1064 - * Function: adicionaOpacidade  
1065 - *  
1066 - * Adiciona opacidade vari&aacute;vel em cada classe  
1067 - *  
1068 - * Veja:  
1069 - *  
1070 - * <ALTERACLASSE>  
1071 - */  
1072 - adicionaOpacidade : function() {  
1073 - var retorna = function() {  
1074 - i3GEOF.legenda.aposAlterarLegenda();  
1075 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1076 - i3GEOF.legenda.mostralegenda();  
1077 - };  
1078 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1079 - return;  
1080 - }  
1081 - var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
1082 - var p =  
1083 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1084 - + i3GEO.configura.sid  
1085 - + "&funcao=alteraclasse&opcao=adicionaopacidade"  
1086 - + "&tema="  
1087 - + i3GEOF.legenda.tema  
1088 - + "&ext="  
1089 - + ext, cp = new cpaint();  
1090 - cp.set_response_type("JSON");  
1091 - cp.call(p, "alteraclasse", retorna);  
1092 - },  
1093 - /*  
1094 - * Function: paleta  
1095 - *  
1096 - * Gera as cores para as classes considerando um RGB inicial e um final  
1097 - *  
1098 - * Veja:  
1099 - *  
1100 - * <ALTERACORESCLASSES>  
1101 - */  
1102 - paleta : function() {  
1103 - try {  
1104 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1105 - return;  
1106 - }  
1107 - i3GEOF.legenda.aguarde.visibility = "visible";  
1108 - var retornapaleta = function() {  
1109 - i3GEOF.legenda.aposAlterarLegenda();  
1110 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1111 - i3GEOF.legenda.mostralegenda();  
1112 - }, ci = $i("i3GEOlegendaacori").value, cf = $i("i3GEOlegendaacorf").value, cp = new cpaint(), p =  
1113 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1114 - + i3GEO.configura.sid  
1115 - + "&funcao=alteraCoresClasses&tema="  
1116 - + i3GEOF.legenda.tema  
1117 - + "&cori="  
1118 - + ci  
1119 - + "&corf="  
1120 - + cf;  
1121 - cp.set_response_type("JSON");  
1122 - cp.call(p, "alteraCoresClasses", retornapaleta);  
1123 - } catch (e) {  
1124 - i3GEO.janela.tempoMsg("Erro: " + e);  
1125 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1126 - }  
1127 - },  
1128 - /*  
1129 - * Function: inverteCores  
1130 - *  
1131 - * Inverte as cores utilizadas nos s&iacute;mbolos das classes  
1132 - *  
1133 - * Veja:  
1134 - *  
1135 - * <INVERTECORESCLASSES>  
1136 - */  
1137 - inverteCores : function() {  
1138 - try {  
1139 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1140 - return;  
1141 - }  
1142 - i3GEOF.legenda.aguarde.visibility = "visible";  
1143 - var retornapaleta = function() {  
1144 - i3GEOF.legenda.aposAlterarLegenda();  
1145 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1146 - i3GEOF.legenda.mostralegenda();  
1147 - }, cp = new cpaint(), p =  
1148 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1149 - + i3GEO.configura.sid  
1150 - + "&funcao=inverteCoresClasses&tema="  
1151 - + i3GEOF.legenda.tema;  
1152 - cp.set_response_type("JSON");  
1153 - cp.call(p, "alteraCoresClasses", retornapaleta);  
1154 - } catch (e) {  
1155 - i3GEO.janela.tempoMsg("Erro: " + e);  
1156 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1157 - }  
1158 - },  
1159 - /*  
1160 - * Function: calculaTamanho  
1161 - *  
1162 - * Muda o s&iacute;mbolo de cada classe aplicando tamanhos diferentes e lineares  
1163 - *  
1164 - * Veja:  
1165 - *  
1166 - * <CALCULATAMANHOCLASSES>  
1167 - */  
1168 - calculaTamanho : function() {  
1169 - try {  
1170 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1171 - return;  
1172 - }  
1173 - i3GEOF.legenda.aguarde.visibility = "visible";  
1174 - var retornapaleta = function() {  
1175 - i3GEOF.legenda.aposAlterarLegenda();  
1176 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1177 - i3GEOF.legenda.mostralegenda();  
1178 - }, cp = new cpaint(), p =  
1179 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1180 - + i3GEO.configura.sid  
1181 - + "&funcao=calculaTamanhoClasses&tema="  
1182 - + i3GEOF.legenda.tema;  
1183 - cp.set_response_type("JSON");  
1184 - cp.call(p, "calculaTamanhoClasses", retornapaleta);  
1185 - } catch (e) {  
1186 - i3GEO.janela.tempoMsg("Erro: " + e);  
1187 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1188 - }  
1189 - },  
1190 - /*  
1191 - * Function: ordenaClasses  
1192 - *  
1193 - * Ordena as classes pelo nome  
1194 - *  
1195 - */  
1196 - ordenaClasses : function() {  
1197 - try {  
1198 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1199 - return;  
1200 - }  
1201 - i3GEOF.legenda.aguarde.visibility = "visible";  
1202 - var retornapaleta = function() {  
1203 - i3GEOF.legenda.aposAlterarLegenda();  
1204 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1205 - i3GEOF.legenda.mostralegenda();  
1206 - }, cp = new cpaint(), p =  
1207 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1208 - + i3GEO.configura.sid  
1209 - + "&funcao=ordenaClasses&tema="  
1210 - + i3GEOF.legenda.tema;  
1211 - cp.set_response_type("JSON");  
1212 - cp.call(p, "foo", retornapaleta);  
1213 - } catch (e) {  
1214 - i3GEO.janela.tempoMsg("Erro: " + e);  
1215 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1216 - }  
1217 - },  
1218 - /*  
1219 - * Function: excluilinhaf  
1220 - *  
1221 - * Exclui uma linha da tabela de edi&ccedil;&atilde;o de classes da legendda  
1222 - */  
1223 - excluilinhaf : function(celula) {  
1224 - var p = celula.parentNode.parentNode;  
1225 - do {  
1226 - p.removeChild(p.childNodes[0]);  
1227 - } while (p.childNodes.length > 0);  
1228 - p.parentNode.removeChild(p);  
1229 - i3GEOF.legenda.mudaLegenda();  
1230 - },  
1231 - /*  
1232 - * Function: sobelinhaf  
1233 - *  
1234 - * Sobe uma linha na tabela de edi&ccedil;&atilde;o de classes da legendda  
1235 - */  
1236 - sobelinhaf : function(idclasse) {  
1237 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1238 - return;  
1239 - }  
1240 - i3GEOF.legenda.aguarde.visibility = "visible";  
1241 - var p =  
1242 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1243 - + i3GEO.configura.sid  
1244 - + "&funcao=ALTERACLASSE&opcao=sobeclasse&tema="  
1245 - + i3GEOF.legenda.tema  
1246 - + "&idclasse="  
1247 - + idclasse, cp = new cpaint(), temp = function() {  
1248 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1249 - i3GEOF.legenda.mostralegenda();  
1250 - };  
1251 - cp.set_response_type("JSON");  
1252 - cp.call(p, "foo", temp);  
1253 - },  
1254 - /*  
1255 - * Function: descelinhaf  
1256 - *  
1257 - * Desce uma linha na tabela de edi&ccedil;&atilde;o de classes da legendda  
1258 - */  
1259 - descelinhaf : function(idclasse) {  
1260 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1261 - return;  
1262 - }  
1263 - i3GEOF.legenda.aguarde.visibility = "visible";  
1264 - var p =  
1265 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1266 - + i3GEO.configura.sid  
1267 - + "&funcao=ALTERACLASSE&opcao=desceclasse&tema="  
1268 - + i3GEOF.legenda.tema  
1269 - + "&idclasse="  
1270 - + idclasse, cp = new cpaint(), temp = function() {  
1271 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1272 - i3GEOF.legenda.mostralegenda();  
1273 - };  
1274 - ;  
1275 - cp.set_response_type("JSON");  
1276 - cp.call(p, "foo", temp);  
1277 - },  
1278 - /*  
1279 - * Function: editaSimbolo  
1280 - *  
1281 - * Abre o editor de s&iacute;mbolos  
1282 - *  
1283 - * Veja:  
1284 - *  
1285 - * <EDITASIMBOLO>  
1286 - */  
1287 - editaSimbolo : function(id) {  
1288 - try {  
1289 - $i("i3GEOlegendaguia1obj").style.display = "none";  
1290 - $i("i3GEOlegendaguia3obj").style.display = "block";  
1291 - i3GEOF.legenda.ativaAplicar("block");  
1292 - id = id.split("-");  
1293 - i3GEOF.legenda.classe = id[1];  
1294 - i3GEOF.legenda.estilo = 0;  
1295 - i3GEOF.legenda.formEditorSimbolo();  
1296 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1297 - } catch (e) {  
1298 - i3GEO.janela.tempoMsg("Erro: " + e);  
1299 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1300 - }  
1301 - },  
1302 - formEditorSimbolo : function() {  
1303 - var p =  
1304 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1305 - + i3GEO.configura.sid  
1306 - + "&funcao=editasimbolo&opcao=pegaparametros&tema="  
1307 - + i3GEOF.legenda.tema  
1308 - + "&classe="  
1309 - + i3GEOF.legenda.classe, cp = new cpaint();  
1310 - cp.set_response_type("JSON");  
1311 - cp.call(p, "pegaParametrosMapa", i3GEOF.legenda.montaEditor);  
1312 - },  
1313 - /*  
1314 - * Function: simbU  
1315 - *  
1316 - * Altera a leganda do tema para o tipo s&iacute;mbolo &uacute;nico  
1317 - *  
1318 - * Veja:  
1319 - *  
1320 - * <ALTERACLASSE>  
1321 - */  
1322 - simbU : function() {  
1323 - try {  
1324 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1325 - return;  
1326 - }  
1327 - i3GEOF.legenda.aguarde.visibility = "visible";  
1328 - var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
1329 - var p =  
1330 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1331 - + i3GEO.configura.sid  
1332 - + "&funcao=alteraclasse&tema="  
1333 - + i3GEOF.legenda.tema  
1334 - + "&opcao=simbolounico&ext="  
1335 - + ext, cp = new cpaint(), fim = function() {  
1336 - i3GEOF.legenda.aposAlterarLegenda();  
1337 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1338 - };  
1339 - cp.set_response_type("JSON");  
1340 - cp.call(p, "alteraclasse", fim);  
1341 - } catch (e) {  
1342 - i3GEO.janela.tempoMsg("Erro: " + e);  
1343 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1344 - }  
1345 - },  
1346 - /*  
1347 - * Function: valorU  
1348 - *  
1349 - * Altera a leganda do tema para o tipo valor &uacute;nico  
1350 - *  
1351 - * Veja:  
1352 - *  
1353 - * <ALTERACLASSE>  
1354 - */  
1355 - valorU : function() {  
1356 - try {  
1357 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1358 - return;  
1359 - }  
1360 - var item = $i("i3GEOlegendaitensValorUnico").getElementsByTagName("select")[0].value, itemNome =  
1361 - $i("i3GEOlegendaClassesValorUnico").getElementsByTagName("select")[0].value, p =  
1362 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1363 - + i3GEO.configura.sid  
1364 - + "&funcao=alteraclasse&tema="  
1365 - + i3GEOF.legenda.tema  
1366 - + "&item="  
1367 - + item  
1368 - + "&itemNome="  
1369 - + itemNome  
1370 - + "&opcao=valorunico"  
1371 - + "&ignorar="  
1372 - + $i("i3GEOlegendaignorar").value, cp = new cpaint(), fim = function() {  
1373 - i3GEOF.legenda.aposAlterarLegenda();  
1374 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1375 - };  
1376 - if ($i("i3GEOFlegendaaplicaextent").checked === true) {  
1377 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
1378 - } else {  
1379 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.extentTotal);  
1380 - }  
1381 -  
1382 - if (item == "") {  
1383 - i3GEO.janela.tempoMsg($trad('selecionaUmItem', i3GEOF.legenda.dicionario));  
1384 - return;  
1385 - }  
1386 - i3GEOF.legenda.aguarde.visibility = "visible";  
1387 - cp.set_response_type("JSON");  
1388 - cp.call(p, "alteraclasse", fim);  
1389 - } catch (e) {  
1390 - i3GEO.janela.tempoMsg("Erro: " + e);  
1391 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1392 - }  
1393 - },  
1394 - /*  
1395 - * Function: valorC  
1396 - *  
1397 - * Altera a leganda do tema com um n&uacute;mero espec&iacute;fico de classes  
1398 - *  
1399 - * Veja:  
1400 - *  
1401 - * <ALTERACLASSE>  
1402 - */  
1403 - valorC : function() {  
1404 - try {  
1405 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1406 - return;  
1407 - }  
1408 - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses =  
1409 - $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =  
1410 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1411 - + i3GEO.configura.sid  
1412 - + "&funcao=alteraclasse&nclasses="  
1413 - + nclasses  
1414 - + "&tema="  
1415 - + i3GEOF.legenda.tema  
1416 - + "&item="  
1417 - + item  
1418 - + "&opcao=intervalosiguais&ignorar="  
1419 - + $i("i3GEOlegendaignorar").value  
1420 - + "&ext="  
1421 - + ext, cp = new cpaint(), fim = function() {  
1422 - i3GEOF.legenda.aposAlterarLegenda();  
1423 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1424 - };  
1425 - if (item == "") {  
1426 - i3GEO.janela.tempoMsg("Selecione um item!");  
1427 - return;  
1428 - }  
1429 - if ($i("i3GEOFlegendaaplicaextent").checked === true) {  
1430 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
1431 - } else {  
1432 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.extentTotal);  
1433 - }  
1434 - i3GEOF.legenda.aguarde.visibility = "visible";  
1435 - cp.set_response_type("JSON");  
1436 - cp.call(p, "alteraclasse", fim);  
1437 - } catch (e) {  
1438 - i3GEO.janela.tempoMsg("Erro: " + e);  
1439 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1440 - }  
1441 - },  
1442 - /*  
1443 - * Function: metade  
1444 - *  
1445 - * Duas classes concentrando a soma das metades  
1446 - *  
1447 - * Veja:  
1448 - *  
1449 - * <ALTERACLASSE>  
1450 - */  
1451 - metade : function() {  
1452 - try {  
1453 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1454 - return;  
1455 - }  
1456 - var item = $i("i3GEOlegendaitensMetade").getElementsByTagName("select")[0].value,  
1457 - itemid = $i("i3GEOlegendaitensMetadeId").getElementsByTagName("select")[0].value,  
1458 - p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1459 - + i3GEO.configura.sid  
1460 - + "&funcao=alteraclasse"  
1461 - + "&tema="  
1462 - + i3GEOF.legenda.tema  
1463 - + "&item="  
1464 - + item  
1465 - + "&itemid="  
1466 - + itemid  
1467 - + "&opcao=metade&ignorar="  
1468 - + $i("i3GEOlegendaignorar").value,  
1469 - cp = new cpaint(),  
1470 - fim = function() {  
1471 - i3GEOF.legenda.aposAlterarLegenda();  
1472 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1473 - };  
1474 - if (item == "") {  
1475 - i3GEO.janela.tempoMsg("Selecione um item!");  
1476 - return;  
1477 - }  
1478 - if (itemid == "") {  
1479 - i3GEO.janela.tempoMsg("Selecione um item!");  
1480 - return;  
1481 - }  
1482 - if ($i("i3GEOFlegendaaplicaextent").checked === true) {  
1483 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
1484 - } else {  
1485 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.extentTotal);  
1486 - }  
1487 - i3GEOF.legenda.aguarde.visibility = "visible";  
1488 - cp.set_response_type("JSON");  
1489 - cp.call(p, "alteraclasse", fim);  
1490 - } catch (e) {  
1491 - i3GEO.janela.tempoMsg("Erro: " + e);  
1492 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1493 - }  
1494 - },  
1495 - /*  
1496 - * Function: media  
1497 - *  
1498 - * Duas classes considerando a media  
1499 - *  
1500 - * Veja:  
1501 - *  
1502 - * <ALTERACLASSE>  
1503 - */  
1504 - media : function() {  
1505 - try {  
1506 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1507 - return;  
1508 - }  
1509 - var item = $i("i3GEOlegendaitensMedia").getElementsByTagName("select")[0].value,  
1510 - p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1511 - + i3GEO.configura.sid  
1512 - + "&funcao=alteraclasse"  
1513 - + "&tema="  
1514 - + i3GEOF.legenda.tema  
1515 - + "&item="  
1516 - + item  
1517 - + "&opcao=media&ignorar="  
1518 - + $i("i3GEOlegendaignorar").value,  
1519 - cp = new cpaint(),  
1520 - fim = function() {  
1521 - i3GEOF.legenda.aposAlterarLegenda();  
1522 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1523 - };  
1524 - if (item == "") {  
1525 - i3GEO.janela.tempoMsg("Selecione um item!");  
1526 - return;  
1527 - }  
1528 - if ($i("i3GEOFlegendaaplicaextent").checked === true) {  
1529 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);  
1530 - } else {  
1531 - p += "&ext=" + i3GEO.util.extOSM2Geo(i3GEO.parametros.extentTotal);  
1532 - }  
1533 - i3GEOF.legenda.aguarde.visibility = "visible";  
1534 - cp.set_response_type("JSON");  
1535 - cp.call(p, "alteraclasse", fim);  
1536 - } catch (e) {  
1537 - i3GEO.janela.tempoMsg("Erro: " + e);  
1538 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1539 - }  
1540 - },  
1541 - /*  
1542 - * Function: valorQ  
1543 - *  
1544 - * Altera a leganda do tema claculando as classes pelo m&eacute;todo quartil  
1545 - *  
1546 - * Veja:  
1547 - *  
1548 - * <ALTERACLASSE>  
1549 - */  
1550 - valorQ : function() {  
1551 - try {  
1552 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1553 - return;  
1554 - }  
1555 - var item = $i("i3GEOlegendaitensValorQuartil").getElementsByTagName("select")[0].value, ext =  
1556 - i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =  
1557 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1558 - + i3GEO.configura.sid  
1559 - + "&funcao=alteraclasse&tema="  
1560 - + i3GEOF.legenda.tema  
1561 - + "&item="  
1562 - + item  
1563 - + "&opcao=quartis&ignorar="  
1564 - + $i("i3GEOlegendaignorar").value  
1565 - + "&ext="  
1566 - + ext  
1567 - + "&tipoLegenda="  
1568 - + $i("estiloClassesQuartis").value, cp = new cpaint(), fim = function() {  
1569 - i3GEOF.legenda.aposAlterarLegenda();  
1570 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1571 - };  
1572 - if (item == "") {  
1573 - i3GEO.janela.tempoMsg($trad('selecionaUmItem', i3GEOF.legenda.dicionario));  
1574 - return;  
1575 - }  
1576 - i3GEOF.legenda.aguarde.visibility = "visible";  
1577 - cp.set_response_type("JSON");  
1578 - cp.call(p, "alteraclasse", fim);  
1579 - } catch (e) {  
1580 - i3GEO.janela.tempoMsg("Erro: " + e);  
1581 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1582 - }  
1583 - },  
1584 - /*  
1585 - * Function: valorQu  
1586 - *  
1587 - * Altera a leganda do tema por meio do calculo de quantis  
1588 - *  
1589 - * Veja:  
1590 - *  
1591 - * <ALTERACLASSE>  
1592 - */  
1593 - valorQu : function() {  
1594 - try {  
1595 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1596 - return;  
1597 - }  
1598 - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses =  
1599 - $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =  
1600 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1601 - + i3GEO.configura.sid  
1602 - + "&funcao=alteraclasse&nclasses="  
1603 - + nclasses  
1604 - + "&tema="  
1605 - + i3GEOF.legenda.tema  
1606 - + "&item="  
1607 - + item  
1608 - + "&opcao=quantil&ignorar="  
1609 - + $i("i3GEOlegendaignorar").value  
1610 - + "&ext="  
1611 - + ext, cp = new cpaint(), fim = function() {  
1612 - i3GEOF.legenda.aposAlterarLegenda();  
1613 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1614 - };  
1615 - if (item == "") {  
1616 - i3GEO.janela.tempoMsg($trad('selecionaUmItem', i3GEOF.legenda.dicionario));  
1617 - return;  
1618 - }  
1619 - i3GEOF.legenda.aguarde.visibility = "visible";  
1620 - cp.set_response_type("JSON");  
1621 - cp.call(p, "alteraclasse", fim);  
1622 - } catch (e) {  
1623 - i3GEO.janela.tempoMsg("Erro: " + e);  
1624 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1625 - }  
1626 - },  
1627 - /*  
1628 - * Function: valorQN  
1629 - *  
1630 - * Altera a legenda do tema por meio do calculo de quebras naturais  
1631 - *  
1632 - * Veja:  
1633 - *  
1634 - * <ALTERACLASSE>  
1635 - */  
1636 - valorQN : function() {  
1637 - try {  
1638 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1639 - return;  
1640 - }  
1641 - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses =  
1642 - $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =  
1643 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1644 - + i3GEO.configura.sid  
1645 - + "&funcao=alteraclasse&nclasses="  
1646 - + nclasses  
1647 - + "&tema="  
1648 - + i3GEOF.legenda.tema  
1649 - + "&item="  
1650 - + item  
1651 - + "&opcao=quebrasnaturais&ignorar="  
1652 - + $i("i3GEOlegendaignorar").value  
1653 - + "&ext="  
1654 - + ext, cp = new cpaint(), fim = function() {  
1655 - i3GEOF.legenda.aposAlterarLegenda();  
1656 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1657 - };  
1658 - if (item == "") {  
1659 - i3GEO.janela.tempoMsg($trad('selecionaUmItem', i3GEOF.legenda.dicionario));  
1660 - return;  
1661 - }  
1662 - i3GEOF.legenda.aguarde.visibility = "visible";  
1663 - cp.set_response_type("JSON");  
1664 - cp.call(p, "alteraclasse", fim);  
1665 - } catch (e) {  
1666 - i3GEO.janela.tempoMsg("Erro: " + e);  
1667 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1668 - }  
1669 - },  
1670 -  
1671 - /*  
1672 - * Function: representacao  
1673 - *  
1674 - * Altera o tipo de representa&ccedil;&atilde;o do tema (linear ou poligonoal)  
1675 - *  
1676 - * Veja:  
1677 - *  
1678 - * <ALTERAREPRESENTACAO>  
1679 - *  
1680 - */  
1681 - representacao : function() {  
1682 - try {  
1683 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1684 - return;  
1685 - }  
1686 - var p =  
1687 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1688 - + i3GEO.configura.sid  
1689 - + "&funcao=alterarepresentacao&tema="  
1690 - + i3GEOF.legenda.tema, cp = new cpaint(), fim = function() {  
1691 - i3GEOF.legenda.aposAlterarLegenda();  
1692 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1693 - };  
1694 - i3GEOF.legenda.aguarde.visibility = "visible";  
1695 - cp.set_response_type("JSON");  
1696 - cp.call(p, "alteraRepresentacao", fim);  
1697 - } catch (e) {  
1698 - i3GEO.janela.tempoMsg("Erro: " + e);  
1699 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1700 - }  
1701 - },  
1702 - /*  
1703 - * Function: montaEditor  
1704 - *  
1705 - * Monta o editor de s&iacute;mbolos quando o usu&aacute;rio clica em um s&iacute;mbolo na legenda  
1706 - */  
1707 - montaEditor : function(retorno) {  
1708 - try {  
1709 - i3GEO.util.comboItens("i3GEOlegendaSelItemLabel", i3GEOF.legenda.tema, function(retorno) {  
1710 - if ($i("i3GEOlegendaitensLabel")) {  
1711 - $i("i3GEOlegendaitensLabel").innerHTML = retorno.dados;  
1712 - }  
1713 - }, "i3GEOlegendaitensLabel");  
1714 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1715 - return;  
1716 - }  
1717 - i3GEOF.legenda.aguarde.visibility = "visible";  
1718 - if (retorno.data != undefined) {  
1719 - var b, l, i, sct, combo, n;  
1720 - retorno = retorno.data;  
1721 - i3GEOF.legenda.estilos = retorno.split("|");  
1722 - combo =  
1723 - "<div class=styled-select style=width:100px ><select id='i3GEOlegendaestilos' onchange=i3GEOF.legenda.mostraEstilo(this.value)>";  
1724 - n = i3GEOF.legenda.estilos.length;  
1725 - for (i = 0; i < n; i++) {  
1726 - l = i3GEOF.legenda.estilos[i].split("#");  
1727 - sct = "<option value=" + l[1] + " />" + l[1] + "</option>";  
1728 - combo += sct;  
1729 - }  
1730 - combo += "</select></div>";  
1731 - $i("i3GEOlegendacomboestilos").innerHTML =  
1732 - "<table class='lista5'><tr><td><span class=paragrafo >" + $trad('estiloEdicao', i3GEOF.legenda.dicionario)  
1733 - + ":</span></td><td>"  
1734 - + combo  
1735 - + "</td><td></td></tr></table>&nbsp;(ap&oacute;s adicionar ou excluir, aplique a altera&ccedil;&atilde;o)<br>";  
1736 - b =  
1737 - new YAHOO.widget.Button("i3GEOlegendabotao11", {  
1738 - onclick : {  
1739 - fn : function() {  
1740 - try {  
1741 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1742 - return;  
1743 - }  
1744 - i3GEOF.legenda.aguarde.visibility = "visible";  
1745 - var p =  
1746 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1747 - + i3GEO.configura.sid  
1748 - + "&funcao=editasimbolo&opcao=excluiestilo&tema="  
1749 - + i3GEOF.legenda.tema  
1750 - + "&classe="  
1751 - + i3GEOF.legenda.classe  
1752 - + "&estilo="  
1753 - + i3GEOF.legenda.estilo, cp = new cpaint();  
1754 - cp.set_response_type("JSON");  
1755 - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);  
1756 - } catch (e) {  
1757 - i3GEO.janela.tempoMsg("Erro: " + e);  
1758 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1759 - }  
1760 - }  
1761 - }  
1762 - });  
1763 - b.addClass("rodar100");  
1764 - b =  
1765 - new YAHOO.widget.Button("i3GEOlegendabotao12", {  
1766 - onclick : {  
1767 - fn : function() {  
1768 - try {  
1769 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1770 - return;  
1771 - }  
1772 - i3GEOF.legenda.aguarde.visibility = "visible";  
1773 - var p =  
1774 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1775 - + i3GEO.configura.sid  
1776 - + "&funcao=editasimbolo&opcao=adicionaestilo&tema="  
1777 - + i3GEOF.legenda.tema  
1778 - + "&classe="  
1779 - + i3GEOF.legenda.classe  
1780 - + "&estilo="  
1781 - + i3GEOF.legenda.estilo, cp = new cpaint();  
1782 - cp.set_response_type("JSON");  
1783 - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);  
1784 - } catch (e) {  
1785 - i3GEO.janela.tempoMsg("Erro: " + e);  
1786 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1787 - }  
1788 - }  
1789 - }  
1790 - });  
1791 - b.addClass("rodar100");  
1792 - b =  
1793 - new YAHOO.widget.Button("i3GEOlegendabotao13", {  
1794 - onclick : {  
1795 - fn : function() {  
1796 - try {  
1797 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1798 - return;  
1799 - }  
1800 - i3GEOF.legenda.aguarde.visibility = "visible";  
1801 - var p =  
1802 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1803 - + i3GEO.configura.sid  
1804 - + "&funcao=editasimbolo&opcao=sobeestilo&tema="  
1805 - + i3GEOF.legenda.tema  
1806 - + "&classe="  
1807 - + i3GEOF.legenda.classe  
1808 - + "&estilo="  
1809 - + i3GEOF.legenda.estilo, cp = new cpaint();  
1810 - cp.set_response_type("JSON");  
1811 - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);  
1812 - } catch (e) {  
1813 - i3GEO.janela.tempoMsg("Erro: " + e);  
1814 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1815 - }  
1816 - }  
1817 - }  
1818 - });  
1819 - b.addClass("rodar100");  
1820 - b =  
1821 - new YAHOO.widget.Button("i3GEOlegendabotao14", {  
1822 - onclick : {  
1823 - fn : function() {  
1824 - try {  
1825 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
1826 - return;  
1827 - }  
1828 - i3GEOF.legenda.aguarde.visibility = "visible";  
1829 - var p =  
1830 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
1831 - + i3GEO.configura.sid  
1832 - + "&funcao=editasimbolo&opcao=desceestilo&tema="  
1833 - + i3GEOF.legenda.tema  
1834 - + "&classe="  
1835 - + i3GEOF.legenda.classe  
1836 - + "&estilo="  
1837 - + i3GEOF.legenda.estilo, cp = new cpaint();  
1838 - cp.set_response_type("JSON");  
1839 - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);  
1840 - } catch (e) {  
1841 - i3GEO.janela.tempoMsg("Erro: " + e);  
1842 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1843 - }  
1844 - }  
1845 - }  
1846 - });  
1847 - b.addClass("rodar100");  
1848 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1849 - i3GEOF.legenda.mostraEstilo(0);  
1850 - } else {  
1851 - $i("i3GEOlegendacomboestilos").innerHTML = "<p style=color:red >Erro<br>";  
1852 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1853 - }  
1854 - } catch (e) {  
1855 - i3GEO.janela.tempoMsg("Erro: " + e);  
1856 - i3GEOF.legenda.aguarde.visibility = "hidden";  
1857 - }  
1858 - },  
1859 - /*  
1860 - * Function: mostraEstilo  
1861 - *  
1862 - * Mostra as propriedades de um estilo de um s&iacute;mbolo  
1863 - */  
1864 - mostraEstilo : function(e) {  
1865 - i3GEOF.legenda.aguarde.visibility = "visible";  
1866 - try {  
1867 - var linha, tipoLayer, d, p, cp;  
1868 - i3GEOF.legenda.estilo = e; // esta e uma variavel global  
1869 - linha = i3GEOF.legenda.estilos[i3GEOF.legenda.estilo];  
1870 - linha = linha.split("#");  
1871 - tipoLayer = linha[0];  
1872 - d =  
1873 - "<img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"outlinecolor\",\"i3GEOlegendaoutlinecolor\")' title='" + $trad(  
1874 - 'aplicatodos',  
1875 - i3GEOF.legenda.dicionario)  
1876 - + "' src='"  
1877 - + i3GEO.configura.locaplic  
1878 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1879 - + "<p class='paragrafo'>Cor do contorno:</p>"  
1880 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1881 - + "<div class='i3geoForm i3geoFormIconeAquarela' >"  
1882 - + "<input type=text value='"  
1883 - + linha[2]  
1884 - + "' id='i3GEOlegendaoutlinecolor' />"  
1885 - + "</div></form>"  
1886 -  
1887 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"color\",\"i3GEOlegendacolor\")' title='"  
1888 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
1889 - + "' src='"  
1890 - + i3GEO.configura.locaplic  
1891 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1892 - + "<p class='paragrafo'>"  
1893 - + $trad('corFrente', i3GEOF.legenda.dicionario)  
1894 - + ":</p>"  
1895 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1896 - + "<div class='i3geoForm i3geoFormIconeAquarela' >"  
1897 - + "<input type=text value='"  
1898 - + linha[4]  
1899 - + "' id='i3GEOlegendacolor' />"  
1900 - + "</div></form>"  
1901 -  
1902 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"backgroundcolor\",\"i3GEOlegendabackgroundcolor\")' title='"  
1903 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
1904 - + "' src='"  
1905 - + i3GEO.configura.locaplic  
1906 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1907 - + "<p class='paragrafo'>"  
1908 - + $trad('corFundo', i3GEOF.legenda.dicionario)  
1909 - + ":</p>"  
1910 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1911 - + "<div class='i3geoForm i3geoFormIconeAquarela' >"  
1912 - + "<input type=text value='"  
1913 - + linha[3]  
1914 - + "' id='i3GEOlegendabackgroundcolor' />"  
1915 - + "</div></form>"  
1916 -  
1917 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"size\",\"i3GEOlegendasizes\")' title='"  
1918 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
1919 - + "' src='"  
1920 - + i3GEO.configura.locaplic  
1921 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1922 - + "<p class='paragrafo'>"  
1923 - + $trad('tamanhoEspacamento', i3GEOF.legenda.dicionario)  
1924 - + ":</p>"  
1925 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
1926 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1927 - + "<input type=text value='"  
1928 - + linha[6]  
1929 - + "' id='i3GEOlegendasizes' />"  
1930 - + "</form></div>"  
1931 - + "<div class='styled-select' id='i3GEOlegendaComboSize'></div>"  
1932 -  
1933 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"width\",\"i3GEOlegendawidth\")' title='"  
1934 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
1935 - + "' src='"  
1936 - + i3GEO.configura.locaplic  
1937 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1938 - + "<p class='paragrafo'>"  
1939 - + $trad('espessura', i3GEOF.legenda.dicionario)  
1940 - + ":<p>"  
1941 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
1942 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1943 - + "<input type=text value='"  
1944 - + linha[8]  
1945 - + "' id='i3GEOlegendawidth' />"  
1946 - + "</form></div>"  
1947 -  
1948 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"pattern\",\"i3GEOlegendapattern\")' title='"  
1949 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
1950 - + "' src='"  
1951 - + i3GEO.configura.locaplic  
1952 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1953 - + "<p class='paragrafo'>"  
1954 - + $trad('padraoRepeticao', i3GEOF.legenda.dicionario)  
1955 - + ":</p>"  
1956 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
1957 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1958 - + "<input type=text value='"  
1959 - + linha[9]  
1960 - + "' id='i3GEOlegendapattern' />"  
1961 - + "</form></div>"  
1962 -  
1963 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"opacity\",\"i3GEOlegendaopacidade\")' title='"  
1964 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
1965 - + "' src='"  
1966 - + i3GEO.configura.locaplic  
1967 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1968 - + "<p class='paragrafo'>"  
1969 - + $trad('opacidade', i3GEOF.legenda.dicionario)  
1970 - + ":</p>"  
1971 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
1972 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1973 - + "<input type=text value='"  
1974 - + linha[7]  
1975 - + "' id='i3GEOlegendaopacidade' />"  
1976 - + "</form></div>"  
1977 -  
1978 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"angle\",\"i3GEOlegendaangulo\")' title='"  
1979 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
1980 - + "' src='"  
1981 - + i3GEO.configura.locaplic  
1982 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
1983 - + "<p class='paragrafo'>"  
1984 - + $trad('angulo', i3GEOF.legenda.dicionario)  
1985 - + ":</p>"  
1986 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
1987 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1988 - + "<input type=text value='"  
1989 - + linha[10]  
1990 - + "' id='i3GEOlegendaangulo' />"  
1991 - + "</form></div>"  
1992 -  
1993 - + "<br>"  
1994 - + "<p class='paragrafo'>"  
1995 - + $trad('symbolscale', i3GEOF.legenda.dicionario)  
1996 - + ":</p>"  
1997 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
1998 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
1999 - + "<input type=text value='"  
2000 - + linha[11]  
2001 - + "' id='i3GEOlegendasymbolscale' />"  
2002 - + "</form></div>"  
2003 -  
2004 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"minsize\",\"i3GEOlegendaminsize\")' title='"  
2005 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
2006 - + "' src='"  
2007 - + i3GEO.configura.locaplic  
2008 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
2009 - + "<p class='paragrafo'>"  
2010 - + $trad('minsize', i3GEOF.legenda.dicionario)  
2011 - + ":</p>"  
2012 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
2013 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
2014 - + "<input type=text value='"  
2015 - + linha[12]  
2016 - + "' id='i3GEOlegendaminsize' />"  
2017 - + "</form></div>"  
2018 -  
2019 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"maxsize\",\"i3GEOlegendamaxsize\")' title='"  
2020 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
2021 - + "' src='"  
2022 - + i3GEO.configura.locaplic  
2023 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
2024 - + "<p class='paragrafo'>"  
2025 - + $trad('maxsize', i3GEOF.legenda.dicionario)  
2026 - + ":</p>"  
2027 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
2028 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
2029 - + "<input type=text value='"  
2030 - + linha[13]  
2031 - + "' id='i3GEOlegendamaxsize' />"  
2032 - + "</form></div>"  
2033 -  
2034 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"offsetx\",\"i3GEOlegendaoffsetx\")' title='"  
2035 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
2036 - + "' src='"  
2037 - + i3GEO.configura.locaplic  
2038 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
2039 - + "<p class='paragrafo'>"  
2040 - + $trad('offsetx', i3GEOF.legenda.dicionario)  
2041 - + ":</p>"  
2042 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
2043 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
2044 - + "<input type=text value='"  
2045 - + linha[14]  
2046 - + "' id='i3GEOlegendaoffsetx' />"  
2047 - + "</form></div>"  
2048 -  
2049 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"offsety\",\"i3GEOlegendaoffsety\")' title='"  
2050 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
2051 - + "' src='"  
2052 - + i3GEO.configura.locaplic  
2053 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
2054 - + "<p class='paragrafo'>"  
2055 - + $trad('offsety', i3GEOF.legenda.dicionario)  
2056 - + ":</p>"  
2057 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
2058 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
2059 - + "<input type=text value='"  
2060 - + linha[15]  
2061 - + "' id='i3GEOlegendaoffsety' />"  
2062 - + "</form></div>"  
2063 -  
2064 - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"symbolname\",\"i3GEOlegendasymbolname\")' title='"  
2065 - + $trad('aplicatodos', i3GEOF.legenda.dicionario)  
2066 - + "' src='"  
2067 - + i3GEO.configura.locaplic  
2068 - + "/imagens/oxygen/16x16/tools-wizard.png' />"  
2069 - + "<p class='paragrafo'>"  
2070 - + $trad('simbolo', i3GEOF.legenda.dicionario)  
2071 - + ":</p>"  
2072 - + "<div class='i3geoForm i3geoFormIconeEdita' >"  
2073 - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"  
2074 - + "<input type=text value='"  
2075 - + linha[5]  
2076 - + "' id='i3GEOlegendasymbolname' />"  
2077 - + "</form></div>";  
2078 -  
2079 - $i("i3GEOlegendaParametrosEstilos").innerHTML = d;  
2080 - //preenche as listas de itens  
2081 - i3GEO.util.comboItens("", i3GEOF.legenda.tema, function(retorno) {  
2082 - if ($i("i3GEOlegendaComboSize")) {  
2083 - $i("i3GEOlegendaComboSize").innerHTML = retorno.dados.replace("id=''"," onchange='$i(\"i3GEOlegendasizes\").value = this.value'");  
2084 - }  
2085 - });  
2086 -  
2087 - i3GEO.util.aplicaAquarela("i3GEOlegendaParametrosEstilos");  
2088 - p =  
2089 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
2090 - + i3GEO.configura.sid  
2091 - + "&funcao=editasimbolo&tipo="  
2092 - + tipoLayer  
2093 - + "&opcao=listaSimbolos&onclick=i3GEOF.legenda.aplicaSimbolo(this)";  
2094 - cp = new cpaint();  
2095 - cp.set_response_type("JSON");  
2096 - cp.call(p, "editasimbolo", i3GEOF.legenda.listaSimbolos);  
2097 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2098 - } catch (e) {  
2099 - i3GEO.janela.tempoMsg("Erro: " + e);  
2100 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2101 - }  
2102 - },  
2103 - /*  
2104 - * Function: listaSimbolos  
2105 - *  
2106 - * Monta a lista de s&iacute;mbolos com imagem  
2107 - */  
2108 - listaSimbolos : function(retorno) {  
2109 - i3GEOF.legenda.aguarde.visibility = "visible";  
2110 - try {  
2111 - if (retorno.data != undefined) {  
2112 - retorno = retorno.data;  
2113 - $i("i3GEOlegendasimbolos").innerHTML =  
2114 - "<br>" + $trad('listaSimbolo', i3GEOF.legenda.dicionario) + ":<br><br>" + retorno;  
2115 - } else {  
2116 - $i("i3GEOlegendasimbolos").innerHTML = "<p style=color:red >Erro<br>";  
2117 - }  
2118 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2119 - } catch (e) {  
2120 - i3GEO.janela.tempoMsg("Erro: " + e);  
2121 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2122 - }  
2123 - },  
2124 - /*  
2125 - * Function: aplicaSimbolo  
2126 - *  
2127 - * Muda o valor do campo com o c&oacute;digo do s&iacute;mbolo escolhido  
2128 - */  
2129 - aplicaSimbolo : function(s) {  
2130 - $i("i3GEOlegendasymbolname").value = s.title;  
2131 - },  
2132 - /*  
2133 - * Function: aplicaEstilo  
2134 - *  
2135 - * Aplica ao estilo as propriedades definidas  
2136 - *  
2137 - * Veja:  
2138 - *  
2139 - * <EDITASIMBOLO>  
2140 - */  
2141 - aplicaEstilo : function() {  
2142 - try {  
2143 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
2144 - return;  
2145 - }  
2146 - i3GEOF.legenda.aguarde.visibility = "visible";  
2147 - var i, p, cp, fim, outlinecolor = $i("i3GEOlegendaoutlinecolor").value, backgroundcolor =  
2148 - $i("i3GEOlegendabackgroundcolor").value, color = $i("i3GEOlegendacolor").value, symbolname =  
2149 - $i("i3GEOlegendasymbolname").value, simbolos = $i("i3GEOlegendasimbolos").getElementsByTagName("img"), valido = "nao", n =  
2150 - simbolos.length, size = $i("i3GEOlegendasizes").value, width = $i("i3GEOlegendawidth").value, pattern =  
2151 - $i("i3GEOlegendapattern").value, opacidade = $i("i3GEOlegendaopacidade").value, angle = $i("i3GEOlegendaangulo").value, symbolscale =  
2152 - $i("i3GEOlegendasymbolscale").value, minsize = $i("i3GEOlegendaminsize").value, maxsize =  
2153 - $i("i3GEOlegendamaxsize").value, offsetx = $i("i3GEOlegendaoffsetx").value, offsety = $i("i3GEOlegendaoffsety").value;  
2154 - if (symbolscale != "") {  
2155 - symbolscale = parseInt(symbolscale, 10);  
2156 - } else {  
2157 - symbolscale = -1;  
2158 - }  
2159 - for (i = 0; i < n; i++) {  
2160 - if (simbolos[i].title == symbolname || symbolname == i) {  
2161 - valido = "sim";  
2162 - }  
2163 - }  
2164 - if (valido === "nao") {  
2165 - // i3GEO.janela.tempoMsg("Nome do simbolo nao encontrado");  
2166 - // i3GEOF.legenda.aguarde.visibility = "hidden";  
2167 - // return;  
2168 - }  
2169 - p =  
2170 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
2171 - + i3GEO.configura.sid  
2172 - + "&funcao=editasimbolo&opcao=aplica&tema="  
2173 - + i3GEOF.legenda.tema  
2174 - + "&classe="  
2175 - + i3GEOF.legenda.classe  
2176 - + "&estilo="  
2177 - + i3GEOF.legenda.estilo  
2178 - + "&outlinecolor="  
2179 - + outlinecolor  
2180 - + "&backgroundcolor="  
2181 - + backgroundcolor  
2182 - + "&color="  
2183 - + color  
2184 - + "&symbolname="  
2185 - + symbolname  
2186 - + "&width="  
2187 - + width  
2188 - + "&pattern="  
2189 - + pattern  
2190 - + "&size="  
2191 - + size  
2192 - + "&opacidade="  
2193 - + opacidade  
2194 - + "&angle="  
2195 - + angle  
2196 - + "&symbolscale="  
2197 - + symbolscale  
2198 - + "&minsize="  
2199 - + minsize  
2200 - + "&maxsize="  
2201 - + maxsize  
2202 - + "&offsetx="  
2203 - + offsetx  
2204 - + "&offsety="  
2205 - + offsety;  
2206 - cp = new cpaint();  
2207 - fim = function() {  
2208 - i3GEOF.legenda.aposAlterarLegenda();  
2209 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2210 - i3GEOF.legenda.reMontaEditor();  
2211 - };  
2212 - // cp.set_debug(2)  
2213 - cp.set_response_type("JSON");  
2214 - cp.call(p, "editasimbolo", fim);  
2215 - } catch (e) {  
2216 - i3GEO.janela.tempoMsg("Erro: " + e);  
2217 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2218 - }  
2219 - },  
2220 - /*  
2221 - * Function: reMontaEditor  
2222 - *  
2223 - * Gera novamente o editor de s&iacute;mbolo ap&oacute;s ter sido feita alguma altera&ccedil;&atilde;o nos estilos  
2224 - */  
2225 - reMontaEditor : function() {  
2226 - var id = i3GEOF.legenda.tema + "-" + i3GEOF.legenda.classe;  
2227 - i3GEOF.legenda.editaSimbolo(id);  
2228 - },  
2229 - /*  
2230 - * Function: mostraGrafico  
2231 - *  
2232 - * Mostra um gr&aacute;fico com a contegem de elementos em caada classe  
2233 - *  
2234 - * Veja:  
2235 - *  
2236 - * <CONTAGEMCLASSE>  
2237 - */  
2238 - mostraGrafico : function() {  
2239 - try {  
2240 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
2241 - return;  
2242 - }  
2243 - i3GEOF.legenda.aguarde.visibility = "visible";  
2244 - var monta =  
2245 - function(retorno) {  
2246 - if (retorno.data && retorno.data[0].proc == "") {  
2247 - var b, ins = [], i, re, t;  
2248 - ins.push("<p class='paragrafo' ><input type=button value='" + $trad('graficoPizza', i3GEOF.legenda.dicionario)  
2249 - + "' id=i3GEOlegendaGraficoPizza /></p>");  
2250 - ins.push("<p class='paragrafo' >" + $trad('numeroOcorrenciasClasses', i3GEOF.legenda.dicionario) + "</p>");  
2251 - ins.push("<table width=100% >");  
2252 - i3GEOF.legenda.dadosGrafico = [  
2253 - "n;x"  
2254 - ];  
2255 - if (retorno.data.length < 2) {  
2256 - i3GEO.janela.tempoMsg($trad('msgNumeroClasses', i3GEOF.legenda.dicionario));  
2257 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2258 - return;  
2259 - } else {  
2260 - i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia4", "i3GEOlegendaguia");  
2261 - }  
2262 - for (i = 0; i < retorno.data.length; i++) {  
2263 - id = retorno.data[i].tema + "-" + retorno.data[i].idclasse; // layer+indice da classe  
2264 - re = new RegExp("'", "g");  
2265 - exp = (retorno.data[i].expressao).replace(re, '"');  
2266 - ins.push("<tr><td style='text-align:left;border-bottom:0 none white' >" + retorno.data[i].nomeclasse  
2267 - + "</td></tr>");  
2268 - t = (retorno.data[i].nreg * 100) / retorno.data[i].totalreg;  
2269 - ins.push("<tr><td style=text-align:left ><img height=15px width=" + t  
2270 - + "% src='"  
2271 - + retorno.data[i].imagem  
2272 - + "' /></td></tr>");  
2273 - i3GEOF.legenda.dadosGrafico.push(retorno.data[i].nomeclasse + ";" + retorno.data[i].nreg);  
2274 - }  
2275 - ins.push("</table><br>");  
2276 - $i("i3GEOlegendaguia4obj").innerHTML = ins.join("");  
2277 - } else {  
2278 - $i("i3GEOlegendaguia4obj").innerHTML = "<p style=color:red >Erro<br>";  
2279 - return;  
2280 - }  
2281 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2282 -  
2283 - b = new YAHOO.widget.Button("i3GEOlegendaGraficoPizza", {  
2284 - onclick : {  
2285 - fn : function() {  
2286 - var js = i3GEO.configura.locaplic + "/ferramentas/graficointerativo1/dependencias.php";  
2287 - i3GEO.util.scriptTag(js, "i3GEOF.legenda.iniciaGraficoPizza()", "i3GEOF.graficointerativo1_script");  
2288 - }  
2289 - }  
2290 - });  
2291 - b.addClass("abrir");  
2292 - }, p =  
2293 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
2294 - + i3GEO.configura.sid  
2295 - + "&funcao=contagemclasse&tema="  
2296 - + i3GEOF.legenda.tema, cp = new cpaint();  
2297 - // cp.set_debug(2)  
2298 - cp.set_response_type("JSON");  
2299 - cp.call(p, "cocontagemclasse", monta);  
2300 - } catch (e) {  
2301 - i3GEO.janela.tempoMsg("Erro: " + e);  
2302 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2303 - }  
2304 - },  
2305 - iniciaGraficoPizza : function() {  
2306 - var dados = {  
2307 - "attributes" : {  
2308 - "id" : ""  
2309 - },  
2310 - "data" : {  
2311 - "dados" : i3GEOF.legenda.dadosGrafico  
2312 - }  
2313 - };  
2314 - i3GEOF.graficointerativo1.tipo = "pizza_1";  
2315 - i3GEOF.graficointerativo1.iniciaJanelaFlutuante(dados);  
2316 - },  
2317 - /*  
2318 - * Function: aplicaProcessos  
2319 - *  
2320 - * Aplica processos de ajuste em imagens de sat&eacute;lite  
2321 - *  
2322 - * Veja:  
2323 - *  
2324 - * <APLICAPROCESSOS>  
2325 - */  
2326 - aplicaProcessos : function() {  
2327 - try {  
2328 - if (i3GEOF.legenda.aguarde.visibility === "visible") {  
2329 - return;  
2330 - }  
2331 - i3GEOF.legenda.aguarde.visibility = "visible";  
2332 - var lista = [], ipt, i, p, cp, temp;  
2333 - if ($i("i3GEOlegendaprocessos").innerHTML != "") {  
2334 - ipt = $i("i3GEOlegendaprocessos").getElementsByTagName("input");  
2335 - for (i = 0; i < ipt.length; i++) {  
2336 - if (ipt[i].value != "") {  
2337 - lista.push(ipt[i].value);  
2338 - }  
2339 - }  
2340 - }  
2341 - lista = lista.join("|");  
2342 - temp = function() {  
2343 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2344 - i3GEOF.legenda.mostralegenda();  
2345 - i3GEOF.legenda.aposAlterarLegenda();  
2346 - };  
2347 - p =  
2348 - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="  
2349 - + i3GEO.configura.sid  
2350 - + "&funcao=aplicaProcessos&lista="  
2351 - + lista  
2352 - + "&tema="  
2353 - + i3GEOF.legenda.tema;  
2354 - cp = new cpaint();  
2355 - cp.set_response_type("JSON");  
2356 - cp.call(p, "aplicaProcessos", temp);  
2357 - } catch (e) {  
2358 - i3GEO.janela.tempoMsg("Erro: " + e);  
2359 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2360 - }  
2361 - },  
2362 - /*  
2363 - * Function: adicionaProcesso  
2364 - *  
2365 - * Adiciona um novo processo na lista de processos  
2366 - */  
2367 - adicionaProcesso : function(s) {  
2368 - $i("i3GEOlegendaprocessos").innerHTML += $inputText("", "", "", "", 50, s.value);  
2369 - },  
2370 - aplicaTodasClasses : function(parametro, id) {  
2371 - var valor = $i(id).value;  
2372 - i3GEO.janela.confirma("Aplica " + parametro + " = " + valor + " ?", 300, $trad("x14"), "", function() {  
2373 - var temp = function() {  
2374 - // i3GEOF.legenda.mostralegenda();  
2375 - i3GEOF.legenda.aposAlterarLegenda();  
2376 - }, p, cp;  
2377 - p =  
2378 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
2379 - + i3GEO.configura.sid  
2380 - + "&funcao=aplicaTodasClasses"  
2381 - + "&parametro="  
2382 - + parametro  
2383 - + "&valor="  
2384 - + valor  
2385 - + "&tema="  
2386 - + i3GEOF.legenda.tema;  
2387 - cp = new cpaint();  
2388 - cp.set_response_type("JSON");  
2389 - cp.call(p, "foo", temp);  
2390 - });  
2391 - },  
2392 - aplicarCluster : function(){  
2393 - var temp = function() {  
2394 - i3GEOF.legenda.aposAlterarLegenda();  
2395 - i3GEOF.legenda.montaCombosItens();  
2396 - }, p, cp;  
2397 - p =  
2398 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
2399 - + i3GEO.configura.sid  
2400 - + "&funcao=aplicarCluster"  
2401 - + "&maxdistance="  
2402 - + $i("i3GEOlegendaClusterMaxdistance").value  
2403 - + "&buffer="  
2404 - + $i("i3GEOlegendaClusterBuffer").value  
2405 - + "&filter="  
2406 - //+ i3GEO.util.base64encode($i("i3GEOlegendaClusterFilter").value)  
2407 - + $i("i3GEOlegendaClusterFilter").value  
2408 - + "&region="  
2409 - + $i("i3GEOlegendaClusterRegion").value  
2410 - + "&group="  
2411 - + $i("i3GEOlegendaitensCluster").getElementsByTagName("select")[0].value  
2412 - + "&tema="  
2413 - + i3GEOF.legenda.tema;  
2414 - cp = new cpaint();  
2415 - cp.set_response_type("JSON");  
2416 - cp.call(p, "foo", temp);  
2417 - },  
2418 - removerCluster : function(){  
2419 - var temp = function() {  
2420 - i3GEOF.legenda.montaCombosItens();  
2421 - i3GEOF.legenda.aposAlterarLegenda();  
2422 - }, p, cp;  
2423 - p =  
2424 - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="  
2425 - + i3GEO.configura.sid  
2426 - + "&funcao=removerCluster"  
2427 - + "&tema="  
2428 - + i3GEOF.legenda.tema;  
2429 - cp = new cpaint();  
2430 - cp.set_response_type("JSON");  
2431 - cp.call(p, "foo", temp);  
2432 - },  
2433 - montaCombosItens : function(){  
2434 - i3GEO.util.comboItens("", i3GEOF.legenda.tema, function(retorno) {  
2435 - if ($i("i3GEOlegendaitensValorUnico")) {  
2436 - $i("i3GEOlegendaitensValorUnico").innerHTML = retorno.dados;  
2437 - }  
2438 - if ($i("i3GEOlegendaClassesValorUnico")) {  
2439 - $i("i3GEOlegendaClassesValorUnico").innerHTML = retorno.dados;  
2440 - }  
2441 - if ($i("i3GEOlegendaitensMetade")) {  
2442 - $i("i3GEOlegendaitensMetade").innerHTML = retorno.dados;  
2443 - }  
2444 - if ($i("i3GEOlegendaitensMetadeId")) {  
2445 - $i("i3GEOlegendaitensMetadeId").innerHTML = retorno.dados;  
2446 - }  
2447 - if ($i("i3GEOlegendaitensMedia")) {  
2448 - $i("i3GEOlegendaitensMedia").innerHTML = retorno.dados;  
2449 - }  
2450 - if ($i("i3GEOlegendaitensValorClass")) {  
2451 - $i("i3GEOlegendaitensValorClass").innerHTML = retorno.dados;  
2452 - }  
2453 - if ($i("i3GEOlegendaitensCluster")) {  
2454 - $i("i3GEOlegendaitensCluster").innerHTML = retorno.dados;  
2455 - }  
2456 - if ($i("i3GEOlegendaitensValorQuartil")) {  
2457 - $i("i3GEOlegendaitensValorQuartil").innerHTML = retorno.dados;  
2458 - }  
2459 - });  
2460 - },  
2461 - parametrosAuto : function() {  
2462 - i3GEOF.legenda.aguarde.visibility = "visible";  
2463 - var p = i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=parametrosauto&tema=" + i3GEOF.legenda.tema,  
2464 - cp = new cpaint(),  
2465 - temp = function(retorno){  
2466 - try{  
2467 - if(retorno.data !== ""){  
2468 - $i("i3GEOlegendaAutocolunas").innerHTML = retorno.data.colunas;  
2469 - $i("i3GEOlegendaAutoclassesitem").value = retorno.data.classesitem;  
2470 - $i("i3GEOlegendaAutoclassesnome").value = retorno.data.classesnome;  
2471 - $i("i3GEOlegendaAutoclassescor").value = retorno.data.classescor;  
2472 - $i("i3GEOlegendaAutoclassessimbolo").value = retorno.data.classessimbolo;  
2473 - $i("i3GEOlegendaAutoclassestamanho").value = retorno.data.classestamanho;  
2474 - $i("i3GEOlegendaAutopalletefile").value = retorno.data.palletefile;  
2475 - $i("i3GEOlegendaAutopalletestep").value = retorno.data.palletestep;  
2476 - }  
2477 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2478 - }catch(e){  
2479 - i3GEO.janela.tempoMsg("Erro. "+e);  
2480 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2481 - }  
2482 - };  
2483 - cp.set_response_type("JSON");  
2484 - cp.call(p,"foo",temp);  
2485 - },  
2486 - salvaParametrosAuto: function(){  
2487 - if(i3GEOF.legenda.aguarde.visibility === "visible"){  
2488 - return;  
2489 - }  
2490 - i3GEOF.legenda.aguarde.visibility = "visible";  
2491 - var temp,  
2492 - p,  
2493 - cp;  
2494 - temp = function(){  
2495 - i3GEOF.legenda.aguarde.visibility = "hidden";  
2496 - i3GEOF.legenda.aposAlterarLegenda();  
2497 - };  
2498 - p = i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=salvaparametrosauto&tema=" + i3GEOF.legenda.tema  
2499 - + "&classesitem=" + $i("i3GEOlegendaAutoclassesitem").value  
2500 - + "&classesnome=" + $i("i3GEOlegendaAutoclassesnome").value  
2501 - + "&classescor=" + $i("i3GEOlegendaAutoclassescor").value  
2502 - + "&classessimbolo=" + $i("i3GEOlegendaAutoclassessimbolo").value  
2503 - + "&classestamanho=" + $i("i3GEOlegendaAutoclassestamanho").value  
2504 - + "&palletefile=" + $i("i3GEOlegendaAutopalletefile").value  
2505 - + "&palletestep=" + $i("i3GEOlegendaAutopalletestep").value;  
2506 -  
2507 - cp = new cpaint();  
2508 - cp.set_response_type("JSON");  
2509 - cp.call(p,"foo",temp);  
2510 - }  
2511 - };  
2512 \ No newline at end of file 0 \ No newline at end of file
ferramentas/legendax/template_mst.html
@@ -1,411 +0,0 @@ @@ -1,411 +0,0 @@
1 -<div class='yui-navset' style='top: 0px; cursor: pointer; left: 0px;'>  
2 - <ul class='yui-nav' style='border-width: 0pt 0pt 0px; border-color: rgb(240, 240, 240); border-bottom-color: white;'>  
3 - <li>  
4 - <div id='i3GEOlegendaguia6' style='text-align: center; left: 0px;'>  
5 - <a>  
6 - <em><img class='ticPropriedades2' style='height: 14px' title='{{{propriedades}}}' src='{{{locaplic}}}/imagens/branco.gif'> </em>  
7 - </a>  
8 - </div>  
9 - </li>  
10 - <li>  
11 - <div id='i3GEOlegendaguia1' style='text-align: center; left: 0px;'>  
12 - <a>  
13 - <em>{{{legenda}}}</em>  
14 - </a>  
15 - </div>  
16 - </li>  
17 - <li>  
18 - <div id='i3GEOlegendaguia2' style='text-align: center; left: 0px;'>  
19 - <a>  
20 - <em>{{{classes}}}</em>  
21 - </a>  
22 - </div>  
23 -  
24 - </li>  
25 - <li>  
26 - <div id='i3GEOlegendaguia3' style='text-align: center; left: 0px;'>  
27 - <a>  
28 - <em>{{{editor}}}</em>  
29 - </a>  
30 - </div>  
31 - </li>  
32 - <li>  
33 - <div id='i3GEOlegendaguia4' style='text-align: center; left: 0px;'>  
34 - <a>  
35 - <em>{{{graficos}}}</em>  
36 - </a>  
37 - </div>  
38 - </li>  
39 - <li>  
40 - <div id='i3GEOlegendaguia5' style='text-align: center; left: 0px;'>  
41 - <a>  
42 - <em>{{{importaExportaSLD}}}</em>  
43 - </a>  
44 - </div>  
45 - </li>  
46 - <li>  
47 - <div id='i3GEOlegendaguia7' style='text-align: center; left: 0px;'>  
48 - <a>  
49 - <em>{{{cluster}}}</em>  
50 - </a>  
51 - </div>  
52 - </li>  
53 - <li>  
54 - <div id='i3GEOlegendaguia8' style='text-align: center; left: 0px;'>  
55 - <a>  
56 - <em>Auto</em>  
57 - </a>  
58 - </div>  
59 - </li>  
60 - </ul>  
61 -</div>  
62 -<br>  
63 -<div id='i3GEOlegendaguia8obj' style='width: 99%; text-align: left;'>  
64 - <p class='paragrafo'>{{{colunasTxt}}}:</p>  
65 - <div id="i3GEOlegendaAutocolunas">  
66 - </div>  
67 - <br>  
68 - <p class='paragrafo'>{{{autoClasses}}}</p>  
69 - <br>  
70 - <p class='paragrafo'>{{{classesitem}}}:</p>  
71 - <div class='styled-select'>  
72 - <input type='text' id='i3GEOlegendaAutoclassesitem' value='' />  
73 - </div>  
74 - <br>  
75 - <p class='paragrafo'>{{{classesnome}}}:</p>  
76 - <div class='styled-select'>  
77 - <input type='text' id='i3GEOlegendaAutoclassesnome' value='' />  
78 - </div>  
79 - <br>  
80 - <p class='paragrafo'>{{{classescor}}}:</p>  
81 - <div class='styled-select'>  
82 - <input type='text' id='i3GEOlegendaAutoclassescor' value='' />  
83 - </div>  
84 - <br>  
85 - <p class='paragrafo'>{{{classessimbolo}}}:</p>  
86 - <div class='styled-select'>  
87 - <input type='text' id='i3GEOlegendaAutoclassessimbolo' value='' />  
88 - </div>  
89 - <br>  
90 - <p class='paragrafo'>{{{classestamanho}}}:</p>  
91 - <div class='styled-select'>  
92 - <input type='text' id='i3GEOlegendaAutoclassestamanho' value='' />  
93 - </div>  
94 - <br>  
95 - <p class='paragrafo'>{{{palletefile}}}:</p>  
96 - <div class='styled-select'>  
97 - <input type='text' id='i3GEOlegendaAutopalletefile' value='' />  
98 - </div>  
99 - <br>  
100 - <p class='paragrafo'>{{{palletestep}}}:</p>  
101 - <div class='styled-select'>  
102 - <input type='text' id='i3GEOlegendaAutopalletestep' value='' />  
103 - </div>  
104 - <br>  
105 - <p class='paragrafo'>  
106 - <input id='i3GEOlegendabotaoAplicarAuto' size='35' type='button' value='{{{aplicar}}}'>  
107 - </p>  
108 - <br>  
109 -</div>  
110 -<div id='i3GEOlegendaguia7obj' style='width: 99%; text-align: left;'>  
111 - <p class='paragrafo'>{{{ClusterMaxdistance}}}:</p>  
112 - <div class='i3geoForm i3geoFormIconeNumero'>  
113 - <input type='number' id='i3GEOlegendaClusterMaxdistance' value='5' />  
114 - </div>  
115 - <br>  
116 - <p class='paragrafo'>{{{ClusterBuffer}}}:</p>  
117 - <div class='i3geoForm i3geoFormIconeNumero'>  
118 - <input type='number' id='i3GEOlegendaClusterBuffer' value='0' />  
119 - </div>  
120 - <br>  
121 - <p class='paragrafo'>{{{ClusterFilter}}}:</p>  
122 - <div class='i3geoForm i3geoFormIconeNumero'>  
123 - <input type='text' id='i3GEOlegendaClusterFilter' value='' />  
124 - </div>  
125 - <br>  
126 - <p class='paragrafo'>{{{ClusterRegion}}}</p>  
127 - <div class='styled-select'>  
128 - <select id='i3GEOlegendaClusterRegion'>  
129 - <option value='rectangle'>rectangle</option>  
130 - <option value='ellipse'>ellipse</option>  
131 - </select>  
132 - </div>  
133 - <br>  
134 - <p class='paragrafo'>{{{ClusterGroup}}}</p>  
135 - <div id='i3GEOlegendaitensCluster' class='styled-select'></div>  
136 - <br>  
137 - <p class='paragrafo'>  
138 - <input id='i3GEOlegendabotaoAplicarCluster' size='35' type='button' value='{{{aplicar}}}'>  
139 - </p>  
140 - <br>  
141 - <p class='paragrafo'>  
142 - <input id='i3GEOlegendabotaoRemoverCluster' size='35' type='button' value='{{{remover}}}'>  
143 - </p>  
144 -</div>  
145 -<div id='i3GEOlegendaguia6obj' style='width: 99%; text-align: left;'>  
146 - <p class='paragrafo'>  
147 - &nbsp;  
148 - <input type='checkbox' onclick='' checked id='i3GEOFlegendamostra' style='cursor: pointer; border: 0px solid white;' />  
149 - <span style='cursor: pointer; position: relative; top: -2px;'>{{{mostraClassesLegenda}}}</span>  
150 - </p>  
151 - <br>  
152 - <p class='paragrafo'>{{{legendaImg}}}</p>  
153 - <table summary='' class='lista6'>  
154 - <tr>  
155 - <td>  
156 - <div class="styled-select">  
157 - <input id="i3GEOlegendaImg" value="" type="text">  
158 - </div>  
159 - </td>  
160 - <td>  
161 - <input id='i3GEOlegendabotaoImagemLegenda' type='button' size='15' value='{{{aplica}}}' />  
162 - </td>  
163 - </tr>  
164 - </table>  
165 - <br>  
166 - <p class='paragrafo'>{{{offsite}}}</p>  
167 - <table summary='' class='lista6'>  
168 - <tr>  
169 - <td>  
170 - <div class='i3geoForm100 i3geoFormIconeAquarela'>  
171 - <input type='text' id='i3GEOoffsite' value='-1,-1,-1' />  
172 - </div>  
173 - </td>  
174 - <td>  
175 - <input id='i3GEOlegendabotaoOffsite' type='button' size='15' value='{{{aplica}}}' />  
176 - </td>  
177 - </tr>  
178 - </table>  
179 - <br>  
180 - <p class='paragrafo'>  
181 - <input id='i3GEOlegendabotao3' type='button' value='{{{incluiNumeroOcorrencia}}}' title='{{{incluiNumeroOcorrencia2}}}' />  
182 - </p>  
183 - <p class='paragrafo'>  
184 - <input id='i3GEOlegendabotao15' type='button' value='{{{aplicaOpacidadeVariavel}}}' title='{{{aplicaOpacidade}}}' />  
185 - </p>  
186 - <p class='paragrafo'>  
187 - <input id='i3GEOlegendabotaoRamp' type='button' size='15' value='{{{escolhePaletaCores}}}' title='{{{variaCoresExtremos}}}' />  
188 - </p>  
189 - <div style='margin-left: 5px;'>  
190 - <p class='paragrafo'>{{{geraCores}}}</p>  
191 - <table summary='' class='lista6'>  
192 - <tr>  
193 - <td>{{{de}}}:</td>  
194 - <td>  
195 - <div class='i3geoForm100 i3geoFormIconeAquarela'>  
196 - <input type='text' id='i3GEOlegendaacori' value='0,0,0' />  
197 - </div>  
198 - </td>  
199 - <td>{{{ate}}}:</td>  
200 - <td>  
201 - <div class='i3geoForm100 i3geoFormIconeAquarela'>  
202 - <input type='text' id='i3GEOlegendaacorf' value='255,255,255' />  
203 - </div>  
204 - </td>  
205 - <td>  
206 - <input id='i3GEOlegendabotao4' type='button' size='15' value='{{{aplica}}}' title='{{{aplicaVariaCores}}}' />  
207 - </td>  
208 - </tr>  
209 - </table>  
210 - </div>  
211 -</div>  
212 -<div id='i3GEOlegendaguia1obj' style='width: 99%; text-align: left;'>  
213 - <div style='margin-left: 5px;'>  
214 - <table summary='' class='lista5'>  
215 - <tr>  
216 - <td>  
217 - <p class='paragrafo'>  
218 - <input id='i3GEOlegendabotao1' size='22' type='button' value='{{{aplicaAlteracao}}}' />  
219 - </p>  
220 - </td>  
221 - <td>  
222 - <p class='paragrafo'>  
223 - <input id='i3GEOlegendabotao2' size='22' type='button' value='{{{adicionaClasse}}}' title='{{{adicionaNovaClasse}}}' />  
224 - </p>  
225 - </td>  
226 - </tr>  
227 - </table>  
228 - <br>  
229 - <p class='paragrafo'>{{{clicaSimbolo}}}</p>  
230 - <div id='i3GEOlegendaresultado' style='text-align: left; width: 100%; display: block; left: 0px'></div>  
231 - </div>  
232 -</div>  
233 -<div id='i3GEOlegendaguia2obj' style='width: 99%; text-align: left;'>  
234 - <div style='margin-left: 5px;'>  
235 - <div id='i3GEOFlegendaClassesOpcionais'>  
236 - <fieldset style='padding: 5px; margin: 2px;'>  
237 - <p class='paragrafo'>  
238 - &nbsp;  
239 - <input type='checkbox' onclick='' checked id='i3GEOFlegendaaplicaextent' style='cursor: pointer; border: 0px solid white;' />  
240 - <span style='cursor: pointer; position: relative; top: -2px;left: 2px;'>{{{consideraElementosVisisveis}}}</span>  
241 - </p>  
242 - <p class='paragrafo'>{{{ignoraValores}}}:</p>  
243 - <div class='styled-select'>  
244 - <input type='text' id='i3GEOlegendaignorar' value='' />  
245 - </div>  
246 - </fieldset>  
247 - <br>  
248 - <fieldset style='padding: 5px; margin: 2px;'>  
249 - <legend>{{{alteraGeom}}}</legend>  
250 - <p class='paragrafo'>{{{transformaGeom}}}</p>  
251 - <div class='styled-select'>  
252 - <select id='i3GEOlegentaTipoGeo'>  
253 - <option value=''>{{{semTransformacao}}}</option>  
254 - <option value='centroid'>{{{centroide}}}</option>  
255 - <option value='bbox'>box</option>  
256 - <option value='vertices'>{{{vertices}}}</option>  
257 - <option value='start'>{{{verticeInicial}}}</option>  
258 - <option value='end'>{{{verticeFinal}}}</option>  
259 - </select>  
260 - </div>  
261 - <br>  
262 - <p class='paragrafo'>  
263 - <input id='i3GEOlegendabotao17' size='35' type='button' value='{{{aplicar}}}'>  
264 - </p>  
265 - </fieldset>  
266 - <br>  
267 - <fieldset style='padding: 5px; margin: 2px;'>  
268 - <legend>{{{alteraTipo}}}</legend>  
269 - <p class='paragrafo'>{{{alteraTipoGeom}}}</p>  
270 - <p class='paragrafo'>  
271 - <input id='i3GEOlegendabotao7' size='25' type='button' value='{{{aplicar}}}' />  
272 - </p>  
273 - </fieldset>  
274 - </div>  
275 - <br>  
276 - <fieldset style='padding: 5px; margin: 2px;'>  
277 - <legend>{{{simboloUnico}}}</legend>  
278 - <p class='paragrafo'>{{{todosElementosUnicoSimbolo}}}</p>  
279 - <p class='paragrafo'>  
280 - <input id='i3GEOlegendabotao5' size='25' type='button' value='{{{aplicar}}}' />  
281 - </p>  
282 - </fieldset>  
283 - <br>  
284 - <fieldset style='padding: 5px; margin: 2px;'>  
285 - <legend>{{{valorUnico}}}</legend>  
286 - <p class='paragrafo'>{{{cadaOcorrenciaUnicoSimbolo}}}</p>  
287 - <div id='i3GEOlegendaitensValorUnico' class='styled-select'></div>  
288 - <br>  
289 - <p class='paragrafo'>{{{nomeClassesUnicoSimbolo}}}</p>  
290 - <div id='i3GEOlegendaClassesValorUnico' class='styled-select'></div>  
291 - <br>  
292 - <p class='paragrafo'>  
293 - <input id='i3GEOlegendabotao6' size='25' type='button' value='{{{aplicar}}}' />  
294 - </p>  
295 - </fieldset>  
296 - <br>  
297 - <fieldset style='padding: 5px; margin: 2px;'>  
298 - <legend>{{{classes}}}</legend>  
299 - <p class='paragrafo'>{{{criaClassesItemNumerico}}}</p>  
300 - <div id='i3GEOlegendaitensValorClass' class='styled-select'></div>  
301 - <br>  
302 - <p class='paragrafo'>{{{numeroClasses}}}:</p>  
303 - <div class='i3geoForm i3geoFormIconeNumero'>  
304 - <input type='number' id='i3GEOlegendanclasses' value='5' />  
305 - </div>  
306 - <br>  
307 - <p class='paragrafo'>  
308 - <input id='i3GEOlegendabotao8' type='button' value='{{{intervalosIguais}}}' />  
309 - </p>  
310 - <p class='paragrafo'>  
311 - <input id='i3GEOlegendabotaoQN' type='button' value='{{{quebrasNaturais}}}' />  
312 - </p>  
313 - <p class='paragrafo'>  
314 - <input id='i3GEOlegendabotaoQuantil' type='button' value='{{{calcularQuantil}}}' />  
315 - </p>  
316 - </fieldset>  
317 - <br>  
318 - <fieldset style='padding: 5px; margin: 2px;'>  
319 - <legend>{{{metade}}}</legend>  
320 - <p class='paragrafo'>{{{duasmetades}}}</p>  
321 - <div id='i3GEOlegendaitensMetade' class='styled-select'></div>  
322 - <br>  
323 - <p class='paragrafo'>{{{iunico}}}</p>  
324 - <div id='i3GEOlegendaitensMetadeId' class='styled-select'></div>  
325 - <br>  
326 - <p class='paragrafo'>  
327 - <input id='i3GEOlegendabotaoMetade' size='25' type='button' value='{{{aplicar}}}' />  
328 - </p>  
329 - </fieldset>  
330 - <br>  
331 - <fieldset style='padding: 5px; margin: 2px;'>  
332 - <legend>{{{media}}}</legend>  
333 - <p class='paragrafo'>{{{duasmedias}}}</p>  
334 - <div id='i3GEOlegendaitensMedia' class='styled-select'></div>  
335 - <br>  
336 - <p class='paragrafo'>  
337 - <input id='i3GEOlegendabotaoMedia' size='25' type='button' value='{{{aplicar}}}' />  
338 - </p>  
339 - </fieldset>  
340 - <br>  
341 - <fieldset style='padding: 5px; margin: 2px;'>  
342 - <legend>{{{calcularQuartil}}}</legend>  
343 - <p class='paragrafo'>{{{criaQuartis}}}</p>  
344 - <div id='i3GEOlegendaitensValorQuartil' class='styled-select'></div>  
345 - <br>  
346 - <p class='paragrafo'>  
347 - <input id='i3GEOlegendabotao9' size='25' type='button' value='{{{aplicar}}}' />  
348 - </p>  
349 - <p class='paragrafo'>{{{estiloNomeClasses}}}:  
350 - <div class='styled-select'>  
351 - <select id='estiloClassesQuartis'>  
352 - <option value='minimo'>{{{soValores}}}</option>  
353 - <option value='simples'>{{{quartilValores}}}</option>  
354 - <option value='completo'>{{{expressaoCompleta}}}</option>  
355 - </select>  
356 - </div>  
357 - </fieldset>  
358 - <br>  
359 - </div>  
360 -</div>  
361 -<div id='i3GEOlegendaguia3obj' style='width: 99%; text-align: left;'>  
362 - <fieldset style='padding: 5px; margin: 2px;'>  
363 - <legend>{{{etiquetasClasse}}}</legend>  
364 - <p class='paragrafo'>{{{itemComTexto}}}:</p>  
365 - <div class='styled-select' id='i3GEOlegendaitensLabel'></div>  
366 - <br>  
367 - <p class='paragrafo' style='font-size: 10px;'>  
368 - <input id='i3GEOlegendabotaoExcluirLabel' size='10' type='button' value='{{{exclui}}}' />  
369 - <input id='i3GEOlegendabotaoIncluirLabel' size='10' type='button' value='{{{aplicar}}}' />  
370 - <input id='i3GEOlegendabotaoPropriedadeLabel' size='10' type='button' value='{{{propriedades2}}}' />  
371 - </p>  
372 - </fieldset>  
373 - <br>  
374 - <fieldset style='padding: 5px; margin: 2px;'>  
375 - <legend>{{{estilos}}}</legend>  
376 - <p class='paragrafo' style='font-size: 10px;'>{{{ajudaEstilo}}}  
377 - <div id='i3GEOlegendacomboestilos'></div>  
378 - <br>  
379 - <input id='i3GEOlegendabotao11' class='executar' size='10' type='button' value='{{{exclui}}}' />  
380 - &nbsp;  
381 - <input id='i3GEOlegendabotao12' class='executar' size='14' type='button' value='{{{adiciona}}}' />  
382 - &nbsp;  
383 - <input id='i3GEOlegendabotao13' class='executar' size='8' type='button' value='{{{sobe}}}' />  
384 - &nbsp;  
385 - <input id='i3GEOlegendabotao14' class='executar' size='8' type='button' value='{{{desce}}}' />  
386 - <div id='i3GEOlegendaParametrosEstilos' style='position: relative; top: 10px; left: 0px; text-align: left'></div>  
387 - <br> <br>  
388 - <!--  
389 - <p class='paragrafo' style='font-size: 10px'>  
390 - <input id='i3GEOlegendabotao10' size='35' type='button' value='{{{aplicaAlteracoes}}}' />  
391 - </p>  
392 - -->  
393 - <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendamostraEstilo'></div>  
394 - <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendasimbolos'></div>  
395 - </fieldset>  
396 -</div>  
397 -<div id='i3GEOlegendaguia4obj' style='width: 99%; text-align: left;'></div>  
398 -<div id='i3GEOlegendaguia5obj' style='width: 99%; text-align: left;'>  
399 - <p class='paragrafo'>  
400 - {{{geraSLD}}}  
401 - <a href='http://mapserver.org/ogc/sld.html#sld' target='_blank'> Mapserver SLD </a>  
402 - {{{ajudaSLD}}}  
403 - <p class='paragrafo'>  
404 - <input id='i3GEOlegendabotaoSLDe' size='25' type='button' value='{{{exportaSLD}}}' />  
405 - </p>  
406 - <p class='paragrafo'>{{{msgAplicaSLD}}}  
407 - <p class='paragrafo'>  
408 - <input id='i3GEOlegendabotaoSLDi' size='25' type='button' value='{{{aplicaSLD}}}' />  
409 - </p>  
410 -</div>  
411 -<input type='hidden' value='' id='listaColourRamp' onchange='javascript:i3GEOF.legenda.aplicaColourRamp()' />  
412 \ No newline at end of file 0 \ No newline at end of file