Commit b6833c185af89106e0013caa510beeedccc22bda

Authored by Edmar Moretti
1 parent f7a33823

Inclusão de offsetx e y no editor de símbolos da legenda

classesphp/classe_legenda.php
... ... @@ -629,7 +629,7 @@ parameters:
629 629 $classe - Índice da classe.
630 630  
631 631 return:
632   -string com o
  632 +string com o
633 633 tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbolname,size,symbolscaledenom,maxsize,minsize|
634 634 */
635 635 function pegaParametros($classe)
... ... @@ -662,6 +662,8 @@ tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbolname,size,sy
662 662 $linha[] = $this->layer->symbolscaledenom;
663 663 $linha[] = $estilo->minsize;
664 664 $linha[] = $estilo->maxsize;
  665 + $linha[] = $estilo->offsetx;
  666 + $linha[] = $estilo->offsety;
665 667 $linhas[] = $tipoLayer."#".implode("#",$linha);
666 668 }
667 669 //retorna tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbolname,size,symbolscaledenom
... ... @@ -690,7 +692,7 @@ $size - Tamanho que será aplicado ao símbolo.
690 692  
691 693 $opacidade - Opacidade
692 694 */
693   - function aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize=0,$maxsize=500)
  695 + function aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize=0,$maxsize=500,$offsetx=0,$offsety=0)
694 696 {
695 697 if(!$this->layer){return "erro";}
696 698 if(!empty($pattern))
... ... @@ -743,6 +745,8 @@ $opacidade - Opacidade
743 745 }
744 746 $estilo->set("minsize",$minsize);
745 747 $estilo->set("maxsize",$maxsize);
  748 + $estilo->set("offsetx",$offsetx);
  749 + $estilo->set("offsety",$offsety);
746 750 if ($this->layer->getmetadata("sld") != "")
747 751 {
748 752 $sld = $this->layer->getmetadata("sld");
... ...
classesphp/mapa_controle.php
... ... @@ -2163,7 +2163,7 @@ switch (strtoupper($funcao))
2163 2163 }
2164 2164 if ($opcao == "aplica")
2165 2165 {
2166   - $retorno = $m->aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize,$maxsize);
  2166 + $retorno = $m->aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize,$maxsize,$offsetx,$offsety);
2167 2167 if(!empty($symbolscale)){
2168 2168 $m->layer->set("symbolscaledenom",$symbolscale);
2169 2169 }
... ...
ferramentas/legenda/dicionario.js
1 1 //+$trad(1,i3GEOF.legenda.dicionario)+
2   -i3GEOF.legenda.dicionario = {
3   - 'ajuda' : [ {
4   - pt : "Para acessar o editor, clique em um s&iacute;mbolo na guia <i>Legenda</i>",
5   - en : "",
6   - es : ""
7   - } ],
8   - 'propriedades' : [ {
9   - pt : "Propriedades",
10   - en : "",
11   - es : ""
12   - } ],
13   - "legenda" : [ {
14   - pt : "Legenda",
15   - en : "",
16   - es : ""
17   - } ],
18   - "classes" : [ {
19   - pt : "Classes",
20   - en : "",
21   - es : ""
22   - } ],
23   - 'editor' : [ {
24   - pt : "Editor",
25   - en : "",
26   - es : ""
27   - } ],
28   - 'graficos' : [ {
29   - pt : "Gr&aacute;ficos",
30   - en : "",
31   - es : ""
32   - } ],
33   - 'importaExportaSLD' : [ {
34   - pt : "Importar/exportar SLD",
35   - en : "",
36   - es : ""
37   - } ],
38   - 'mostraClassesLegenda' : [ {
39   - pt : "Mostra as classes desse tema na legenda do mapa",
40   - en : "",
41   - es : ""
42   - } ],
43   - 'incluiNumeroOcorrencia' : [ {
44   - pt : "Inclui n&uacute;mero de ocorr&ecirc;ncias",
45   - en : "",
46   - es : ""
47   - } ],
48   - 'incluiNumeroOcorrencia2' : [ {
49   - pt : "incluir o n&uacute;mero de ocorr&ecirc;ncias no nome de cada classe",
50   - en : "",
51   - es : ""
52   - } ],
53   - 'aplicaOpacidadeVariavel' : [ {
54   - pt : "Aplica opacidade vari&aacute;vel",
55   - en : "",
56   - es : ""
57   - } ],
58   - 'aplicaOpacidade' : [ {
59   - pt : "aplicar opacidade nas classes existente, variando de 10 at&eacute; 100",
60   - en : "",
61   - es : ""
62   - } ],
63   - 'escolhePaletaCores' : [ {
64   - pt : "Escolher paleta de cores",
65   - en : "",
66   - es : ""
67   - } ],
68   - 'variaCoresExtremos' : [ {
69   - pt : "escolher e aplicar as varia&ccedil;&otilde;es de cores, entre dois extremos, nas classes existentes",
70   - en : "",
71   - es : ""
72   - } ],
73   - 'geraCores' : [ {
74   - pt : "Gerar cores",
75   - en : "",
76   - es : ""
77   - } ],
78   - 'ate' : [ {
79   - pt : "at&eacute;",
80   - en : "",
81   - es : ""
82   - } ],
83   - 'de' : [ {
84   - pt : "de",
85   - en : "",
86   - es : ""
87   - } ],
88   - 'aplica' : [ {
89   - pt : "Aplicar",
90   - en : "",
91   - es : ""
92   - } ],
93   - 'aplicaVariaCores' : [ {
94   - pt : "aplicar varia&ccedil;&otilde;es de cores, entre dois extremos, nas classes existentes",
95   - en : "",
96   - es : ""
97   - } ],
98   - 'aplicaAlteracao' : [ {
99   - pt : "Aplicar altera&ccedil;&otilde;es",
100   - en : "",
101   - es : ""
102   - } ],
103   - 'adicionaClasse' : [ {
104   - pt : "Adicionar classe",
105   - en : "",
106   - es : ""
107   - } ],
108   - 'adicionaNovaClasse' : [ {
109   - pt : "adicionar uma nova classe na legenda",
110   - en : "",
111   - es : ""
112   - } ],
113   - 'clicaSimbolo' : [ {
114   - pt : "Clique no s&iacute;mbolo da classe para alterar",
115   - en : "",
116   - es : ""
117   - } ],
118   - 'consideraElementosVisisveis' : [ {
119   - 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",
120   - en : "",
121   - es : ""
122   - } ],
123   - 'ignoraValores' : [ {
124   - pt : "Ao gerar as classes, ignorar os valores (separe com v&iacute;rgula)",
125   - en : "",
126   - es : ""
127   - } ],
128   - 'transformaGeom' : [ {
129   - 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.",
130   - en : "",
131   - es : ""
132   - } ],
133   - 'semTransformacao' : [ {
134   - pt : "nenhuma transforma&ccedil;&atilde;o",
135   - en : "",
136   - es : ""
137   - } ],
138   - 'centroide' : [ {
139   - pt : "centr&oacute;ide",
140   - en : "",
141   - es : ""
142   - } ],
143   - 'vertices' : [ {
144   - pt : "v&eacute;rtices",
145   - en : "",
146   - es : ""
147   - } ],
148   - 'verticeInicial' : [ {
149   - pt : "v&eacute;rtice inicial",
150   - en : "",
151   - es : ""
152   - } ],
153   - 'verticeFinal' : [ {
154   - pt : "v&eacute;rtice final",
155   - en : "",
156   - es : ""
157   - } ],
158   - 'alteraGeom' : [ {
159   - pt : "Altera geometria",
160   - en : "",
161   - es : ""
162   - } ],
163   - 'alteraTipoGeom' : [ {
164   - pt : "Altera o tipo de representa&ccedil;&atilde;o do tema. Se for poligonal, passa para linear e vice-versa.",
165   - en : "",
166   - es : ""
167   - } ],
168   - 'alteraTipo' : [ {
169   - pt : "Altera tipo",
170   - en : "",
171   - es : ""
172   - } ],
173   - 'todosElementosUnicoSimbolo' : [ {
174   - pt : "Todos os elementos ser&atilde;o desenhados com um &uacute;nico s&iacute;mbolo",
175   - en : "",
176   - es : ""
177   - } ],
178   - 'simboloUnico' : [ {
179   - pt : "S&iacute;mbolo &uacute;nico",
180   - en : "",
181   - es : ""
182   - } ],
183   - 'cadaOcorrenciaUnicoSimbolo' : [ {
184   - pt : "Cada ocorr&ecirc;ncia de um valor para o item selecionado, ser&aacute; desenhado com o mesmo s&iacute;mbolo",
185   - en : "",
186   - es : ""
187   - } ],
188   - 'valorUnico' : [ {
189   - pt : "Calcular valor &uacute;nico",
190   - en : "",
191   - es : ""
192   - } ],
193   - 'criaClassesItemNumerico' : [ {
194   - pt : "Cria classes para um item num&eacute;rico utilizando um n&uacute;mero fixo de classes",
195   - en : "",
196   - es : ""
197   - } ],
198   - 'numeroClasses' : [ {
199   - pt : "N&uacute;mero de classes",
200   - en : "",
201   - es : ""
202   - } ],
203   - 'intervalosIguais' : [ {
204   - pt : "Calcular intervalos iguais",
205   - en : "",
206   - es : ""
207   - } ],
208   - 'criaQuartis' : [ {
209   - pt : "Cria classes para um item num&eacute;rico utilizando os quartis",
210   - en : "",
211   - es : ""
212   - } ],
213   - 'estiloNomeClasses' : [ {
214   - pt : "Estilo dos nomes das classes",
215   - en : "",
216   - es : ""
217   - } ],
218   - 'soValores' : [ {
219   - pt : "s&oacute; os valores",
220   - en : "",
221   - es : ""
222   - } ],
223   - 'quartilValores' : [ {
224   - pt : "quartil e os valores",
225   - en : "",
226   - es : ""
227   - } ],
228   - 'expressaoCompleta' : [ {
229   - pt : "express&atilde;o completa",
230   - en : "",
231   - es : ""
232   - } ],
233   - "etiquetasClasse" : [ {
234   - pt : "Textos da classe (labels)",
235   - en : "",
236   - es : ""
237   - } ],
238   - 'itemComTexto' : [ {
239   - pt : "Item com o texto",
240   - en : "",
241   - es : ""
242   - } ],
243   - 'exclui' : [ {
244   - pt : "excluir",
245   - en : "",
246   - es : ""
247   - } ],
248   - 'adiciona' : [ {
249   - pt : "adicionar",
250   - en : "",
251   - es : ""
252   - } ],
253   - 'propriedades2' : [ {
254   - pt : "propriedades",
255   - en : "",
256   - es : ""
257   - } ],
258   - 'estilos' : [ {
259   - pt : "Estilos",
260   - en : "",
261   - es : ""
262   - } ],
263   - 'ajudaEstilo' : [ {
264   - 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 ",
265   - en : "",
266   - es : ""
267   - } ],
268   - 'aplicaAlteracoes' : [ {
269   - pt : "Aplicar todas as altera&ccedil;&otilde;es",
270   - en : "",
271   - es : ""
272   - } ],
273   - 'geraSLD' : [ {
274   - pt : "Gera um arquivo XML, no padr&atilde;o SLD, contendo a legenda atual da camada. Para maiores informa&ccedil;&otilde;es, veja",
275   - en : "",
276   - es : ""
277   - } ],
278   - 'ajudaSLD' : [ {
279   - pt : "(O SLD s&oacute; &eacute; gerado ou aplicado corretamente em camadas que utilizam express&otilde;es simples e o elemento CLASSITEM)",
280   - en : "",
281   - es : ""
282   - } ],
283   - 'exportaSLD' : [ {
284   - pt : "Exportar SLD",
285   - en : "",
286   - es : ""
287   - } ],
288   - 'msgAplicaSLD' : [ {
289   - pt : "Aplica um arquivo SLD &agrave; camada ativa",
290   - en : "",
291   - es : ""
292   - } ],
293   - 'aplicaSLD' : [ {
294   - pt : "Aplicar SLD",
295   - en : "",
296   - es : ""
297   - } ],
298   - 'temaInexistente' : [ {
299   - pt : "O tema ja nao existe mais no mapa",
300   - en : "",
301   - es : ""
302   - } ],
303   - 'cliqueAltera' : [ {
304   - pt : "clique para alterar",
305   - en : "",
306   - es : ""
307   - } ],
308   - 'cliqueExclui' : [ {
309   - pt : "clique para excluir",
310   - en : "",
311   - es : ""
312   - } ],
313   - 'digitaNovoNome' : [ {
314   - pt : "digite o novo nome",
315   - en : "",
316   - es : ""
317   - } ],
318   - 'digitaNovaExpressao' : [ {
319   - pt : "digite a nova express&atilde;o",
320   - en : "",
321   - es : ""
322   - } ],
323   - 'sobe' : [ {
324   - pt : "sobe",
325   - en : "",
326   - es : ""
327   - } ],
328   - 'desce' : [ {
329   - pt : "desce",
330   - en : "",
331   - es : ""
332   - } ],
333   - 'ajudaEscalaCores' : [ {
334   - pt : "Para aplicar um ajuste entre 0 e 255 cores, utilize a op&ccedil;&atilde;o <i>Escala de Cores</i>.",
335   - en : "",
336   - es : ""
337   - } ],
338   - 'msgEscalaCoresAuto' : [ {
339   - 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).",
340   - en : "",
341   - es : ""
342   - } ],
343   - 'msgEscalaCoresIndividual' : [ {
344   - pt : "Voc&ecirc; pode aplicar a escala em bandas individuais, para isso, utilize SCALE_n, por exemplo SCALE_1=AUTO SCALE_2=200,500.",
345   - en : "",
346   - es : ""
347   - } ],
348   - 'msgBandas' : [ {
349   - 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 .",
350   - en : "",
351   - es : ""
352   - } ],
353   - 'msgReamostragem' : [ {
354   - pt : "Para alterar o modo de amostragem, utilize RESAMPLE com uma das op&ccedil;&otilde;es: AVERAGE,NEAREST ou BILINEAR.",
355   - en : "",
356   - es : ""
357   - } ],
358   - 'adicionaProcesso' : [ {
359   - pt : "Voc&ecirc; pode incluir processos na imagem para modificar as caracter&iacute;sticas de visualiza&ccedil;&atilde;o<br><br>Adicionar processo",
360   - en : "",
361   - es : ""
362   - } ],
363   - 'selecionaProcesso' : [ {
364   - pt : "selecione o processo",
365   - en : "",
366   - es : ""
367   - } ],
368   - 'escalaCores' : [ {
369   - pt : "Escala de cores",
370   - en : "",
371   - es : ""
372   - } ],
373   - 'reamostragem' : [ {
374   - pt : "Reamostragem",
375   - en : "",
376   - es : ""
377   - } ],
378   - 'bandas' : [ {
379   - pt : "Bandas",
380   - en : "",
381   - es : ""
382   - } ],
383   - 'aplicaProcesso' : [ {
384   - pt : "aplicar processos",
385   - en : "",
386   - es : ""
387   - } ],
388   - 'msgNaoEditaLegenda' : [ {
389   - pt : "N&atilde;o &eacute; poss&iacute;vel editar a legenda desse tema",
390   - en : "",
391   - es : ""
392   - } ],
393   - 'msgAplicaAlteracao' : [ {
394   - pt : "Clique em <i>Aplicar</i> para que as altera&ccedil;&otilde;pes sejam salvas",
395   - en : "",
396   - es : ""
397   - } ],
398   - 'consideraElementosVisiveis' : [ {
399   - pt : "A contagem considera apenas os elementos vis&iacute;veis na abrang&ecirc;ncia do mapa",
400   - en : "",
401   - es : ""
402   - } ],
403   - 'selecionaUmItem' : [ {
404   - pt : "Selecione um item!",
405   - en : "",
406   - es : ""
407   - } ],
408   - 'estiloEdicao' : [ {
409   - pt : "Estilo em edi&ccedil;&atilde;o",
410   - en : "",
411   - es : ""
412   - } ],
413   - 'corFundo' : [ {
414   - pt : "Cor do fundo",
415   - en : "",
416   - es : ""
417   - } ],
418   - 'corFrente' : [ {
419   - pt : "Cor da frente",
420   - en : "",
421   - es : ""
422   - } ],
423   - 'tamanhoEspacamento' : [ {
424   - pt : "Tamanho / espa&ccedil;amento",
425   - en : "",
426   - es : ""
427   - } ],
428   - 'espessura' : [ {
429   - pt : "Espessura",
430   - en : "",
431   - es : ""
432   - } ],
433   - 'padraoRepeticao' : [ {
434   - pt : "Padr&atilde;o de repeti&ccedil;&atilde;o",
435   - en : "",
436   - es : ""
437   - } ],
438   - 'opacidade' : [ {
439   - pt : "Opacidade",
440   - en : "",
441   - es : ""
442   - } ],
443   - 'angulo' : [ {
444   - pt : "&Acirc;ngulo",
445   - en : "",
446   - es : ""
447   - } ],
448   - 'simbolo' : [ {
449   - pt : "S&iacute;mbolo (Voc&ecirc; pode usar o caminho absoluto de uma imagem PNG existente no servidor ou clicar em um dos s&iacute;mbolos mostrados abaixo)",
450   - en : "",
451   - es : ""
452   - } ],
453   - 'listaSimbolo' : [ {
454   - pt : "Lista de s&iacute;mbolos. Clique para selecionar",
455   - en : "",
456   - es : ""
457   - } ],
458   - 'graficoPizza' : [ {
459   - pt : "Gr&aacute;fico de pizza",
460   - en : "",
461   - es : ""
462   - } ],
463   - 'numeroOcorrenciasClasses' : [ {
464   - pt : "N&uacute;mero de ocorr&ecirc;ncias em cada classe (n)",
465   - en : "",
466   - es : ""
467   - } ],
468   - 'msgNumeroClasses' : [ {
469   - pt : "O tema deve conter pelo menos 2 classes",
470   - en : "",
471   - es : ""
472   - } ],
473   - 'quebrasNaturais' : [ {
474   - pt : "Calcular quebras naturais",
475   - en : "",
476   - es : ""
477   - } ],
478   - 'calcularQuartil' : [ {
479   - pt : "Calcular quartis",
480   - en : "",
481   - es : ""
482   - } ],
483   - 'calcularQuantil' : [ {
484   - pt : "Calcular quantis",
485   - en : "",
486   - es : ""
487   - } ],
488   - 'minScale' : [ {
489   - pt : "N&atilde;o desenha se escala for menor que",
490   - en : "",
491   - es : ""
492   - } ],
493   - 'maxScale' : [ {
494   - pt : "N&atilde;o desenha se escala for maior que",
495   - en : "",
496   - es : ""
497   - } ],
498   - 'aplicatodos' : [ {
499   - pt : "Aplicar esse par&acirc;metro em todas as classes",
500   - en : "",
501   - es : ""
502   - } ],
503   - 'nomeClassesUnicoSimbolo' : [ {
504   - pt : "(Opcional) Item que ser&aacute; utilizado para obter os nomes das classes",
505   - en : "",
506   - es : ""
507   - } ],
508   - 'aplicar' : [ {
509   - pt : "aplicar",
510   - en : "",
511   - es : ""
512   - } ],
513   - 'symbolscale' : [ {
514   - 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)",
515   - en : "",
516   - es : ""
517   - } ],
518   - 'minsize' : [ {
519   - pt : "Menor tamanho (pixels), que os s&iacute;mbolos ser&atilde;o desenhados, quando a escala de desenho de s&iacute;mbolos estiver ativo",
520   - en : "",
521   - es : ""
522   - } ],
523   - 'maxsize' : [ {
524   - pt : "Maior tamanho (pixels), que os s&iacute;mbolos ser&atilde;o desenhados, quando a escala de desenho de s&iacute;mbolos estiver ativo",
525   - en : "",
526   - es : ""
527   - } ],
528   - "editorExp": [
  2 +i3GEOF.legenda.dicionario =
529 3 {
530   - pt: "Editor de express&atilde;o",
531   - en:"",
532   - es:""
533   - }]
534   -};
  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 : "Importar/exportar 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 + };
... ...
ferramentas/legenda/index.js
... ... @@ -40,7 +40,7 @@ if (typeof (i3GEOF) === &#39;undefined&#39;) {
40 40 /*
41 41 * Classe: i3GEOF.legenda
42 42 */
43   -//incuir opcao para inserir o nome de uma imagem da legenda
  43 +// incuir opcao para inserir o nome de uma imagem da legenda
44 44 i3GEOF.legenda =
45 45 {
46 46 /*
... ... @@ -183,7 +183,7 @@ i3GEOF.legenda =
183 183 var tabela = $i("i3GEOlegendalegenda");
184 184 var trs = tabela.getElementsByTagName("tr");
185 185 var ncores = trs.length - 1;
186   - //$i("i3geo_janelaCorRampComboCabecaSel").value = i3GEOF.legenda.tema;
  186 + // $i("i3geo_janelaCorRampComboCabecaSel").value = i3GEOF.legenda.tema;
187 187 i3GEO.util.abreColourRamp("", "listaColourRamp", ncores, i3GEOF.legenda.tema);
188 188 }
189 189 }
... ... @@ -244,14 +244,17 @@ i3GEOF.legenda =
244 244 }
245 245 });
246 246 b.addClass("rodar");
247   - b = new YAHOO.widget.Button("i3GEOlegendabotaoSLDe", {
248   - onclick : {
249   - fn : function() {
250   - window.open(i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?funcao=tema2sld&tema="
251   - + i3GEOF.legenda.tema + "&g_sid=" + i3GEO.configura.sid);
  247 + b =
  248 + new YAHOO.widget.Button("i3GEOlegendabotaoSLDe", {
  249 + onclick : {
  250 + fn : function() {
  251 + window.open(i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?funcao=tema2sld&tema="
  252 + + i3GEOF.legenda.tema
  253 + + "&g_sid="
  254 + + i3GEO.configura.sid);
  255 + }
252 256 }
253   - }
254   - });
  257 + });
255 258 b.addClass("rodar");
256 259 b = new YAHOO.widget.Button("i3GEOlegendabotaoSLDi", {
257 260 onclick : {
... ... @@ -262,64 +265,76 @@ i3GEOF.legenda =
262 265 });
263 266 b.addClass("rodar");
264 267  
265   - b = new YAHOO.widget.Button("i3GEOlegendabotaoIncluirLabel", {
266   - onclick : {
267   - fn : function() {
268   - var par, p, temp, cp;
269   - try {
270   - par = i3GEOF.proplabel.pegaPar();
271   - i3GEOF.legenda.parDefault = par;
272   - } catch (e) {
273   - par = i3GEOF.legenda.parDefault;
  268 + b =
  269 + new YAHOO.widget.Button("i3GEOlegendabotaoIncluirLabel", {
  270 + onclick : {
  271 + fn : function() {
  272 + var par, p, temp, cp;
  273 + try {
  274 + par = i3GEOF.proplabel.pegaPar();
  275 + i3GEOF.legenda.parDefault = par;
  276 + } catch (e) {
  277 + par = i3GEOF.legenda.parDefault;
  278 + }
  279 + i3GEOF.legenda.aguarde.visibility = "visible";
  280 + temp = function() {
  281 + i3GEOF.legenda.aguarde.visibility = "hidden";
  282 + i3GEOF.legenda.aposAlterarLegenda();
  283 + i3GEOF.legenda.aguarde.visibility = "hidden";
  284 + };
  285 + p =
  286 + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
  287 + + i3GEO.configura.sid
  288 + + "&funcao=adicionaLabelClasse&tema="
  289 + + i3GEOF.legenda.tema
  290 + + "&classe="
  291 + + i3GEOF.legenda.classe
  292 + + par;
  293 + p += "&item=" + $i("i3GEOlegendaSelItemLabel").value;
  294 + cp = new cpaint();
  295 + cp.set_response_type("JSON");
  296 + cp.call(p, "foo", temp);
274 297 }
275   - i3GEOF.legenda.aguarde.visibility = "visible";
276   - temp = function() {
277   - i3GEOF.legenda.aguarde.visibility = "hidden";
278   - i3GEOF.legenda.aposAlterarLegenda();
279   - i3GEOF.legenda.aguarde.visibility = "hidden";
280   - };
281   - p =
282   - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid
283   - + "&funcao=adicionaLabelClasse&tema=" + i3GEOF.legenda.tema + "&classe=" + i3GEOF.legenda.classe + par;
284   - p += "&item=" + $i("i3GEOlegendaSelItemLabel").value;
285   - cp = new cpaint();
286   - cp.set_response_type("JSON");
287   - cp.call(p, "foo", temp);
288 298 }
289   - }
290   - });
  299 + });
291 300 b.addClass("rodar100");
292   - b = new YAHOO.widget.Button("i3GEOlegendabotaoExcluirLabel", {
293   - onclick : {
294   - fn : function() {
295   - var p, temp, cp;
296   - i3GEOF.legenda.aguarde.visibility = "visible";
297   - temp = function() {
298   - i3GEOF.legenda.aguarde.visibility = "hidden";
299   - i3GEOF.legenda.aposAlterarLegenda();
300   - i3GEOF.legenda.aguarde.visibility = "hidden";
301   - };
302   - p =
303   - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid
304   - + "&funcao=removeLabelClasse&tema=" + i3GEOF.legenda.tema + "&classe=" + i3GEOF.legenda.classe;
305   - cp = new cpaint();
306   - cp.set_response_type("JSON");
307   - cp.call(p, "foo", temp);
  301 + b =
  302 + new YAHOO.widget.Button("i3GEOlegendabotaoExcluirLabel", {
  303 + onclick : {
  304 + fn : function() {
  305 + var p, temp, cp;
  306 + i3GEOF.legenda.aguarde.visibility = "visible";
  307 + temp = function() {
  308 + i3GEOF.legenda.aguarde.visibility = "hidden";
  309 + i3GEOF.legenda.aposAlterarLegenda();
  310 + i3GEOF.legenda.aguarde.visibility = "hidden";
  311 + };
  312 + p =
  313 + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
  314 + + i3GEO.configura.sid
  315 + + "&funcao=removeLabelClasse&tema="
  316 + + i3GEOF.legenda.tema
  317 + + "&classe="
  318 + + i3GEOF.legenda.classe;
  319 + cp = new cpaint();
  320 + cp.set_response_type("JSON");
  321 + cp.call(p, "foo", temp);
  322 + }
308 323 }
309   - }
310   - });
  324 + });
311 325 b.addClass("rodar100");
312   - b = new YAHOO.widget.Button("i3GEOlegendabotaoPropriedadeLabel", {
313   - onclick : {
314   - fn : function() {
315   - i3GEO.util.scriptTag(
316   - i3GEO.configura.locaplic + "/ferramentas/opcoes_label/index.js",
317   - "i3GEOF.proplabel.criaJanelaFlutuante(false)",
318   - "i3GEOFproplabel",
319   - false);
  326 + b =
  327 + new YAHOO.widget.Button("i3GEOlegendabotaoPropriedadeLabel", {
  328 + onclick : {
  329 + fn : function() {
  330 + i3GEO.util.scriptTag(
  331 + i3GEO.configura.locaplic + "/ferramentas/opcoes_label/index.js",
  332 + "i3GEOF.proplabel.criaJanelaFlutuante(false)",
  333 + "i3GEOFproplabel",
  334 + false);
  335 + }
320 336 }
321   - }
322   - });
  337 + });
323 338 b.addClass("abrir100");
324 339 i3GEOF.legenda.ativaFoco();
325 340 i3GEOF.legenda.mostralegenda();
... ... @@ -337,8 +352,8 @@ i3GEOF.legenda =
337 352 $i("i3GEOlegendaitensValorQuartil").innerHTML = retorno.dados;
338 353 }
339 354 });
340   - if (i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe
341   - && i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe.toLowerCase() == "nao") {
  355 + if (i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe && i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe
  356 + .toLowerCase() == "nao") {
342 357 $i("i3GEOFlegendamostra").checked = false;
343 358 }
344 359 $i("i3GEOFlegendamostra").onclick = function() {
... ... @@ -348,7 +363,7 @@ i3GEOF.legenda =
348 363 } catch (erro) {
349 364 i3GEO.janela.tempoMsg(erro);
350 365 }
351   - i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda","i3GEOlegenda");
  366 + i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda");
352 367 },
353 368 /*
354 369 * Function: html
... ... @@ -379,9 +394,9 @@ i3GEOF.legenda =
379 394 i3GEOF.legenda.ativaFoco();
380 395 };
381 396 minimiza = function() {
382   - var t = i3GEO.janela.minimiza("i3GEOF.legenda","100px");
  397 + var t = i3GEO.janela.minimiza("i3GEOF.legenda", "100px");
383 398 i3GEOF.legenda.ativaAplicar("none");
384   - if(t === "min"){
  399 + if (t === "min") {
385 400 $i("i3GEOFlegendaCabecalhoI").style.display = "none";
386 401 } else {
387 402 $i("i3GEOFlegendaCabecalhoI").style.display = "block";
... ... @@ -389,30 +404,19 @@ i3GEOF.legenda =
389 404 };
390 405 // cria a janela flutuante
391 406 titulo =
392   - "<span class='i3GEOiconeFerramenta i3GEOiconeLegenda' title='"+$trad("t33")+"'></span>"
393   - + "<div id='i3GEOFlegendaCabecalhoI' style='left:10px;'>"
394   - + "<div id='i3GEOFlegendaComboCabeca' class='comboTemasCabecalho' style='left:0px;'> ------</div>"
395   - + "<div class='i3GeoTituloJanela'>" + $trad("t33")
396   - + "<a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic
397   - + "/ajuda_usuario.php?idcategoria=5&idajuda=41' ><b> </b></a></div></div></div>";
  407 + "<span class='i3GEOiconeFerramenta i3GEOiconeLegenda' title='" + $trad("t33")
  408 + + "'></span>"
  409 + + "<div id='i3GEOFlegendaCabecalhoI' style='left:10px;'>"
  410 + + "<div id='i3GEOFlegendaComboCabeca' class='comboTemasCabecalho' style='left:0px;'> ------</div>"
  411 + + "<div class='i3GeoTituloJanela'>"
  412 + + $trad("t33")
  413 + + "<a class=ajuda_usuario target=_blank href='"
  414 + + i3GEO.configura.locaplic
  415 + + "/ajuda_usuario.php?idcategoria=5&idajuda=41' ><b> </b></a></div></div></div>";
398 416 janela =
399   - i3GEO.janela.cria(
400   - "490px",
401   - "340px",
402   - "",
403   - "",
404   - "",
405   - titulo,
406   - "i3GEOF.legenda",
407   - false,
408   - "hd",
409   - cabecalho,
410   - minimiza,
411   - function(){
412   - i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda","i3GEOlegenda");
413   - },
414   - true
415   - );
  417 + i3GEO.janela.cria("490px", "340px", "", "", "", titulo, "i3GEOF.legenda", false, "hd", cabecalho, minimiza, function() {
  418 + i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda");
  419 + }, true);
416 420 divid = janela[2].id;
417 421 i3GEOF.legenda.aguarde = $i("i3GEOF.legenda_imagemCabecalho").style;
418 422 $i("i3GEOF.legenda_corpo").style.backgroundColor = "white";
... ... @@ -440,15 +444,14 @@ i3GEOF.legenda =
440 444 i.zIndex = i3GEO.janela.ULTIMOZINDEX;
441 445 i3GEO.janela.ULTIMOZINDEX++;
442 446 },
443   - ativaAplicar : function(tipo){
  447 + ativaAplicar : function(tipo) {
444 448 var b = $i("i3GEOlegendabotao10");
445   - if(b){
  449 + if (b) {
446 450 b.style.display = tipo;
447   - }
448   - else{
  451 + } else {
449 452 YAHOO.i3GEO.janela.manager.find("i3GEOF.legenda").setFooter(
450   - '<input id="i3GEOlegendabotao10" type="button" value="'+$trad('aplicaAlteracoes',i3GEOF.legenda.dicionario)+'" style="width: 450px;cursor:pointer;color:blue;display: block;"/>'
451   - );
  453 + '<input id="i3GEOlegendabotao10" type="button" value="' + $trad('aplicaAlteracoes', i3GEOF.legenda.dicionario)
  454 + + '" style="width: 450px;cursor:pointer;color:blue;display: block;"/>');
452 455 b = new YAHOO.widget.Button("i3GEOlegendabotao10", {
453 456 onclick : {
454 457 fn : i3GEOF.legenda.aplicaEstilo
... ... @@ -486,8 +489,10 @@ i3GEOF.legenda =
486 489 i3GEOF.legenda.aguarde.visibility = "visible";
487 490 var p, cp;
488 491 p =
489   - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid
490   - + "&funcao=editalegenda&opcao=edita&tema=" + i3GEOF.legenda.tema;
  492 + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
  493 + + i3GEO.configura.sid
  494 + + "&funcao=editalegenda&opcao=edita&tema="
  495 + + i3GEOF.legenda.tema;
491 496 cp = new cpaint();
492 497 cp.set_response_type("JSON");
493 498 cp.call(p, "tabelaLegenda", i3GEOF.legenda.montaLegenda);
... ... @@ -510,8 +515,7 @@ i3GEOF.legenda =
510 515 if (retorno.data[0].proc === "") {
511 516 ins =
512 517 [
513   - "<table class=lista4 id=i3GEOlegendalegenda ><tr>"
514   - + "<td><img src='"
  518 + "<table class=lista4 id=i3GEOlegendalegenda ><tr>" + "<td><img src='"
515 519 + i3GEO.configura.locaplic
516 520 + "/imagens/inverter.png' title='Inverter cores' onclick='i3GEOF.legenda.inverteCores()' style=cursor:pointer /></td>"
517 521 + "<td style=background-color:white ><img src='"
... ... @@ -526,7 +530,8 @@ i3GEOF.legenda =
526 530 + "<td style=background-color:yellow >express&atilde;o</td>"
527 531 + "<td style=background-color:yellow ></td>"
528 532 + "<td style=background-color:yellow >minScale</td>"
529   - + "<td style=background-color:yellow >maxScale</td>" + "</tr>"
  533 + + "<td style=background-color:yellow >maxScale</td>"
  534 + + "</tr>"
530 535 ];
531 536 n = retorno.data.length;
532 537 for (i = 0; i < n; i++) {
... ... @@ -536,75 +541,88 @@ i3GEOF.legenda =
536 541  
537 542 ins.push("<tr>");
538 543 ins.push("<td><div style='cursor:pointer' title='" + $trad('cliqueExclui', i3GEOF.legenda.dicionario)
539   - + "' onclick='i3GEOF.legenda.excluilinhaf(this)' src='" + i3GEO.configura.locaplic
  544 + + "' onclick='i3GEOF.legenda.excluilinhaf(this)' src='"
  545 + + i3GEO.configura.locaplic
540 546 + "/imagens/x.gif' title='excluir' class='i3GEOiconeXis' >&nbsp;</div></td>");
541 547  
542   - ins.push("<td><img width='30px' height='15px' style='cursor:pointer' title='"
543   - + $trad('cliqueAltera', i3GEOF.legenda.dicionario) + "' src='" + retorno.data[i].imagem
544   - + "' onclick=i3GEOF.legenda.editaSimbolo('i3GEOlegendaid_" + id + "') /></td>");
  548 + ins.push("<td><img width='30px' height='15px' style='cursor:pointer' title='" + $trad(
  549 + 'cliqueAltera',
  550 + i3GEOF.legenda.dicionario)
  551 + + "' src='"
  552 + + retorno.data[i].imagem
  553 + + "' onclick=i3GEOF.legenda.editaSimbolo('i3GEOlegendaid_"
  554 + + id
  555 + + "') /></td>");
545 556  
546 557 ins.push("<td><img onclick=i3GEOF.legenda.modificaCor('" + retorno.data[i].idclasse
547   - + "') title='alterar a cor' style='cursor:pointer' src='" + i3GEO.configura.locaplic
  558 + + "') title='alterar a cor' style='cursor:pointer' src='"
  559 + + i3GEO.configura.locaplic
548 560 + "/imagens/aquarela.gif' /></td>");
549 561  
550   - ins.push("<td>"
551   - + $inputText(
552   - "",
553   - "",
554   - "i3GEOlegendaid_" + id,
555   - $trad('digitaNovoNome', i3GEOF.legenda.dicionario),
556   - 20,
557   - retorno.data[i].nomeclasse,
558   - "nome",
559   - "javascript:i3GEOF.legenda.aviso()") + "</td>");
  562 + ins.push("<td>" + $inputText(
  563 + "",
  564 + "",
  565 + "i3GEOlegendaid_" + id,
  566 + $trad('digitaNovoNome', i3GEOF.legenda.dicionario),
  567 + 20,
  568 + retorno.data[i].nomeclasse,
  569 + "nome",
  570 + "javascript:i3GEOF.legenda.aviso()")
  571 + + "</td>");
560 572  
561   - filtro = "<img title='" + $trad("editorExp",i3GEOF.legenda.dicionario) + "' src='"
562   - + i3GEO.configura.locaplic + "/imagens/oxygen/16x16/tools-wizard.png' "
563   - + "onclick='i3GEOF.legenda.filtro(\"" + "i3GEOlegendaid_exp" + id + "\")'>";
  573 + filtro =
  574 + "<img title='" + $trad("editorExp", i3GEOF.legenda.dicionario)
  575 + + "' src='"
  576 + + i3GEO.configura.locaplic
  577 + + "/imagens/oxygen/16x16/tools-wizard.png' "
  578 + + "onclick='i3GEOF.legenda.filtro(\""
  579 + + "i3GEOlegendaid_exp"
  580 + + id
  581 + + "\")'>";
564 582  
565   - ins.push("<td>"
566   - + $inputText(
567   - "",
568   - "",
569   - "i3GEOlegendaid_exp" + id,
570   - $trad('digitaNovaExpressao', i3GEOF.legenda.dicionario),
571   - 25,
572   - exp,
573   - "expressao",
574   - "javascript:i3GEOF.legenda.aviso()") + "</td>");
  583 + ins.push("<td>" + $inputText("", "", "i3GEOlegendaid_exp" + id, $trad(
  584 + 'digitaNovaExpressao',
  585 + i3GEOF.legenda.dicionario), 25, exp, "expressao", "javascript:i3GEOF.legenda.aviso()")
  586 + + "</td>");
575 587  
576 588 ins.push("<td>" + filtro + "</td>");
577 589  
578   - ins.push("<td>"
579   - + $inputText(
580   - "",
581   - "",
582   - "i3GEOlegendaid_" + id,
583   - $trad('minScale', i3GEOF.legenda.dicionario),
584   - 10,
585   - retorno.data[i].minScale,
586   - "minScale",
587   - "javascript:i3GEOF.legenda.aviso()") + "</td>");
  590 + ins.push("<td>" + $inputText(
  591 + "",
  592 + "",
  593 + "i3GEOlegendaid_" + id,
  594 + $trad('minScale', i3GEOF.legenda.dicionario),
  595 + 10,
  596 + retorno.data[i].minScale,
  597 + "minScale",
  598 + "javascript:i3GEOF.legenda.aviso()")
  599 + + "</td>");
588 600  
589   - ins.push("<td>"
590   - + $inputText(
591   - "",
592   - "",
593   - "i3GEOlegendaid_" + id,
594   - $trad('maxScale', i3GEOF.legenda.dicionario),
595   - 10,
596   - retorno.data[i].maxScale,
597   - "maxScale",
598   - "javascript:i3GEOF.legenda.aviso()") + "</td>");
  601 + ins.push("<td>" + $inputText(
  602 + "",
  603 + "",
  604 + "i3GEOlegendaid_" + id,
  605 + $trad('maxScale', i3GEOF.legenda.dicionario),
  606 + 10,
  607 + retorno.data[i].maxScale,
  608 + "maxScale",
  609 + "javascript:i3GEOF.legenda.aviso()")
  610 + + "</td>");
599 611  
600 612 if (n > 1) {
601   - ins.push("<td><img src='" + i3GEO.configura.locaplic + "/imagens/sobe1.png' style=cursor:pointer title='"
602   - + $trad('sobe', i3GEOF.legenda.dicionario) + "' onclick=i3GEOF.legenda.sobelinhaf('"
603   - + retorno.data[i].idclasse + "') /></td>");
  613 + ins.push("<td><img src='" + i3GEO.configura.locaplic
  614 + + "/imagens/sobe1.png' style=cursor:pointer title='"
  615 + + $trad('sobe', i3GEOF.legenda.dicionario)
  616 + + "' onclick=i3GEOF.legenda.sobelinhaf('"
  617 + + retorno.data[i].idclasse
  618 + + "') /></td>");
604 619  
605   - ins.push("<td><img src='" + i3GEO.configura.locaplic + "/imagens/desce1.png' style=cursor:pointer title='"
606   - + $trad('desce', i3GEOF.legenda.dicionario) + "' onclick=i3GEOF.legenda.descelinhaf('"
607   - + retorno.data[i].idclasse + "') /></td>");
  620 + ins.push("<td><img src='" + i3GEO.configura.locaplic
  621 + + "/imagens/desce1.png' style=cursor:pointer title='"
  622 + + $trad('desce', i3GEOF.legenda.dicionario)
  623 + + "' onclick=i3GEOF.legenda.descelinhaf('"
  624 + + retorno.data[i].idclasse
  625 + + "') /></td>");
608 626 }
609 627 ins.push("</tr>");
610 628 }
... ... @@ -612,22 +630,37 @@ i3GEOF.legenda =
612 630 $i("i3GEOlegendaresultado").innerHTML = ins.join("");
613 631 } else {
614 632 ajuda =
615   - "<br><p class=paragrafo >" + $trad('ajudaEscalaCores', i3GEOF.legenda.dicionario) + "<p class=paragrafo >"
616   - + $trad('msgEscalaCoresAuto', i3GEOF.legenda.dicionario) + "<p class=paragrafo >"
617   - + $trad('msgEscalaCoresIndividual', i3GEOF.legenda.dicionario) + "<p class=paragrafo >"
618   - + $trad('msgBandas', i3GEOF.legenda.dicionario) + "<p class=paragrafo >"
  633 + "<br><p class=paragrafo >" + $trad('ajudaEscalaCores', i3GEOF.legenda.dicionario)
  634 + + "<p class=paragrafo >"
  635 + + $trad('msgEscalaCoresAuto', i3GEOF.legenda.dicionario)
  636 + + "<p class=paragrafo >"
  637 + + $trad('msgEscalaCoresIndividual', i3GEOF.legenda.dicionario)
  638 + + "<p class=paragrafo >"
  639 + + $trad('msgBandas', i3GEOF.legenda.dicionario)
  640 + + "<p class=paragrafo >"
619 641 + $trad('msgReamostragem', i3GEOF.legenda.dicionario);
620 642 ins =
621   - "<p class=paragrafo >" + $trad('adicionaProcesso', i3GEOF.legenda.dicionario) + ":"
622   - + "<select onchange=i3GEOF.legenda.adicionaProcesso(this) >" + "<option value='' >"
623   - + $trad('selecionaProcesso', i3GEOF.legenda.dicionario) + "</option>" + "<option value='SCALE=' >"
624   - + $trad('escalaCores', i3GEOF.legenda.dicionario) + "</option>" + "<option value='RESAMPLE=' >"
625   - + $trad('reamostragem', i3GEOF.legenda.dicionario) + "</option>" + "<option value='BANDS=' >"
626   - + $trad('bandas', i3GEOF.legenda.dicionario) + "</option>"
627   - + "<option value='COLOR_MATCH_THRESHOLD=' >Threshold</option>" + "<option value='NODATA=' >Nodata</option>"
  643 + "<p class=paragrafo >" + $trad('adicionaProcesso', i3GEOF.legenda.dicionario)
  644 + + ":"
  645 + + "<select onchange=i3GEOF.legenda.adicionaProcesso(this) >"
  646 + + "<option value='' >"
  647 + + $trad('selecionaProcesso', i3GEOF.legenda.dicionario)
  648 + + "</option>"
  649 + + "<option value='SCALE=' >"
  650 + + $trad('escalaCores', i3GEOF.legenda.dicionario)
  651 + + "</option>"
  652 + + "<option value='RESAMPLE=' >"
  653 + + $trad('reamostragem', i3GEOF.legenda.dicionario)
  654 + + "</option>"
  655 + + "<option value='BANDS=' >"
  656 + + $trad('bandas', i3GEOF.legenda.dicionario)
  657 + + "</option>"
  658 + + "<option value='COLOR_MATCH_THRESHOLD=' >Threshold</option>"
  659 + + "<option value='NODATA=' >Nodata</option>"
628 660 + "</select><br>"
629 661 + '<p class=paragrafo ><input id=i3GEOlegendabotao16 class="executar" size="22" type="buttom" value="'
630   - + $trad('aplicaProcesso', i3GEOF.legenda.dicionario) + '">';
  662 + + $trad('aplicaProcesso', i3GEOF.legenda.dicionario)
  663 + + '">';
631 664 if (retorno.data[0].proc == "") {
632 665 ins += "<div style=width:80% id=i3GEOlegendaprocessos ></div>";
633 666 } else {
... ... @@ -654,8 +687,8 @@ i3GEOF.legenda =
654 687 i3GEOF.legenda.aguarde.visibility = "hidden";
655 688 }
656 689 },
657   - filtro : function (idRetorno){
658   - i3GEO.tema.dialogo.filtro(i3GEOF.legenda.tema,true,idRetorno);
  690 + filtro : function(idRetorno) {
  691 + i3GEO.tema.dialogo.filtro(i3GEOF.legenda.tema, true, idRetorno);
659 692 },
660 693 /*
661 694 * Function: aviso
... ... @@ -687,8 +720,12 @@ i3GEOF.legenda =
687 720 i3GEOF.legenda.mostralegenda();
688 721 i3GEOF.legenda.aposAlterarLegenda();
689 722 }, p =
690   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
691   - + "&funcao=alteraclasse&opcao=aplicacoresrgb&ext=" + ext + "&tema=" + i3GEOF.legenda.tema, cp = new cpaint();
  723 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  724 + + i3GEO.configura.sid
  725 + + "&funcao=alteraclasse&opcao=aplicacoresrgb&ext="
  726 + + ext
  727 + + "&tema="
  728 + + i3GEOF.legenda.tema, cp = new cpaint();
692 729 cp.set_transfer_mode('POST');
693 730 cp.set_response_type("JSON");
694 731 cp.call(p, "foo", temp, "cores=" + cores);
... ... @@ -751,7 +788,8 @@ i3GEOF.legenda =
751 788 }
752 789 i3GEOF.legenda.aguarde.visibility = "visible";
753 790 try {
754   - var tabela = $i("i3GEOlegendalegenda"), trs = tabela.getElementsByTagName("tr"), minScales = [], maxScales = [], nomes = [], exps = [], ids = [], t, nn, n, p, cp, temp;
  791 + var tabela = $i("i3GEOlegendalegenda"), trs = tabela.getElementsByTagName("tr"), minScales = [], maxScales = [], nomes = [], exps =
  792 + [], ids = [], t, nn, n, p, cp, temp;
755 793 // expn,
756 794 // re = new RegExp('"', "g");
757 795 for (t = 0; t < trs.length; t++) {
... ... @@ -770,10 +808,10 @@ i3GEOF.legenda =
770 808 exps.push(isn[0].value);
771 809 }
772 810 if (isn[0].name == "minScale") {
773   - minScales.push(parseInt(isn[0].value,10));
  811 + minScales.push(parseInt(isn[0].value, 10));
774 812 }
775 813 if (isn[0].name == "maxScale") {
776   - maxScales.push(parseInt(isn[0].value,10));
  814 + maxScales.push(parseInt(isn[0].value, 10));
777 815 }
778 816 }
779 817 }
... ... @@ -793,13 +831,26 @@ i3GEOF.legenda =
793 831 };
794 832 var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);
795 833 p =
796   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?" + "base64=sim" + "&g_sid=" + i3GEO.configura.sid
797   - + "&funcao=alteraclasse" + "&opcao=alteraclasses" + "&ext=" + ext;
  834 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?"
  835 + + "base64=sim"
  836 + + "&g_sid="
  837 + + i3GEO.configura.sid
  838 + + "&funcao=alteraclasse"
  839 + + "&opcao=alteraclasses"
  840 + + "&ext="
  841 + + ext;
798 842 cp = new cpaint();
799 843 cp.set_transfer_mode('POST');
800 844 cp.set_response_type("JSON");
801   - cp.call(p, "alteraclassesPost", temp, "ids=" + i3GEO.util.base64encode(ids) + "&nomes=" + i3GEO.util.base64encode(nomes)
802   - + "&exps=" + i3GEO.util.base64encode(exps) + "&minScales=" + minScales + "&maxScales=" + maxScales);
  845 + cp.call(p, "alteraclassesPost", temp, "ids=" + i3GEO.util.base64encode(ids)
  846 + + "&nomes="
  847 + + i3GEO.util.base64encode(nomes)
  848 + + "&exps="
  849 + + i3GEO.util.base64encode(exps)
  850 + + "&minScales="
  851 + + minScales
  852 + + "&maxScales="
  853 + + maxScales);
803 854 } catch (e) {
804 855 i3GEO.janela.tempoMsg("Erro: " + e);
805 856 i3GEOF.legenda.aguarde.visibility = "hidden";
... ... @@ -825,9 +876,12 @@ i3GEOF.legenda =
825 876 i3GEOF.legenda.mostralegenda();
826 877 };
827 878 var p =
828   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
829   - + "&funcao=alteraclasse&opcao=alterageometria&tema=" + i3GEOF.legenda.tema + "&tipo=" + $i("i3GEOlegentaTipoGeo").value, cp =
830   - new cpaint();
  879 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  880 + + i3GEO.configura.sid
  881 + + "&funcao=alteraclasse&opcao=alterageometria&tema="
  882 + + i3GEOF.legenda.tema
  883 + + "&tipo="
  884 + + $i("i3GEOlegentaTipoGeo").value, cp = new cpaint();
831 885 cp.set_response_type("JSON");
832 886 cp.call(p, "", retorna);
833 887 },
... ... @@ -846,8 +900,11 @@ i3GEOF.legenda =
846 900 }
847 901 i3GEOF.legenda.aguarde.visibility = "visible";
848 902 var p =
849   - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=contagemclasse"
850   - + "&tema=" + i3GEOF.legenda.tema, cp = new cpaint();
  903 + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
  904 + + i3GEO.configura.sid
  905 + + "&funcao=contagemclasse"
  906 + + "&tema="
  907 + + i3GEOF.legenda.tema, cp = new cpaint();
851 908 cp.set_response_type("JSON");
852 909 cp.call(p, "contagemclasse", i3GEOF.legenda.montaLegenda);
853 910 i3GEO.janela.tempoMsg($trad('consideraElementosVisiveis', i3GEOF.legenda.dicionario));
... ... @@ -867,8 +924,13 @@ i3GEOF.legenda =
867 924 }
868 925 var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);
869 926 var p =
870   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
871   - + "&funcao=alteraclasse&opcao=adicionaclasse" + "&tema=" + i3GEOF.legenda.tema + "&ext=" + ext, cp = new cpaint();
  927 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  928 + + i3GEO.configura.sid
  929 + + "&funcao=alteraclasse&opcao=adicionaclasse"
  930 + + "&tema="
  931 + + i3GEOF.legenda.tema
  932 + + "&ext="
  933 + + ext, cp = new cpaint();
872 934 cp.set_response_type("JSON");
873 935 cp.call(p, "alteraclasse", i3GEOF.legenda.mostralegenda);
874 936 },
... ... @@ -892,8 +954,13 @@ i3GEOF.legenda =
892 954 }
893 955 var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);
894 956 var p =
895   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
896   - + "&funcao=alteraclasse&opcao=adicionaopacidade" + "&tema=" + i3GEOF.legenda.tema + "&ext=" + ext, cp = new cpaint();
  957 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  958 + + i3GEO.configura.sid
  959 + + "&funcao=alteraclasse&opcao=adicionaopacidade"
  960 + + "&tema="
  961 + + i3GEOF.legenda.tema
  962 + + "&ext="
  963 + + ext, cp = new cpaint();
897 964 cp.set_response_type("JSON");
898 965 cp.call(p, "alteraclasse", retorna);
899 966 },
... ... @@ -917,8 +984,14 @@ i3GEOF.legenda =
917 984 i3GEOF.legenda.aguarde.visibility = "hidden";
918 985 i3GEOF.legenda.mostralegenda();
919 986 }, ci = $i("i3GEOlegendaacori").value, cf = $i("i3GEOlegendaacorf").value, cp = new cpaint(), p =
920   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
921   - + "&funcao=alteraCoresClasses&tema=" + i3GEOF.legenda.tema + "&cori=" + ci + "&corf=" + cf;
  987 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  988 + + i3GEO.configura.sid
  989 + + "&funcao=alteraCoresClasses&tema="
  990 + + i3GEOF.legenda.tema
  991 + + "&cori="
  992 + + ci
  993 + + "&corf="
  994 + + cf;
922 995 cp.set_response_type("JSON");
923 996 cp.call(p, "alteraCoresClasses", retornapaleta);
924 997 } catch (e) {
... ... @@ -946,8 +1019,10 @@ i3GEOF.legenda =
946 1019 i3GEOF.legenda.aguarde.visibility = "hidden";
947 1020 i3GEOF.legenda.mostralegenda();
948 1021 }, cp = new cpaint(), p =
949   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
950   - + "&funcao=inverteCoresClasses&tema=" + i3GEOF.legenda.tema;
  1022 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1023 + + i3GEO.configura.sid
  1024 + + "&funcao=inverteCoresClasses&tema="
  1025 + + i3GEOF.legenda.tema;
951 1026 cp.set_response_type("JSON");
952 1027 cp.call(p, "alteraCoresClasses", retornapaleta);
953 1028 } catch (e) {
... ... @@ -975,8 +1050,10 @@ i3GEOF.legenda =
975 1050 i3GEOF.legenda.aguarde.visibility = "hidden";
976 1051 i3GEOF.legenda.mostralegenda();
977 1052 }, cp = new cpaint(), p =
978   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
979   - + "&funcao=calculaTamanhoClasses&tema=" + i3GEOF.legenda.tema;
  1053 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1054 + + i3GEO.configura.sid
  1055 + + "&funcao=calculaTamanhoClasses&tema="
  1056 + + i3GEOF.legenda.tema;
980 1057 cp.set_response_type("JSON");
981 1058 cp.call(p, "calculaTamanhoClasses", retornapaleta);
982 1059 } catch (e) {
... ... @@ -1001,8 +1078,10 @@ i3GEOF.legenda =
1001 1078 i3GEOF.legenda.aguarde.visibility = "hidden";
1002 1079 i3GEOF.legenda.mostralegenda();
1003 1080 }, cp = new cpaint(), p =
1004   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1005   - + "&funcao=ordenaClasses&tema=" + i3GEOF.legenda.tema;
  1081 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1082 + + i3GEO.configura.sid
  1083 + + "&funcao=ordenaClasses&tema="
  1084 + + i3GEOF.legenda.tema;
1006 1085 cp.set_response_type("JSON");
1007 1086 cp.call(p, "foo", retornapaleta);
1008 1087 } catch (e) {
... ... @@ -1034,12 +1113,15 @@ i3GEOF.legenda =
1034 1113 }
1035 1114 i3GEOF.legenda.aguarde.visibility = "visible";
1036 1115 var p =
1037   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1038   - + "&funcao=ALTERACLASSE&opcao=sobeclasse&tema=" + i3GEOF.legenda.tema + "&idclasse=" + idclasse, cp = new cpaint(), temp =
1039   - function() {
1040   - i3GEOF.legenda.aguarde.visibility = "hidden";
1041   - i3GEOF.legenda.mostralegenda();
1042   - };
  1116 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1117 + + i3GEO.configura.sid
  1118 + + "&funcao=ALTERACLASSE&opcao=sobeclasse&tema="
  1119 + + i3GEOF.legenda.tema
  1120 + + "&idclasse="
  1121 + + idclasse, cp = new cpaint(), temp = function() {
  1122 + i3GEOF.legenda.aguarde.visibility = "hidden";
  1123 + i3GEOF.legenda.mostralegenda();
  1124 + };
1043 1125 cp.set_response_type("JSON");
1044 1126 cp.call(p, "foo", temp);
1045 1127 },
... ... @@ -1054,12 +1136,15 @@ i3GEOF.legenda =
1054 1136 }
1055 1137 i3GEOF.legenda.aguarde.visibility = "visible";
1056 1138 var p =
1057   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1058   - + "&funcao=ALTERACLASSE&opcao=desceclasse&tema=" + i3GEOF.legenda.tema + "&idclasse=" + idclasse, cp = new cpaint(), temp =
1059   - function() {
1060   - i3GEOF.legenda.aguarde.visibility = "hidden";
1061   - i3GEOF.legenda.mostralegenda();
1062   - };
  1139 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1140 + + i3GEO.configura.sid
  1141 + + "&funcao=ALTERACLASSE&opcao=desceclasse&tema="
  1142 + + i3GEOF.legenda.tema
  1143 + + "&idclasse="
  1144 + + idclasse, cp = new cpaint(), temp = function() {
  1145 + i3GEOF.legenda.aguarde.visibility = "hidden";
  1146 + i3GEOF.legenda.mostralegenda();
  1147 + };
1063 1148 ;
1064 1149 cp.set_response_type("JSON");
1065 1150 cp.call(p, "foo", temp);
... ... @@ -1090,9 +1175,12 @@ i3GEOF.legenda =
1090 1175 },
1091 1176 formEditorSimbolo : function() {
1092 1177 var p =
1093   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1094   - + "&funcao=editasimbolo&opcao=pegaparametros&tema=" + i3GEOF.legenda.tema + "&classe=" + i3GEOF.legenda.classe, cp =
1095   - new cpaint();
  1178 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1179 + + i3GEO.configura.sid
  1180 + + "&funcao=editasimbolo&opcao=pegaparametros&tema="
  1181 + + i3GEOF.legenda.tema
  1182 + + "&classe="
  1183 + + i3GEOF.legenda.classe, cp = new cpaint();
1096 1184 cp.set_response_type("JSON");
1097 1185 cp.call(p, "pegaParametrosMapa", i3GEOF.legenda.montaEditor);
1098 1186 },
... ... @@ -1113,8 +1201,12 @@ i3GEOF.legenda =
1113 1201 i3GEOF.legenda.aguarde.visibility = "visible";
1114 1202 var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten);
1115 1203 var p =
1116   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema="
1117   - + i3GEOF.legenda.tema + "&opcao=simbolounico&ext=" + ext, cp = new cpaint(), fim = function() {
  1204 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1205 + + i3GEO.configura.sid
  1206 + + "&funcao=alteraclasse&tema="
  1207 + + i3GEOF.legenda.tema
  1208 + + "&opcao=simbolounico&ext="
  1209 + + ext, cp = new cpaint(), fim = function() {
1118 1210 i3GEOF.legenda.aposAlterarLegenda();
1119 1211 i3GEOF.legenda.aguarde.visibility = "hidden";
1120 1212 };
... ... @@ -1139,15 +1231,19 @@ i3GEOF.legenda =
1139 1231 if (i3GEOF.legenda.aguarde.visibility === "visible") {
1140 1232 return;
1141 1233 }
1142   - var item = $i("i3GEOlegendaitensValorUnico").getElementsByTagName("select")[0].value,
1143   - itemNome = $i("i3GEOlegendaClassesValorUnico").getElementsByTagName("select")[0].value,
1144   - p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema="
  1234 + var item = $i("i3GEOlegendaitensValorUnico").getElementsByTagName("select")[0].value, itemNome =
  1235 + $i("i3GEOlegendaClassesValorUnico").getElementsByTagName("select")[0].value, p =
  1236 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1237 + + i3GEO.configura.sid
  1238 + + "&funcao=alteraclasse&tema="
1145 1239 + i3GEOF.legenda.tema
1146   - + "&item=" + item
1147   - + "&itemNome=" + itemNome
  1240 + + "&item="
  1241 + + item
  1242 + + "&itemNome="
  1243 + + itemNome
1148 1244 + "&opcao=valorunico"
1149   - + "&ignorar=" + $i("i3GEOlegendaignorar").value, cp =
1150   - new cpaint(), fim = function() {
  1245 + + "&ignorar="
  1246 + + $i("i3GEOlegendaignorar").value, cp = new cpaint(), fim = function() {
1151 1247 i3GEOF.legenda.aposAlterarLegenda();
1152 1248 i3GEOF.legenda.aguarde.visibility = "hidden";
1153 1249 };
... ... @@ -1183,15 +1279,23 @@ i3GEOF.legenda =
1183 1279 if (i3GEOF.legenda.aguarde.visibility === "visible") {
1184 1280 return;
1185 1281 }
1186   - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = $i("i3GEOlegendanclasses").value, ext =
1187   - i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
1188   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1189   - + "&funcao=alteraclasse&nclasses=" + nclasses + "&tema=" + i3GEOF.legenda.tema + "&item=" + item
1190   - + "&opcao=intervalosiguais&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext=" + ext, cp = new cpaint(), fim =
1191   - function() {
1192   - i3GEOF.legenda.aposAlterarLegenda();
1193   - i3GEOF.legenda.aguarde.visibility = "hidden";
1194   - };
  1282 + var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses =
  1283 + $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
  1284 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1285 + + i3GEO.configura.sid
  1286 + + "&funcao=alteraclasse&nclasses="
  1287 + + nclasses
  1288 + + "&tema="
  1289 + + i3GEOF.legenda.tema
  1290 + + "&item="
  1291 + + item
  1292 + + "&opcao=intervalosiguais&ignorar="
  1293 + + $i("i3GEOlegendaignorar").value
  1294 + + "&ext="
  1295 + + ext, cp = new cpaint(), fim = function() {
  1296 + i3GEOF.legenda.aposAlterarLegenda();
  1297 + i3GEOF.legenda.aguarde.visibility = "hidden";
  1298 + };
1195 1299 if (item == "") {
1196 1300 i3GEO.janela.tempoMsg("Selecione um item!");
1197 1301 return;
... ... @@ -1218,10 +1322,20 @@ i3GEOF.legenda =
1218 1322 if (i3GEOF.legenda.aguarde.visibility === "visible") {
1219 1323 return;
1220 1324 }
1221   - var item = $i("i3GEOlegendaitensValorQuartil").getElementsByTagName("select")[0].value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
1222   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema="
1223   - + i3GEOF.legenda.tema + "&item=" + item + "&opcao=quartis&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext="
1224   - + ext + "&tipoLegenda=" + $i("estiloClassesQuartis").value, cp = new cpaint(), fim = function() {
  1325 + var item = $i("i3GEOlegendaitensValorQuartil").getElementsByTagName("select")[0].value, ext =
  1326 + i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
  1327 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1328 + + i3GEO.configura.sid
  1329 + + "&funcao=alteraclasse&tema="
  1330 + + i3GEOF.legenda.tema
  1331 + + "&item="
  1332 + + item
  1333 + + "&opcao=quartis&ignorar="
  1334 + + $i("i3GEOlegendaignorar").value
  1335 + + "&ext="
  1336 + + ext
  1337 + + "&tipoLegenda="
  1338 + + $i("estiloClassesQuartis").value, cp = new cpaint(), fim = function() {
1225 1339 i3GEOF.legenda.aposAlterarLegenda();
1226 1340 i3GEOF.legenda.aguarde.visibility = "hidden";
1227 1341 };
... ... @@ -1251,11 +1365,20 @@ i3GEOF.legenda =
1251 1365 if (i3GEOF.legenda.aguarde.visibility === "visible") {
1252 1366 return;
1253 1367 }
1254   - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = $i("i3GEOlegendanclasses").value, ext =
1255   - i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
1256   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1257   - + "&funcao=alteraclasse&nclasses=" + nclasses + "&tema=" + i3GEOF.legenda.tema + "&item=" + item
1258   - + "&opcao=quantil&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext=" + ext, cp = new cpaint(), fim = function() {
  1368 + var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses =
  1369 + $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
  1370 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1371 + + i3GEO.configura.sid
  1372 + + "&funcao=alteraclasse&nclasses="
  1373 + + nclasses
  1374 + + "&tema="
  1375 + + i3GEOF.legenda.tema
  1376 + + "&item="
  1377 + + item
  1378 + + "&opcao=quantil&ignorar="
  1379 + + $i("i3GEOlegendaignorar").value
  1380 + + "&ext="
  1381 + + ext, cp = new cpaint(), fim = function() {
1259 1382 i3GEOF.legenda.aposAlterarLegenda();
1260 1383 i3GEOF.legenda.aguarde.visibility = "hidden";
1261 1384 };
... ... @@ -1285,15 +1408,23 @@ i3GEOF.legenda =
1285 1408 if (i3GEOF.legenda.aguarde.visibility === "visible") {
1286 1409 return;
1287 1410 }
1288   - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = $i("i3GEOlegendanclasses").value, ext =
1289   - i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
1290   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1291   - + "&funcao=alteraclasse&nclasses=" + nclasses + "&tema=" + i3GEOF.legenda.tema + "&item=" + item
1292   - + "&opcao=quebrasnaturais&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext=" + ext, cp = new cpaint(), fim =
1293   - function() {
1294   - i3GEOF.legenda.aposAlterarLegenda();
1295   - i3GEOF.legenda.aguarde.visibility = "hidden";
1296   - };
  1411 + var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses =
  1412 + $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p =
  1413 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1414 + + i3GEO.configura.sid
  1415 + + "&funcao=alteraclasse&nclasses="
  1416 + + nclasses
  1417 + + "&tema="
  1418 + + i3GEOF.legenda.tema
  1419 + + "&item="
  1420 + + item
  1421 + + "&opcao=quebrasnaturais&ignorar="
  1422 + + $i("i3GEOlegendaignorar").value
  1423 + + "&ext="
  1424 + + ext, cp = new cpaint(), fim = function() {
  1425 + i3GEOF.legenda.aposAlterarLegenda();
  1426 + i3GEOF.legenda.aguarde.visibility = "hidden";
  1427 + };
1297 1428 if (item == "") {
1298 1429 i3GEO.janela.tempoMsg($trad('selecionaUmItem', i3GEOF.legenda.dicionario));
1299 1430 return;
... ... @@ -1323,8 +1454,10 @@ i3GEOF.legenda =
1323 1454 return;
1324 1455 }
1325 1456 var p =
1326   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1327   - + "&funcao=alterarepresentacao&tema=" + i3GEOF.legenda.tema, cp = new cpaint(), fim = function() {
  1457 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1458 + + i3GEO.configura.sid
  1459 + + "&funcao=alterarepresentacao&tema="
  1460 + + i3GEOF.legenda.tema, cp = new cpaint(), fim = function() {
1328 1461 i3GEOF.legenda.aposAlterarLegenda();
1329 1462 i3GEOF.legenda.aguarde.visibility = "hidden";
1330 1463 };
... ... @@ -1367,95 +1500,120 @@ i3GEOF.legenda =
1367 1500 combo += "</select></div>";
1368 1501 $i("i3GEOlegendacomboestilos").innerHTML =
1369 1502 "<table class='lista5'><tr><td><span class=paragrafo >" + $trad('estiloEdicao', i3GEOF.legenda.dicionario)
1370   - + ":</span></td><td>" + combo
  1503 + + ":</span></td><td>"
  1504 + + combo
1371 1505 + "</td><td></td></tr></table>&nbsp;(ap&oacute;s adicionar ou excluir, aplique a altera&ccedil;&atilde;o)<br>";
1372   - b = new YAHOO.widget.Button("i3GEOlegendabotao11", {
1373   - onclick : {
1374   - fn : function() {
1375   - try {
1376   - if (i3GEOF.legenda.aguarde.visibility === "visible") {
1377   - return;
  1506 + b =
  1507 + new YAHOO.widget.Button("i3GEOlegendabotao11", {
  1508 + onclick : {
  1509 + fn : function() {
  1510 + try {
  1511 + if (i3GEOF.legenda.aguarde.visibility === "visible") {
  1512 + return;
  1513 + }
  1514 + i3GEOF.legenda.aguarde.visibility = "visible";
  1515 + var p =
  1516 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1517 + + i3GEO.configura.sid
  1518 + + "&funcao=editasimbolo&opcao=excluiestilo&tema="
  1519 + + i3GEOF.legenda.tema
  1520 + + "&classe="
  1521 + + i3GEOF.legenda.classe
  1522 + + "&estilo="
  1523 + + i3GEOF.legenda.estilo, cp = new cpaint();
  1524 + cp.set_response_type("JSON");
  1525 + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
  1526 + } catch (e) {
  1527 + i3GEO.janela.tempoMsg("Erro: " + e);
  1528 + i3GEOF.legenda.aguarde.visibility = "hidden";
1378 1529 }
1379   - i3GEOF.legenda.aguarde.visibility = "visible";
1380   - var p =
1381   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1382   - + "&funcao=editasimbolo&opcao=excluiestilo&tema=" + i3GEOF.legenda.tema + "&classe="
1383   - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint();
1384   - cp.set_response_type("JSON");
1385   - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
1386   - } catch (e) {
1387   - i3GEO.janela.tempoMsg("Erro: " + e);
1388   - i3GEOF.legenda.aguarde.visibility = "hidden";
1389 1530 }
1390 1531 }
1391   - }
1392   - });
  1532 + });
1393 1533 b.addClass("rodar100");
1394   - b = new YAHOO.widget.Button("i3GEOlegendabotao12", {
1395   - onclick : {
1396   - fn : function() {
1397   - try {
1398   - if (i3GEOF.legenda.aguarde.visibility === "visible") {
1399   - return;
  1534 + b =
  1535 + new YAHOO.widget.Button("i3GEOlegendabotao12", {
  1536 + onclick : {
  1537 + fn : function() {
  1538 + try {
  1539 + if (i3GEOF.legenda.aguarde.visibility === "visible") {
  1540 + return;
  1541 + }
  1542 + i3GEOF.legenda.aguarde.visibility = "visible";
  1543 + var p =
  1544 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1545 + + i3GEO.configura.sid
  1546 + + "&funcao=editasimbolo&opcao=adicionaestilo&tema="
  1547 + + i3GEOF.legenda.tema
  1548 + + "&classe="
  1549 + + i3GEOF.legenda.classe
  1550 + + "&estilo="
  1551 + + i3GEOF.legenda.estilo, cp = new cpaint();
  1552 + cp.set_response_type("JSON");
  1553 + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
  1554 + } catch (e) {
  1555 + i3GEO.janela.tempoMsg("Erro: " + e);
  1556 + i3GEOF.legenda.aguarde.visibility = "hidden";
1400 1557 }
1401   - i3GEOF.legenda.aguarde.visibility = "visible";
1402   - var p =
1403   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1404   - + "&funcao=editasimbolo&opcao=adicionaestilo&tema=" + i3GEOF.legenda.tema + "&classe="
1405   - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint();
1406   - cp.set_response_type("JSON");
1407   - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
1408   - } catch (e) {
1409   - i3GEO.janela.tempoMsg("Erro: " + e);
1410   - i3GEOF.legenda.aguarde.visibility = "hidden";
1411 1558 }
1412 1559 }
1413   - }
1414   - });
  1560 + });
1415 1561 b.addClass("rodar100");
1416   - b = new YAHOO.widget.Button("i3GEOlegendabotao13", {
1417   - onclick : {
1418   - fn : function() {
1419   - try {
1420   - if (i3GEOF.legenda.aguarde.visibility === "visible") {
1421   - return;
  1562 + b =
  1563 + new YAHOO.widget.Button("i3GEOlegendabotao13", {
  1564 + onclick : {
  1565 + fn : function() {
  1566 + try {
  1567 + if (i3GEOF.legenda.aguarde.visibility === "visible") {
  1568 + return;
  1569 + }
  1570 + i3GEOF.legenda.aguarde.visibility = "visible";
  1571 + var p =
  1572 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1573 + + i3GEO.configura.sid
  1574 + + "&funcao=editasimbolo&opcao=sobeestilo&tema="
  1575 + + i3GEOF.legenda.tema
  1576 + + "&classe="
  1577 + + i3GEOF.legenda.classe
  1578 + + "&estilo="
  1579 + + i3GEOF.legenda.estilo, cp = new cpaint();
  1580 + cp.set_response_type("JSON");
  1581 + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
  1582 + } catch (e) {
  1583 + i3GEO.janela.tempoMsg("Erro: " + e);
  1584 + i3GEOF.legenda.aguarde.visibility = "hidden";
1422 1585 }
1423   - i3GEOF.legenda.aguarde.visibility = "visible";
1424   - var p =
1425   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1426   - + "&funcao=editasimbolo&opcao=sobeestilo&tema=" + i3GEOF.legenda.tema + "&classe="
1427   - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint();
1428   - cp.set_response_type("JSON");
1429   - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
1430   - } catch (e) {
1431   - i3GEO.janela.tempoMsg("Erro: " + e);
1432   - i3GEOF.legenda.aguarde.visibility = "hidden";
1433 1586 }
1434 1587 }
1435   - }
1436   - });
  1588 + });
1437 1589 b.addClass("rodar100");
1438   - b = new YAHOO.widget.Button("i3GEOlegendabotao14", {
1439   - onclick : {
1440   - fn : function() {
1441   - try {
1442   - if (i3GEOF.legenda.aguarde.visibility === "visible") {
1443   - return;
  1590 + b =
  1591 + new YAHOO.widget.Button("i3GEOlegendabotao14", {
  1592 + onclick : {
  1593 + fn : function() {
  1594 + try {
  1595 + if (i3GEOF.legenda.aguarde.visibility === "visible") {
  1596 + return;
  1597 + }
  1598 + i3GEOF.legenda.aguarde.visibility = "visible";
  1599 + var p =
  1600 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1601 + + i3GEO.configura.sid
  1602 + + "&funcao=editasimbolo&opcao=desceestilo&tema="
  1603 + + i3GEOF.legenda.tema
  1604 + + "&classe="
  1605 + + i3GEOF.legenda.classe
  1606 + + "&estilo="
  1607 + + i3GEOF.legenda.estilo, cp = new cpaint();
  1608 + cp.set_response_type("JSON");
  1609 + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
  1610 + } catch (e) {
  1611 + i3GEO.janela.tempoMsg("Erro: " + e);
  1612 + i3GEOF.legenda.aguarde.visibility = "hidden";
1444 1613 }
1445   - i3GEOF.legenda.aguarde.visibility = "visible";
1446   - var p =
1447   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1448   - + "&funcao=editasimbolo&opcao=desceestilo&tema=" + i3GEOF.legenda.tema + "&classe="
1449   - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint();
1450   - cp.set_response_type("JSON");
1451   - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor);
1452   - } catch (e) {
1453   - i3GEO.janela.tempoMsg("Erro: " + e);
1454   - i3GEOF.legenda.aguarde.visibility = "hidden";
1455 1614 }
1456 1615 }
1457   - }
1458   - });
  1616 + });
1459 1617 b.addClass("rodar100");
1460 1618 i3GEOF.legenda.aguarde.visibility = "hidden";
1461 1619 i3GEOF.legenda.mostraEstilo(0);
... ... @@ -1482,137 +1640,219 @@ i3GEOF.legenda =
1482 1640 linha = linha.split("#");
1483 1641 tipoLayer = linha[0];
1484 1642 d =
1485   - "<img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"outlinecolor\",\"i3GEOlegendaoutlinecolor\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1486   - + "<p class='paragrafo'>Cor do contorno:</p>"
1487   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1488   - + "<div class='i3geoForm i3geoFormIconeAquarela' >"
1489   - + "<input type=text value='"
1490   - + linha[2]
1491   - + "' id='i3GEOlegendaoutlinecolor' />"
1492   - + "</div></form>"
  1643 + "<img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"outlinecolor\",\"i3GEOlegendaoutlinecolor\")' title='" + $trad(
  1644 + 'aplicatodos',
  1645 + i3GEOF.legenda.dicionario)
  1646 + + "' src='"
  1647 + + i3GEO.configura.locaplic
  1648 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1649 + + "<p class='paragrafo'>Cor do contorno:</p>"
  1650 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1651 + + "<div class='i3geoForm i3geoFormIconeAquarela' >"
  1652 + + "<input type=text value='"
  1653 + + linha[2]
  1654 + + "' id='i3GEOlegendaoutlinecolor' />"
  1655 + + "</div></form>"
  1656 +
  1657 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"color\",\"i3GEOlegendacolor\")' title='"
  1658 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1659 + + "' src='"
  1660 + + i3GEO.configura.locaplic
  1661 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1662 + + "<p class='paragrafo'>"
  1663 + + $trad('corFrente', i3GEOF.legenda.dicionario)
  1664 + + ":</p>"
  1665 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1666 + + "<div class='i3geoForm i3geoFormIconeAquarela' >"
  1667 + + "<input type=text value='"
  1668 + + linha[4]
  1669 + + "' id='i3GEOlegendacolor' />"
  1670 + + "</div></form>"
  1671 +
  1672 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"backgroundcolor\",\"i3GEOlegendabackgroundcolor\")' title='"
  1673 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1674 + + "' src='"
  1675 + + i3GEO.configura.locaplic
  1676 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1677 + + "<p class='paragrafo'>"
  1678 + + $trad('corFundo', i3GEOF.legenda.dicionario)
  1679 + + ":</p>"
  1680 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1681 + + "<div class='i3geoForm i3geoFormIconeAquarela' >"
  1682 + + "<input type=text value='"
  1683 + + linha[3]
  1684 + + "' id='i3GEOlegendabackgroundcolor' />"
  1685 + + "</div></form>"
1493 1686  
1494   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"color\",\"i3GEOlegendacolor\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1495   - + "<p class='paragrafo'>" + $trad('corFrente', i3GEOF.legenda.dicionario) + ":</p>"
1496   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1497   - + "<div class='i3geoForm i3geoFormIconeAquarela' >"
1498   - + "<input type=text value='"
1499   - + linha[4]
1500   - + "' id='i3GEOlegendacolor' />"
1501   - + "</div></form>"
  1687 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"size\",\"i3GEOlegendasizes\")' title='"
  1688 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1689 + + "' src='"
  1690 + + i3GEO.configura.locaplic
  1691 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1692 + + "<p class='paragrafo'>"
  1693 + + $trad('tamanhoEspacamento', i3GEOF.legenda.dicionario)
  1694 + + ":</p>"
  1695 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1696 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1697 + + "<input type=text value='"
  1698 + + linha[6]
  1699 + + "' id='i3GEOlegendasizes' />"
  1700 + + "</form></div>"
1502 1701  
1503   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"backgroundcolor\",\"i3GEOlegendabackgroundcolor\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1504   - + "<p class='paragrafo'>" + $trad('corFundo', i3GEOF.legenda.dicionario) + ":</p>"
1505   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1506   - + "<div class='i3geoForm i3geoFormIconeAquarela' >"
1507   - + "<input type=text value='"
1508   - + linha[3]
1509   - + "' id='i3GEOlegendabackgroundcolor' />"
1510   - + "</div></form>"
  1702 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"width\",\"i3GEOlegendawidth\")' title='"
  1703 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1704 + + "' src='"
  1705 + + i3GEO.configura.locaplic
  1706 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1707 + + "<p class='paragrafo'>"
  1708 + + $trad('espessura', i3GEOF.legenda.dicionario)
  1709 + + ":<p>"
  1710 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1711 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1712 + + "<input type=text value='"
  1713 + + linha[8]
  1714 + + "' id='i3GEOlegendawidth' />"
  1715 + + "</form></div>"
1511 1716  
1512   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"size\",\"i3GEOlegendasizes\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1513   - + "<p class='paragrafo'>"
1514   - + $trad('tamanhoEspacamento', i3GEOF.legenda.dicionario)
1515   - + ":</p>"
1516   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1517   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1518   - + "<input type=text value='"
1519   - + linha[6]
1520   - + "' id='i3GEOlegendasizes' />"
1521   - + "</form></div>"
  1717 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"pattern\",\"i3GEOlegendapattern\")' title='"
  1718 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1719 + + "' src='"
  1720 + + i3GEO.configura.locaplic
  1721 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1722 + + "<p class='paragrafo'>"
  1723 + + $trad('padraoRepeticao', i3GEOF.legenda.dicionario)
  1724 + + ":</p>"
  1725 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1726 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1727 + + "<input type=text value='"
  1728 + + linha[9]
  1729 + + "' id='i3GEOlegendapattern' />"
  1730 + + "</form></div>"
1522 1731  
1523   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"width\",\"i3GEOlegendawidth\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1524   - + "<p class='paragrafo'>"
1525   - + $trad('espessura', i3GEOF.legenda.dicionario)
1526   - + ":<p>"
1527   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1528   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1529   - + "<input type=text value='"
1530   - + linha[8]
1531   - + "' id='i3GEOlegendawidth' />"
1532   - + "</form></div>"
  1732 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"opacity\",\"i3GEOlegendaopacidade\")' title='"
  1733 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1734 + + "' src='"
  1735 + + i3GEO.configura.locaplic
  1736 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1737 + + "<p class='paragrafo'>"
  1738 + + $trad('opacidade', i3GEOF.legenda.dicionario)
  1739 + + ":</p>"
  1740 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1741 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1742 + + "<input type=text value='"
  1743 + + linha[7]
  1744 + + "' id='i3GEOlegendaopacidade' />"
  1745 + + "</form></div>"
1533 1746  
1534   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"pattern\",\"i3GEOlegendapattern\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1535   - + "<p class='paragrafo'>"
1536   - + $trad('padraoRepeticao', i3GEOF.legenda.dicionario)
1537   - + ":</p>"
1538   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1539   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1540   - + "<input type=text value='"
1541   - + linha[9]
1542   - + "' id='i3GEOlegendapattern' />"
1543   - + "</form></div>"
  1747 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"angle\",\"i3GEOlegendaangulo\")' title='"
  1748 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1749 + + "' src='"
  1750 + + i3GEO.configura.locaplic
  1751 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1752 + + "<p class='paragrafo'>"
  1753 + + $trad('angulo', i3GEOF.legenda.dicionario)
  1754 + + ":</p>"
  1755 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1756 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1757 + + "<input type=text value='"
  1758 + + linha[10]
  1759 + + "' id='i3GEOlegendaangulo' />"
  1760 + + "</form></div>"
1544 1761  
1545   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"opacity\",\"i3GEOlegendaopacidade\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1546   - + "<p class='paragrafo'>"
1547   - + $trad('opacidade', i3GEOF.legenda.dicionario)
1548   - + ":</p>"
1549   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1550   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1551   - + "<input type=text value='"
1552   - + linha[7]
1553   - + "' id='i3GEOlegendaopacidade' />"
1554   - + "</form></div>"
  1762 + + "<br>"
  1763 + + "<p class='paragrafo'>"
  1764 + + $trad('symbolscale', i3GEOF.legenda.dicionario)
  1765 + + ":</p>"
  1766 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1767 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1768 + + "<input type=text value='"
  1769 + + linha[11]
  1770 + + "' id='i3GEOlegendasymbolscale' />"
  1771 + + "</form></div>"
1555 1772  
1556   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"angle\",\"i3GEOlegendaangulo\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1557   - + "<p class='paragrafo'>"
1558   - + $trad('angulo', i3GEOF.legenda.dicionario)
1559   - + ":</p>"
1560   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1561   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1562   - + "<input type=text value='"
1563   - + linha[10]
1564   - + "' id='i3GEOlegendaangulo' />"
1565   - + "</form></div>"
  1773 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"minsize\",\"i3GEOlegendaminsize\")' title='"
  1774 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1775 + + "' src='"
  1776 + + i3GEO.configura.locaplic
  1777 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1778 + + "<p class='paragrafo'>"
  1779 + + $trad('minsize', i3GEOF.legenda.dicionario)
  1780 + + ":</p>"
  1781 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1782 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1783 + + "<input type=text value='"
  1784 + + linha[12]
  1785 + + "' id='i3GEOlegendaminsize' />"
  1786 + + "</form></div>"
1566 1787  
1567   - + "<br><img style='float:left;' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif' />"
1568   - + "<p class='paragrafo'>"
1569   - + $trad('symbolscale', i3GEOF.legenda.dicionario)
1570   - + ":</p>"
1571   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1572   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1573   - + "<input type=text value='"
1574   - + linha[11]
1575   - + "' id='i3GEOlegendasymbolscale' />"
1576   - + "</form></div>"
  1788 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"maxsize\",\"i3GEOlegendamaxsize\")' title='"
  1789 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1790 + + "' src='"
  1791 + + i3GEO.configura.locaplic
  1792 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1793 + + "<p class='paragrafo'>"
  1794 + + $trad('maxsize', i3GEOF.legenda.dicionario)
  1795 + + ":</p>"
  1796 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1797 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1798 + + "<input type=text value='"
  1799 + + linha[13]
  1800 + + "' id='i3GEOlegendamaxsize' />"
  1801 + + "</form></div>"
1577 1802  
1578   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"angle\",\"i3GEOlegendaangulo\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1579   - + "<p class='paragrafo'>"
1580   - + $trad('minsize', i3GEOF.legenda.dicionario)
1581   - + ":</p>"
1582   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1583   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1584   - + "<input type=text value='"
1585   - + linha[12]
1586   - + "' id='i3GEOlegendaminsize' />"
1587   - + "</form></div>"
  1803 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"offsetx\",\"i3GEOlegendasymbolname\")' title='"
  1804 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1805 + + "' src='"
  1806 + + i3GEO.configura.locaplic
  1807 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1808 + + "<p class='paragrafo'>"
  1809 + + $trad('offsetx', i3GEOF.legenda.dicionario)
  1810 + + ":</p>"
  1811 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1812 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1813 + + "<input type=text value='"
  1814 + + linha[14]
  1815 + + "' id='i3GEOlegendaoffsetx' />"
  1816 + + "</form></div>"
1588 1817  
1589   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"angle\",\"i3GEOlegendaangulo\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1590   - + "<p class='paragrafo'>"
1591   - + $trad('maxsize', i3GEOF.legenda.dicionario)
1592   - + ":</p>"
1593   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1594   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1595   - + "<input type=text value='"
1596   - + linha[13]
1597   - + "' id='i3GEOlegendamaxsize' />"
1598   - + "</form></div>"
  1818 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"offsety\",\"i3GEOlegendasymbolname\")' title='"
  1819 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1820 + + "' src='"
  1821 + + i3GEO.configura.locaplic
  1822 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1823 + + "<p class='paragrafo'>"
  1824 + + $trad('offsety', i3GEOF.legenda.dicionario)
  1825 + + ":</p>"
  1826 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1827 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1828 + + "<input type=text value='"
  1829 + + linha[15]
  1830 + + "' id='i3GEOlegendaoffsety' />"
  1831 + + "</form></div>"
1599 1832  
1600   - + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"symbolname\",\"i3GEOlegendasymbolname\")' title='"+$trad('aplicatodos', i3GEOF.legenda.dicionario)+"' src='"+i3GEO.configura.locaplic+"/imagens/oxygen/16x16/tools-wizard.png' />"
1601   - + "<p class='paragrafo'>"
1602   - + $trad('simbolo', i3GEOF.legenda.dicionario)
1603   - + ":</p>"
1604   - + "<div class='i3geoForm i3geoFormIconeEdita' >"
1605   - + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
1606   - + "<input type=text value='"
1607   - + linha[5]
1608   - + "' id='i3GEOlegendasymbolname' />"
1609   - + "</form></div>";
  1833 + + "<br><img style='float:left;' onclick='i3GEOF.legenda.aplicaTodasClasses(\"symbolname\",\"i3GEOlegendasymbolname\")' title='"
  1834 + + $trad('aplicatodos', i3GEOF.legenda.dicionario)
  1835 + + "' src='"
  1836 + + i3GEO.configura.locaplic
  1837 + + "/imagens/oxygen/16x16/tools-wizard.png' />"
  1838 + + "<p class='paragrafo'>"
  1839 + + $trad('simbolo', i3GEOF.legenda.dicionario)
  1840 + + ":</p>"
  1841 + + "<div class='i3geoForm i3geoFormIconeEdita' >"
  1842 + + "<form onsubmit='i3GEOF.legenda.aplicaEstilo();return false;'>"
  1843 + + "<input type=text value='"
  1844 + + linha[5]
  1845 + + "' id='i3GEOlegendasymbolname' />"
  1846 + + "</form></div>";
1610 1847  
1611 1848 $i("i3GEOlegendaParametrosEstilos").innerHTML = d;
1612 1849 i3GEO.util.aplicaAquarela("i3GEOlegendaParametrosEstilos");
1613 1850 p =
1614   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=editasimbolo&tipo="
1615   - + tipoLayer + "&opcao=listaSimbolos&onclick=i3GEOF.legenda.aplicaSimbolo(this)";
  1851 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1852 + + i3GEO.configura.sid
  1853 + + "&funcao=editasimbolo&tipo="
  1854 + + tipoLayer
  1855 + + "&opcao=listaSimbolos&onclick=i3GEOF.legenda.aplicaSimbolo(this)";
1616 1856 cp = new cpaint();
1617 1857 cp.set_response_type("JSON");
1618 1858 cp.call(p, "editasimbolo", i3GEOF.legenda.listaSimbolos);
... ... @@ -1666,26 +1906,16 @@ i3GEOF.legenda =
1666 1906 return;
1667 1907 }
1668 1908 i3GEOF.legenda.aguarde.visibility = "visible";
1669   - var i, p, cp, fim,
1670   - outlinecolor = $i("i3GEOlegendaoutlinecolor").value,
1671   - backgroundcolor = $i("i3GEOlegendabackgroundcolor").value,
1672   - color = $i("i3GEOlegendacolor").value,
1673   - symbolname = $i("i3GEOlegendasymbolname").value,
1674   - simbolos = $i("i3GEOlegendasimbolos").getElementsByTagName("img"),
1675   - valido = "nao",
1676   - n = simbolos.length,
1677   - size = $i("i3GEOlegendasizes").value,
1678   - width = $i("i3GEOlegendawidth").value,
1679   - pattern = $i("i3GEOlegendapattern").value,
1680   - opacidade = $i("i3GEOlegendaopacidade").value,
1681   - angle = $i("i3GEOlegendaangulo").value,
1682   - symbolscale = $i("i3GEOlegendasymbolscale").value,
1683   - minsize = $i("i3GEOlegendaminsize").value,
1684   - maxsize = $i("i3GEOlegendamaxsize").value;
1685   - if(symbolscale != ""){
1686   - symbolscale = parseInt(symbolscale,10);
1687   - }
1688   - else{
  1909 + var i, p, cp, fim, outlinecolor = $i("i3GEOlegendaoutlinecolor").value, backgroundcolor =
  1910 + $i("i3GEOlegendabackgroundcolor").value, color = $i("i3GEOlegendacolor").value, symbolname =
  1911 + $i("i3GEOlegendasymbolname").value, simbolos = $i("i3GEOlegendasimbolos").getElementsByTagName("img"), valido = "nao", n =
  1912 + simbolos.length, size = $i("i3GEOlegendasizes").value, width = $i("i3GEOlegendawidth").value, pattern =
  1913 + $i("i3GEOlegendapattern").value, opacidade = $i("i3GEOlegendaopacidade").value, angle = $i("i3GEOlegendaangulo").value, symbolscale =
  1914 + $i("i3GEOlegendasymbolscale").value, minsize = $i("i3GEOlegendaminsize").value, maxsize =
  1915 + $i("i3GEOlegendamaxsize").value, offsetx = $i("i3GEOlegendaoffsetx").value, offsety = $i("i3GEOlegendaoffsety").value;
  1916 + if (symbolscale != "") {
  1917 + symbolscale = parseInt(symbolscale, 10);
  1918 + } else {
1689 1919 symbolscale = -1;
1690 1920 }
1691 1921 for (i = 0; i < n; i++) {
... ... @@ -1699,22 +1929,42 @@ i3GEOF.legenda =
1699 1929 // return;
1700 1930 }
1701 1931 p =
1702   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1703   - + "&funcao=editasimbolo&opcao=aplica&tema=" + i3GEOF.legenda.tema
1704   - + "&classe=" + i3GEOF.legenda.classe
1705   - + "&estilo=" + i3GEOF.legenda.estilo
1706   - + "&outlinecolor=" + outlinecolor
1707   - + "&backgroundcolor=" + backgroundcolor
1708   - + "&color=" + color
1709   - + "&symbolname=" + symbolname
1710   - + "&width=" + width
1711   - + "&pattern=" + pattern
1712   - + "&size=" + size
1713   - + "&opacidade=" + opacidade
1714   - + "&angle=" + angle
1715   - + "&symbolscale=" + symbolscale
1716   - + "&minsize=" + minsize
1717   - + "&maxsize=" + maxsize;
  1932 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  1933 + + i3GEO.configura.sid
  1934 + + "&funcao=editasimbolo&opcao=aplica&tema="
  1935 + + i3GEOF.legenda.tema
  1936 + + "&classe="
  1937 + + i3GEOF.legenda.classe
  1938 + + "&estilo="
  1939 + + i3GEOF.legenda.estilo
  1940 + + "&outlinecolor="
  1941 + + outlinecolor
  1942 + + "&backgroundcolor="
  1943 + + backgroundcolor
  1944 + + "&color="
  1945 + + color
  1946 + + "&symbolname="
  1947 + + symbolname
  1948 + + "&width="
  1949 + + width
  1950 + + "&pattern="
  1951 + + pattern
  1952 + + "&size="
  1953 + + size
  1954 + + "&opacidade="
  1955 + + opacidade
  1956 + + "&angle="
  1957 + + angle
  1958 + + "&symbolscale="
  1959 + + symbolscale
  1960 + + "&minsize="
  1961 + + minsize
  1962 + + "&maxsize="
  1963 + + maxsize
  1964 + + "&offsetx="
  1965 + + offsetx
  1966 + + "&offsety="
  1967 + + offsety;
1718 1968 cp = new cpaint();
1719 1969 fim = function() {
1720 1970 i3GEOF.legenda.aposAlterarLegenda();
... ... @@ -1778,7 +2028,9 @@ i3GEOF.legenda =
1778 2028 ins.push("<tr><td style='text-align:left;border-bottom:0 none white' >" + retorno.data[i].nomeclasse
1779 2029 + "</td></tr>");
1780 2030 t = (retorno.data[i].nreg * 100) / retorno.data[i].totalreg;
1781   - ins.push("<tr><td style=text-align:left ><img height=15px width=" + t + "% src='" + retorno.data[i].imagem
  2031 + ins.push("<tr><td style=text-align:left ><img height=15px width=" + t
  2032 + + "% src='"
  2033 + + retorno.data[i].imagem
1782 2034 + "' /></td></tr>");
1783 2035 i3GEOF.legenda.dadosGrafico.push(retorno.data[i].nomeclasse + ";" + retorno.data[i].nreg);
1784 2036 }
... ... @@ -1800,8 +2052,10 @@ i3GEOF.legenda =
1800 2052 });
1801 2053 b.addClass("abrir");
1802 2054 }, p =
1803   - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid
1804   - + "&funcao=contagemclasse&tema=" + i3GEOF.legenda.tema, cp = new cpaint();
  2055 + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
  2056 + + i3GEO.configura.sid
  2057 + + "&funcao=contagemclasse&tema="
  2058 + + i3GEOF.legenda.tema, cp = new cpaint();
1805 2059 // cp.set_debug(2)
1806 2060 cp.set_response_type("JSON");
1807 2061 cp.call(p, "cocontagemclasse", monta);
... ... @@ -1853,8 +2107,12 @@ i3GEOF.legenda =
1853 2107 i3GEOF.legenda.aposAlterarLegenda();
1854 2108 };
1855 2109 p =
1856   - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid
1857   - + "&funcao=aplicaProcessos&lista=" + lista + "&tema=" + i3GEOF.legenda.tema;
  2110 + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
  2111 + + i3GEO.configura.sid
  2112 + + "&funcao=aplicaProcessos&lista="
  2113 + + lista
  2114 + + "&tema="
  2115 + + i3GEOF.legenda.tema;
1858 2116 cp = new cpaint();
1859 2117 cp.set_response_type("JSON");
1860 2118 cp.call(p, "aplicaProcessos", temp);
... ... @@ -1871,29 +2129,26 @@ i3GEOF.legenda =
1871 2129 adicionaProcesso : function(s) {
1872 2130 $i("i3GEOlegendaprocessos").innerHTML += $inputText("", "", "", "", 50, s.value);
1873 2131 },
1874   - aplicaTodasClasses : function(parametro,id){
  2132 + aplicaTodasClasses : function(parametro, id) {
1875 2133 var valor = $i(id).value;
1876   - i3GEO.janela.confirma(
1877   - "Aplica "+parametro + " = " + valor +" ?",
1878   - 300,
1879   - $trad("x14"),
1880   - "",
1881   - function(){
1882   - var temp = function() {
1883   - //i3GEOF.legenda.mostralegenda();
1884   - i3GEOF.legenda.aposAlterarLegenda();
1885   - },p,cp;
1886   - p =
1887   - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
  2134 + i3GEO.janela.confirma("Aplica " + parametro + " = " + valor + " ?", 300, $trad("x14"), "", function() {
  2135 + var temp = function() {
  2136 + // i3GEOF.legenda.mostralegenda();
  2137 + i3GEOF.legenda.aposAlterarLegenda();
  2138 + }, p, cp;
  2139 + p =
  2140 + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid="
1888 2141 + i3GEO.configura.sid
1889 2142 + "&funcao=aplicaTodasClasses"
1890   - + "&parametro=" + parametro
1891   - + "&valor=" + valor
1892   - + "&tema=" + i3GEOF.legenda.tema;
1893   - cp = new cpaint();
1894   - cp.set_response_type("JSON");
1895   - cp.call(p, "foo", temp);
1896   - }
1897   - );
  2143 + + "&parametro="
  2144 + + parametro
  2145 + + "&valor="
  2146 + + valor
  2147 + + "&tema="
  2148 + + i3GEOF.legenda.tema;
  2149 + cp = new cpaint();
  2150 + cp.set_response_type("JSON");
  2151 + cp.call(p, "foo", temp);
  2152 + });
1898 2153 }
1899 2154 };
1900 2155 \ No newline at end of file
... ...