From b6833c185af89106e0013caa510beeedccc22bda Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 9 Jun 2015 23:39:54 +0000 Subject: [PATCH] Inclusão de offsetx e y no editor de símbolos da legenda --- classesphp/classe_legenda.php | 8 ++++++-- classesphp/mapa_controle.php | 2 +- ferramentas/legenda/dicionario.js | 1292 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ferramentas/legenda/index.js | 1251 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 4 files changed, 1520 insertions(+), 1033 deletions(-) diff --git a/classesphp/classe_legenda.php b/classesphp/classe_legenda.php index b4c459a..c6aabda 100644 --- a/classesphp/classe_legenda.php +++ b/classesphp/classe_legenda.php @@ -629,7 +629,7 @@ parameters: $classe - Índice da classe. return: -string com o +string com o tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbolname,size,symbolscaledenom,maxsize,minsize| */ function pegaParametros($classe) @@ -662,6 +662,8 @@ tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbolname,size,sy $linha[] = $this->layer->symbolscaledenom; $linha[] = $estilo->minsize; $linha[] = $estilo->maxsize; + $linha[] = $estilo->offsetx; + $linha[] = $estilo->offsety; $linhas[] = $tipoLayer."#".implode("#",$linha); } //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. $opacidade - Opacidade */ - function aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize=0,$maxsize=500) + function aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize=0,$maxsize=500,$offsetx=0,$offsety=0) { if(!$this->layer){return "erro";} if(!empty($pattern)) @@ -743,6 +745,8 @@ $opacidade - Opacidade } $estilo->set("minsize",$minsize); $estilo->set("maxsize",$maxsize); + $estilo->set("offsetx",$offsetx); + $estilo->set("offsety",$offsety); if ($this->layer->getmetadata("sld") != "") { $sld = $this->layer->getmetadata("sld"); diff --git a/classesphp/mapa_controle.php b/classesphp/mapa_controle.php index 16d6c12..c7ce10c 100644 --- a/classesphp/mapa_controle.php +++ b/classesphp/mapa_controle.php @@ -2163,7 +2163,7 @@ switch (strtoupper($funcao)) } if ($opcao == "aplica") { - $retorno = $m->aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize,$maxsize); + $retorno = $m->aplicaParametro($classe,$estilo,$outlinecolor,$backgroundcolor,$color,$symbolname,$size,$opacidade,$width,$pattern,$angle,$minsize,$maxsize,$offsetx,$offsety); if(!empty($symbolscale)){ $m->layer->set("symbolscaledenom",$symbolscale); } diff --git a/ferramentas/legenda/dicionario.js b/ferramentas/legenda/dicionario.js index c96ea37..3a9a2ec 100644 --- a/ferramentas/legenda/dicionario.js +++ b/ferramentas/legenda/dicionario.js @@ -1,534 +1,762 @@ //+$trad(1,i3GEOF.legenda.dicionario)+ -i3GEOF.legenda.dicionario = { - 'ajuda' : [ { - pt : "Para acessar o editor, clique em um símbolo na guia Legenda", - en : "", - es : "" - } ], - 'propriedades' : [ { - pt : "Propriedades", - en : "", - es : "" - } ], - "legenda" : [ { - pt : "Legenda", - en : "", - es : "" - } ], - "classes" : [ { - pt : "Classes", - en : "", - es : "" - } ], - 'editor' : [ { - pt : "Editor", - en : "", - es : "" - } ], - 'graficos' : [ { - pt : "Gráficos", - en : "", - es : "" - } ], - 'importaExportaSLD' : [ { - pt : "Importar/exportar SLD", - en : "", - es : "" - } ], - 'mostraClassesLegenda' : [ { - pt : "Mostra as classes desse tema na legenda do mapa", - en : "", - es : "" - } ], - 'incluiNumeroOcorrencia' : [ { - pt : "Inclui número de ocorrências", - en : "", - es : "" - } ], - 'incluiNumeroOcorrencia2' : [ { - pt : "incluir o número de ocorrências no nome de cada classe", - en : "", - es : "" - } ], - 'aplicaOpacidadeVariavel' : [ { - pt : "Aplica opacidade variável", - en : "", - es : "" - } ], - 'aplicaOpacidade' : [ { - pt : "aplicar opacidade nas classes existente, variando de 10 até 100", - en : "", - es : "" - } ], - 'escolhePaletaCores' : [ { - pt : "Escolher paleta de cores", - en : "", - es : "" - } ], - 'variaCoresExtremos' : [ { - pt : "escolher e aplicar as variações de cores, entre dois extremos, nas classes existentes", - en : "", - es : "" - } ], - 'geraCores' : [ { - pt : "Gerar cores", - en : "", - es : "" - } ], - 'ate' : [ { - pt : "até", - en : "", - es : "" - } ], - 'de' : [ { - pt : "de", - en : "", - es : "" - } ], - 'aplica' : [ { - pt : "Aplicar", - en : "", - es : "" - } ], - 'aplicaVariaCores' : [ { - pt : "aplicar variações de cores, entre dois extremos, nas classes existentes", - en : "", - es : "" - } ], - 'aplicaAlteracao' : [ { - pt : "Aplicar alterações", - en : "", - es : "" - } ], - 'adicionaClasse' : [ { - pt : "Adicionar classe", - en : "", - es : "" - } ], - 'adicionaNovaClasse' : [ { - pt : "adicionar uma nova classe na legenda", - en : "", - es : "" - } ], - 'clicaSimbolo' : [ { - pt : "Clique no símbolo da classe para alterar", - en : "", - es : "" - } ], - 'consideraElementosVisisveis' : [ { - pt : "marque para considerar apenas os elementos visíveis na extensão geográfica atual, caso contrário, será considerada a extensão geográfica inicial do mapa", - en : "", - es : "" - } ], - 'ignoraValores' : [ { - pt : "Ao gerar as classes, ignorar os valores (separe com vírgula)", - en : "", - es : "" - } ], - 'transformaGeom' : [ { - pt : "Transforma a representação geométrica dos elementos do tema. Após alterar esse parâmetro, pode ser necessário modificar as características do símbolo.", - en : "", - es : "" - } ], - 'semTransformacao' : [ { - pt : "nenhuma transformação", - en : "", - es : "" - } ], - 'centroide' : [ { - pt : "centróide", - en : "", - es : "" - } ], - 'vertices' : [ { - pt : "vértices", - en : "", - es : "" - } ], - 'verticeInicial' : [ { - pt : "vértice inicial", - en : "", - es : "" - } ], - 'verticeFinal' : [ { - pt : "vértice final", - en : "", - es : "" - } ], - 'alteraGeom' : [ { - pt : "Altera geometria", - en : "", - es : "" - } ], - 'alteraTipoGeom' : [ { - pt : "Altera o tipo de representação do tema. Se for poligonal, passa para linear e vice-versa.", - en : "", - es : "" - } ], - 'alteraTipo' : [ { - pt : "Altera tipo", - en : "", - es : "" - } ], - 'todosElementosUnicoSimbolo' : [ { - pt : "Todos os elementos serão desenhados com um único símbolo", - en : "", - es : "" - } ], - 'simboloUnico' : [ { - pt : "Símbolo único", - en : "", - es : "" - } ], - 'cadaOcorrenciaUnicoSimbolo' : [ { - pt : "Cada ocorrência de um valor para o item selecionado, será desenhado com o mesmo símbolo", - en : "", - es : "" - } ], - 'valorUnico' : [ { - pt : "Calcular valor único", - en : "", - es : "" - } ], - 'criaClassesItemNumerico' : [ { - pt : "Cria classes para um item numérico utilizando um número fixo de classes", - en : "", - es : "" - } ], - 'numeroClasses' : [ { - pt : "Número de classes", - en : "", - es : "" - } ], - 'intervalosIguais' : [ { - pt : "Calcular intervalos iguais", - en : "", - es : "" - } ], - 'criaQuartis' : [ { - pt : "Cria classes para um item numérico utilizando os quartis", - en : "", - es : "" - } ], - 'estiloNomeClasses' : [ { - pt : "Estilo dos nomes das classes", - en : "", - es : "" - } ], - 'soValores' : [ { - pt : "só os valores", - en : "", - es : "" - } ], - 'quartilValores' : [ { - pt : "quartil e os valores", - en : "", - es : "" - } ], - 'expressaoCompleta' : [ { - pt : "expressão completa", - en : "", - es : "" - } ], - "etiquetasClasse" : [ { - pt : "Textos da classe (labels)", - en : "", - es : "" - } ], - 'itemComTexto' : [ { - pt : "Item com o texto", - en : "", - es : "" - } ], - 'exclui' : [ { - pt : "excluir", - en : "", - es : "" - } ], - 'adiciona' : [ { - pt : "adicionar", - en : "", - es : "" - } ], - 'propriedades2' : [ { - pt : "propriedades", - en : "", - es : "" - } ], - 'estilos' : [ { - pt : "Estilos", - en : "", - es : "" - } ], - 'ajudaEstilo' : [ { - pt : "Cada sí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ímbolo 0 ou vazio e digite um padrão de repetição como por exemplo 2 10 2 10 ", - en : "", - es : "" - } ], - 'aplicaAlteracoes' : [ { - pt : "Aplicar todas as alterações", - en : "", - es : "" - } ], - 'geraSLD' : [ { - pt : "Gera um arquivo XML, no padrão SLD, contendo a legenda atual da camada. Para maiores informações, veja", - en : "", - es : "" - } ], - 'ajudaSLD' : [ { - pt : "(O SLD só é gerado ou aplicado corretamente em camadas que utilizam expressões simples e o elemento CLASSITEM)", - en : "", - es : "" - } ], - 'exportaSLD' : [ { - pt : "Exportar SLD", - en : "", - es : "" - } ], - 'msgAplicaSLD' : [ { - pt : "Aplica um arquivo SLD à camada ativa", - en : "", - es : "" - } ], - 'aplicaSLD' : [ { - pt : "Aplicar SLD", - en : "", - es : "" - } ], - 'temaInexistente' : [ { - pt : "O tema ja nao existe mais no mapa", - en : "", - es : "" - } ], - 'cliqueAltera' : [ { - pt : "clique para alterar", - en : "", - es : "" - } ], - 'cliqueExclui' : [ { - pt : "clique para excluir", - en : "", - es : "" - } ], - 'digitaNovoNome' : [ { - pt : "digite o novo nome", - en : "", - es : "" - } ], - 'digitaNovaExpressao' : [ { - pt : "digite a nova expressão", - en : "", - es : "" - } ], - 'sobe' : [ { - pt : "sobe", - en : "", - es : "" - } ], - 'desce' : [ { - pt : "desce", - en : "", - es : "" - } ], - 'ajudaEscalaCores' : [ { - pt : "Para aplicar um ajuste entre 0 e 255 cores, utilize a opção Escala de Cores.", - en : "", - es : "" - } ], - 'msgEscalaCoresAuto' : [ { - pt : "O valor de SCALE= pode ser a palavra AUTO (SCALE=AUTO) ou um valor mínimo e máximo (por exemplo SCALE=20,3000).", - en : "", - es : "" - } ], - 'msgEscalaCoresIndividual' : [ { - pt : "Você pode aplicar a escala em bandas individuais, para isso, utilize SCALE_n, por exemplo SCALE_1=AUTO SCALE_2=200,500.", - en : "", - es : "" - } ], - 'msgBandas' : [ { - pt : "Para escolher quais bandas serão utilizadas e qual sua ordem, utilize a opção BANDAS. Utilize, por exemplo, BANDS=1,2,3 BANDS=1 .", - en : "", - es : "" - } ], - 'msgReamostragem' : [ { - pt : "Para alterar o modo de amostragem, utilize RESAMPLE com uma das opções: AVERAGE,NEAREST ou BILINEAR.", - en : "", - es : "" - } ], - 'adicionaProcesso' : [ { - pt : "Você pode incluir processos na imagem para modificar as características de visualização

Adicionar processo", - en : "", - es : "" - } ], - 'selecionaProcesso' : [ { - pt : "selecione o processo", - en : "", - es : "" - } ], - 'escalaCores' : [ { - pt : "Escala de cores", - en : "", - es : "" - } ], - 'reamostragem' : [ { - pt : "Reamostragem", - en : "", - es : "" - } ], - 'bandas' : [ { - pt : "Bandas", - en : "", - es : "" - } ], - 'aplicaProcesso' : [ { - pt : "aplicar processos", - en : "", - es : "" - } ], - 'msgNaoEditaLegenda' : [ { - pt : "Não é possível editar a legenda desse tema", - en : "", - es : "" - } ], - 'msgAplicaAlteracao' : [ { - pt : "Clique em Aplicar para que as alteraçõpes sejam salvas", - en : "", - es : "" - } ], - 'consideraElementosVisiveis' : [ { - pt : "A contagem considera apenas os elementos visíveis na abrangência do mapa", - en : "", - es : "" - } ], - 'selecionaUmItem' : [ { - pt : "Selecione um item!", - en : "", - es : "" - } ], - 'estiloEdicao' : [ { - pt : "Estilo em edição", - en : "", - es : "" - } ], - 'corFundo' : [ { - pt : "Cor do fundo", - en : "", - es : "" - } ], - 'corFrente' : [ { - pt : "Cor da frente", - en : "", - es : "" - } ], - 'tamanhoEspacamento' : [ { - pt : "Tamanho / espaçamento", - en : "", - es : "" - } ], - 'espessura' : [ { - pt : "Espessura", - en : "", - es : "" - } ], - 'padraoRepeticao' : [ { - pt : "Padrão de repetição", - en : "", - es : "" - } ], - 'opacidade' : [ { - pt : "Opacidade", - en : "", - es : "" - } ], - 'angulo' : [ { - pt : "Ângulo", - en : "", - es : "" - } ], - 'simbolo' : [ { - pt : "Símbolo (Você pode usar o caminho absoluto de uma imagem PNG existente no servidor ou clicar em um dos símbolos mostrados abaixo)", - en : "", - es : "" - } ], - 'listaSimbolo' : [ { - pt : "Lista de símbolos. Clique para selecionar", - en : "", - es : "" - } ], - 'graficoPizza' : [ { - pt : "Gráfico de pizza", - en : "", - es : "" - } ], - 'numeroOcorrenciasClasses' : [ { - pt : "Número de ocorrências em cada classe (n)", - en : "", - es : "" - } ], - 'msgNumeroClasses' : [ { - pt : "O tema deve conter pelo menos 2 classes", - en : "", - es : "" - } ], - 'quebrasNaturais' : [ { - pt : "Calcular quebras naturais", - en : "", - es : "" - } ], - 'calcularQuartil' : [ { - pt : "Calcular quartis", - en : "", - es : "" - } ], - 'calcularQuantil' : [ { - pt : "Calcular quantis", - en : "", - es : "" - } ], - 'minScale' : [ { - pt : "Não desenha se escala for menor que", - en : "", - es : "" - } ], - 'maxScale' : [ { - pt : "Não desenha se escala for maior que", - en : "", - es : "" - } ], - 'aplicatodos' : [ { - pt : "Aplicar esse parâmetro em todas as classes", - en : "", - es : "" - } ], - 'nomeClassesUnicoSimbolo' : [ { - pt : "(Opcional) Item que será utilizado para obter os nomes das classes", - en : "", - es : "" - } ], - 'aplicar' : [ { - pt : "aplicar", - en : "", - es : "" - } ], - 'symbolscale' : [ { - pt : "Denominador da escala na qual o símbolo será apresentado com o tamanho definido. Esse parâmetro funciona em conjunto com MAXSCALE e MINSCALE e é válido para a camada como um todo e não para cada estilo (afeta pontos)", - en : "", - es : "" - } ], - 'minsize' : [ { - pt : "Menor tamanho (pixels), que os símbolos serão desenhados, quando a escala de desenho de símbolos estiver ativo", - en : "", - es : "" - } ], - 'maxsize' : [ { - pt : "Maior tamanho (pixels), que os símbolos serão desenhados, quando a escala de desenho de símbolos estiver ativo", - en : "", - es : "" - } ], - "editorExp": [ +i3GEOF.legenda.dicionario = { - pt: "Editor de expressão", - en:"", - es:"" - }] -}; + 'ajuda' : [ + { + pt : "Para acessar o editor, clique em um símbolo na guia Legenda", + en : "", + es : "" + } + ], + 'propriedades' : [ + { + pt : "Propriedades", + en : "", + es : "" + } + ], + "legenda" : [ + { + pt : "Legenda", + en : "", + es : "" + } + ], + "classes" : [ + { + pt : "Classes", + en : "", + es : "" + } + ], + 'editor' : [ + { + pt : "Editor", + en : "", + es : "" + } + ], + 'graficos' : [ + { + pt : "Gráficos", + en : "", + es : "" + } + ], + 'importaExportaSLD' : [ + { + pt : "Importar/exportar SLD", + en : "", + es : "" + } + ], + 'mostraClassesLegenda' : [ + { + pt : "Mostra as classes desse tema na legenda do mapa", + en : "", + es : "" + } + ], + 'incluiNumeroOcorrencia' : [ + { + pt : "Inclui número de ocorrências", + en : "", + es : "" + } + ], + 'incluiNumeroOcorrencia2' : [ + { + pt : "incluir o número de ocorrências no nome de cada classe", + en : "", + es : "" + } + ], + 'aplicaOpacidadeVariavel' : [ + { + pt : "Aplica opacidade variável", + en : "", + es : "" + } + ], + 'aplicaOpacidade' : [ + { + pt : "aplicar opacidade nas classes existente, variando de 10 até 100", + en : "", + es : "" + } + ], + 'escolhePaletaCores' : [ + { + pt : "Escolher paleta de cores", + en : "", + es : "" + } + ], + 'variaCoresExtremos' : [ + { + pt : "escolher e aplicar as variações de cores, entre dois extremos, nas classes existentes", + en : "", + es : "" + } + ], + 'geraCores' : [ + { + pt : "Gerar cores", + en : "", + es : "" + } + ], + 'ate' : [ + { + pt : "até", + en : "", + es : "" + } + ], + 'de' : [ + { + pt : "de", + en : "", + es : "" + } + ], + 'aplica' : [ + { + pt : "Aplicar", + en : "", + es : "" + } + ], + 'aplicaVariaCores' : [ + { + pt : "aplicar variações de cores, entre dois extremos, nas classes existentes", + en : "", + es : "" + } + ], + 'aplicaAlteracao' : [ + { + pt : "Aplicar alterações", + en : "", + es : "" + } + ], + 'adicionaClasse' : [ + { + pt : "Adicionar classe", + en : "", + es : "" + } + ], + 'adicionaNovaClasse' : [ + { + pt : "adicionar uma nova classe na legenda", + en : "", + es : "" + } + ], + 'clicaSimbolo' : [ + { + pt : "Clique no símbolo da classe para alterar", + en : "", + es : "" + } + ], + 'consideraElementosVisisveis' : [ + { + pt : "marque para considerar apenas os elementos visíveis na extensão geográfica atual, caso contrário, será considerada a extensão geográfica inicial do mapa", + en : "", + es : "" + } + ], + 'ignoraValores' : [ + { + pt : "Ao gerar as classes, ignorar os valores (separe com vírgula)", + en : "", + es : "" + } + ], + 'transformaGeom' : [ + { + pt : "Transforma a representação geométrica dos elementos do tema. Após alterar esse parâmetro, pode ser necessário modificar as características do símbolo.", + en : "", + es : "" + } + ], + 'semTransformacao' : [ + { + pt : "nenhuma transformação", + en : "", + es : "" + } + ], + 'centroide' : [ + { + pt : "centróide", + en : "", + es : "" + } + ], + 'vertices' : [ + { + pt : "vértices", + en : "", + es : "" + } + ], + 'verticeInicial' : [ + { + pt : "vértice inicial", + en : "", + es : "" + } + ], + 'verticeFinal' : [ + { + pt : "vértice final", + en : "", + es : "" + } + ], + 'alteraGeom' : [ + { + pt : "Altera geometria", + en : "", + es : "" + } + ], + 'alteraTipoGeom' : [ + { + pt : "Altera o tipo de representação do tema. Se for poligonal, passa para linear e vice-versa.", + en : "", + es : "" + } + ], + 'alteraTipo' : [ + { + pt : "Altera tipo", + en : "", + es : "" + } + ], + 'todosElementosUnicoSimbolo' : [ + { + pt : "Todos os elementos serão desenhados com um único símbolo", + en : "", + es : "" + } + ], + 'simboloUnico' : [ + { + pt : "Símbolo único", + en : "", + es : "" + } + ], + 'cadaOcorrenciaUnicoSimbolo' : [ + { + pt : "Cada ocorrência de um valor para o item selecionado, será desenhado com o mesmo símbolo", + en : "", + es : "" + } + ], + 'valorUnico' : [ + { + pt : "Calcular valor único", + en : "", + es : "" + } + ], + 'criaClassesItemNumerico' : [ + { + pt : "Cria classes para um item numérico utilizando um número fixo de classes", + en : "", + es : "" + } + ], + 'numeroClasses' : [ + { + pt : "Número de classes", + en : "", + es : "" + } + ], + 'intervalosIguais' : [ + { + pt : "Calcular intervalos iguais", + en : "", + es : "" + } + ], + 'criaQuartis' : [ + { + pt : "Cria classes para um item numérico utilizando os quartis", + en : "", + es : "" + } + ], + 'estiloNomeClasses' : [ + { + pt : "Estilo dos nomes das classes", + en : "", + es : "" + } + ], + 'soValores' : [ + { + pt : "só os valores", + en : "", + es : "" + } + ], + 'quartilValores' : [ + { + pt : "quartil e os valores", + en : "", + es : "" + } + ], + 'expressaoCompleta' : [ + { + pt : "expressão completa", + en : "", + es : "" + } + ], + "etiquetasClasse" : [ + { + pt : "Textos da classe (labels)", + en : "", + es : "" + } + ], + 'itemComTexto' : [ + { + pt : "Item com o texto", + en : "", + es : "" + } + ], + 'exclui' : [ + { + pt : "excluir", + en : "", + es : "" + } + ], + 'adiciona' : [ + { + pt : "adicionar", + en : "", + es : "" + } + ], + 'propriedades2' : [ + { + pt : "propriedades", + en : "", + es : "" + } + ], + 'estilos' : [ + { + pt : "Estilos", + en : "", + es : "" + } + ], + 'ajudaEstilo' : [ + { + pt : "Cada sí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ímbolo 0 ou vazio e digite um padrão de repetição como por exemplo 2 10 2 10 ", + en : "", + es : "" + } + ], + 'aplicaAlteracoes' : [ + { + pt : "Aplicar todas as alterações", + en : "", + es : "" + } + ], + 'geraSLD' : [ + { + pt : "Gera um arquivo XML, no padrão SLD, contendo a legenda atual da camada. Para maiores informações, veja", + en : "", + es : "" + } + ], + 'ajudaSLD' : [ + { + pt : "(O SLD só é gerado ou aplicado corretamente em camadas que utilizam expressões simples e o elemento CLASSITEM)", + en : "", + es : "" + } + ], + 'exportaSLD' : [ + { + pt : "Exportar SLD", + en : "", + es : "" + } + ], + 'msgAplicaSLD' : [ + { + pt : "Aplica um arquivo SLD à camada ativa", + en : "", + es : "" + } + ], + 'aplicaSLD' : [ + { + pt : "Aplicar SLD", + en : "", + es : "" + } + ], + 'temaInexistente' : [ + { + pt : "O tema ja nao existe mais no mapa", + en : "", + es : "" + } + ], + 'cliqueAltera' : [ + { + pt : "clique para alterar", + en : "", + es : "" + } + ], + 'cliqueExclui' : [ + { + pt : "clique para excluir", + en : "", + es : "" + } + ], + 'digitaNovoNome' : [ + { + pt : "digite o novo nome", + en : "", + es : "" + } + ], + 'digitaNovaExpressao' : [ + { + pt : "digite a nova expressão", + en : "", + es : "" + } + ], + 'sobe' : [ + { + pt : "sobe", + en : "", + es : "" + } + ], + 'desce' : [ + { + pt : "desce", + en : "", + es : "" + } + ], + 'ajudaEscalaCores' : [ + { + pt : "Para aplicar um ajuste entre 0 e 255 cores, utilize a opção Escala de Cores.", + en : "", + es : "" + } + ], + 'msgEscalaCoresAuto' : [ + { + pt : "O valor de SCALE= pode ser a palavra AUTO (SCALE=AUTO) ou um valor mínimo e máximo (por exemplo SCALE=20,3000).", + en : "", + es : "" + } + ], + 'msgEscalaCoresIndividual' : [ + { + pt : "Você pode aplicar a escala em bandas individuais, para isso, utilize SCALE_n, por exemplo SCALE_1=AUTO SCALE_2=200,500.", + en : "", + es : "" + } + ], + 'msgBandas' : [ + { + pt : "Para escolher quais bandas serão utilizadas e qual sua ordem, utilize a opção BANDAS. Utilize, por exemplo, BANDS=1,2,3 BANDS=1 .", + en : "", + es : "" + } + ], + 'msgReamostragem' : [ + { + pt : "Para alterar o modo de amostragem, utilize RESAMPLE com uma das opções: AVERAGE,NEAREST ou BILINEAR.", + en : "", + es : "" + } + ], + 'adicionaProcesso' : [ + { + pt : "Você pode incluir processos na imagem para modificar as características de visualização

Adicionar processo", + en : "", + es : "" + } + ], + 'selecionaProcesso' : [ + { + pt : "selecione o processo", + en : "", + es : "" + } + ], + 'escalaCores' : [ + { + pt : "Escala de cores", + en : "", + es : "" + } + ], + 'reamostragem' : [ + { + pt : "Reamostragem", + en : "", + es : "" + } + ], + 'bandas' : [ + { + pt : "Bandas", + en : "", + es : "" + } + ], + 'aplicaProcesso' : [ + { + pt : "aplicar processos", + en : "", + es : "" + } + ], + 'msgNaoEditaLegenda' : [ + { + pt : "Não é possível editar a legenda desse tema", + en : "", + es : "" + } + ], + 'msgAplicaAlteracao' : [ + { + pt : "Clique em Aplicar para que as alteraçõpes sejam salvas", + en : "", + es : "" + } + ], + 'consideraElementosVisiveis' : [ + { + pt : "A contagem considera apenas os elementos visíveis na abrangência do mapa", + en : "", + es : "" + } + ], + 'selecionaUmItem' : [ + { + pt : "Selecione um item!", + en : "", + es : "" + } + ], + 'estiloEdicao' : [ + { + pt : "Estilo em edição", + en : "", + es : "" + } + ], + 'corFundo' : [ + { + pt : "Cor do fundo", + en : "", + es : "" + } + ], + 'corFrente' : [ + { + pt : "Cor da frente", + en : "", + es : "" + } + ], + 'tamanhoEspacamento' : [ + { + pt : "Tamanho / espaçamento", + en : "", + es : "" + } + ], + 'espessura' : [ + { + pt : "Espessura", + en : "", + es : "" + } + ], + 'padraoRepeticao' : [ + { + pt : "Padrão de repetição", + en : "", + es : "" + } + ], + 'opacidade' : [ + { + pt : "Opacidade", + en : "", + es : "" + } + ], + 'angulo' : [ + { + pt : "Ângulo", + en : "", + es : "" + } + ], + 'simbolo' : [ + { + pt : "Nome do símbolo
Você pode também usar o caminho absoluto de uma imagem PNG existente no servidor ou clicar em " + "um dos símbolos mostrados abaixo. Clique aqui para upload dessa imagem", + en : "", + es : "" + } + ], + 'listaSimbolo' : [ + { + pt : "Lista de símbolos. Clique para selecionar", + en : "", + es : "" + } + ], + 'graficoPizza' : [ + { + pt : "Gráfico de pizza", + en : "", + es : "" + } + ], + 'numeroOcorrenciasClasses' : [ + { + pt : "Número de ocorrências em cada classe (n)", + en : "", + es : "" + } + ], + 'msgNumeroClasses' : [ + { + pt : "O tema deve conter pelo menos 2 classes", + en : "", + es : "" + } + ], + 'quebrasNaturais' : [ + { + pt : "Calcular quebras naturais", + en : "", + es : "" + } + ], + 'calcularQuartil' : [ + { + pt : "Calcular quartis", + en : "", + es : "" + } + ], + 'calcularQuantil' : [ + { + pt : "Calcular quantis", + en : "", + es : "" + } + ], + 'minScale' : [ + { + pt : "Não desenha se escala for menor que", + en : "", + es : "" + } + ], + 'maxScale' : [ + { + pt : "Não desenha se escala for maior que", + en : "", + es : "" + } + ], + 'aplicatodos' : [ + { + pt : "Aplicar esse parâmetro em todas as classes", + en : "", + es : "" + } + ], + 'nomeClassesUnicoSimbolo' : [ + { + pt : "(Opcional) Item que será utilizado para obter os nomes das classes", + en : "", + es : "" + } + ], + 'aplicar' : [ + { + pt : "aplicar", + en : "", + es : "" + } + ], + 'symbolscale' : [ + { + pt : "Denominador da escala na qual o símbolo será apresentado com o tamanho definido. Esse parâmetro funciona em conjunto com MAXSCALE e MINSCALE e é válido para a camada como um todo e não para cada estilo (afeta pontos)", + en : "", + es : "" + } + ], + 'minsize' : [ + { + pt : "Menor tamanho (pixels), que os símbolos serão desenhados, quando a escala de desenho de símbolos estiver ativo", + en : "", + es : "" + } + ], + 'maxsize' : [ + { + pt : "Maior tamanho (pixels), que os símbolos serão desenhados, quando a escala de desenho de símbolos estiver ativo", + en : "", + es : "" + } + ], + "editorExp" : [ + { + pt : "Editor de expressão", + en : "", + es : "" + } + ], + "offsetx" : [ + { + pt : "Deslocamento em X com relação ao ponto de inserção de símbolo", + en : "", + es : "" + } + ], + "offsety" : [ + { + pt : "Deslocamento em Y com relação ao ponto de inserção de símbolo", + en : "", + es : "" + } + ] + }; diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js index ef95d62..4aadc9b 100644 --- a/ferramentas/legenda/index.js +++ b/ferramentas/legenda/index.js @@ -40,7 +40,7 @@ if (typeof (i3GEOF) === 'undefined') { /* * Classe: i3GEOF.legenda */ -//incuir opcao para inserir o nome de uma imagem da legenda +// incuir opcao para inserir o nome de uma imagem da legenda i3GEOF.legenda = { /* @@ -183,7 +183,7 @@ i3GEOF.legenda = var tabela = $i("i3GEOlegendalegenda"); var trs = tabela.getElementsByTagName("tr"); var ncores = trs.length - 1; - //$i("i3geo_janelaCorRampComboCabecaSel").value = i3GEOF.legenda.tema; + // $i("i3geo_janelaCorRampComboCabecaSel").value = i3GEOF.legenda.tema; i3GEO.util.abreColourRamp("", "listaColourRamp", ncores, i3GEOF.legenda.tema); } } @@ -244,14 +244,17 @@ i3GEOF.legenda = } }); b.addClass("rodar"); - b = new YAHOO.widget.Button("i3GEOlegendabotaoSLDe", { - onclick : { - fn : function() { - window.open(i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?funcao=tema2sld&tema=" - + i3GEOF.legenda.tema + "&g_sid=" + i3GEO.configura.sid); + b = + new YAHOO.widget.Button("i3GEOlegendabotaoSLDe", { + onclick : { + fn : function() { + window.open(i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?funcao=tema2sld&tema=" + + i3GEOF.legenda.tema + + "&g_sid=" + + i3GEO.configura.sid); + } } - } - }); + }); b.addClass("rodar"); b = new YAHOO.widget.Button("i3GEOlegendabotaoSLDi", { onclick : { @@ -262,64 +265,76 @@ i3GEOF.legenda = }); b.addClass("rodar"); - b = new YAHOO.widget.Button("i3GEOlegendabotaoIncluirLabel", { - onclick : { - fn : function() { - var par, p, temp, cp; - try { - par = i3GEOF.proplabel.pegaPar(); - i3GEOF.legenda.parDefault = par; - } catch (e) { - par = i3GEOF.legenda.parDefault; + b = + new YAHOO.widget.Button("i3GEOlegendabotaoIncluirLabel", { + onclick : { + fn : function() { + var par, p, temp, cp; + try { + par = i3GEOF.proplabel.pegaPar(); + i3GEOF.legenda.parDefault = par; + } catch (e) { + par = i3GEOF.legenda.parDefault; + } + i3GEOF.legenda.aguarde.visibility = "visible"; + temp = function() { + i3GEOF.legenda.aguarde.visibility = "hidden"; + i3GEOF.legenda.aposAlterarLegenda(); + i3GEOF.legenda.aguarde.visibility = "hidden"; + }; + p = + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=adicionaLabelClasse&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe + + par; + p += "&item=" + $i("i3GEOlegendaSelItemLabel").value; + cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p, "foo", temp); } - i3GEOF.legenda.aguarde.visibility = "visible"; - temp = function() { - i3GEOF.legenda.aguarde.visibility = "hidden"; - i3GEOF.legenda.aposAlterarLegenda(); - i3GEOF.legenda.aguarde.visibility = "hidden"; - }; - p = - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid - + "&funcao=adicionaLabelClasse&tema=" + i3GEOF.legenda.tema + "&classe=" + i3GEOF.legenda.classe + par; - p += "&item=" + $i("i3GEOlegendaSelItemLabel").value; - cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p, "foo", temp); } - } - }); + }); b.addClass("rodar100"); - b = new YAHOO.widget.Button("i3GEOlegendabotaoExcluirLabel", { - onclick : { - fn : function() { - var p, temp, cp; - i3GEOF.legenda.aguarde.visibility = "visible"; - temp = function() { - i3GEOF.legenda.aguarde.visibility = "hidden"; - i3GEOF.legenda.aposAlterarLegenda(); - i3GEOF.legenda.aguarde.visibility = "hidden"; - }; - p = - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid - + "&funcao=removeLabelClasse&tema=" + i3GEOF.legenda.tema + "&classe=" + i3GEOF.legenda.classe; - cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p, "foo", temp); + b = + new YAHOO.widget.Button("i3GEOlegendabotaoExcluirLabel", { + onclick : { + fn : function() { + var p, temp, cp; + i3GEOF.legenda.aguarde.visibility = "visible"; + temp = function() { + i3GEOF.legenda.aguarde.visibility = "hidden"; + i3GEOF.legenda.aposAlterarLegenda(); + i3GEOF.legenda.aguarde.visibility = "hidden"; + }; + p = + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=removeLabelClasse&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe; + cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p, "foo", temp); + } } - } - }); + }); b.addClass("rodar100"); - b = new YAHOO.widget.Button("i3GEOlegendabotaoPropriedadeLabel", { - onclick : { - fn : function() { - i3GEO.util.scriptTag( - i3GEO.configura.locaplic + "/ferramentas/opcoes_label/index.js", - "i3GEOF.proplabel.criaJanelaFlutuante(false)", - "i3GEOFproplabel", - false); + b = + new YAHOO.widget.Button("i3GEOlegendabotaoPropriedadeLabel", { + onclick : { + fn : function() { + i3GEO.util.scriptTag( + i3GEO.configura.locaplic + "/ferramentas/opcoes_label/index.js", + "i3GEOF.proplabel.criaJanelaFlutuante(false)", + "i3GEOFproplabel", + false); + } } - } - }); + }); b.addClass("abrir100"); i3GEOF.legenda.ativaFoco(); i3GEOF.legenda.mostralegenda(); @@ -337,8 +352,8 @@ i3GEOF.legenda = $i("i3GEOlegendaitensValorQuartil").innerHTML = retorno.dados; } }); - if (i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe - && i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe.toLowerCase() == "nao") { + if (i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe && i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe + .toLowerCase() == "nao") { $i("i3GEOFlegendamostra").checked = false; } $i("i3GEOFlegendamostra").onclick = function() { @@ -348,7 +363,7 @@ i3GEOF.legenda = } catch (erro) { i3GEO.janela.tempoMsg(erro); } - i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda","i3GEOlegenda"); + i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda"); }, /* * Function: html @@ -379,9 +394,9 @@ i3GEOF.legenda = i3GEOF.legenda.ativaFoco(); }; minimiza = function() { - var t = i3GEO.janela.minimiza("i3GEOF.legenda","100px"); + var t = i3GEO.janela.minimiza("i3GEOF.legenda", "100px"); i3GEOF.legenda.ativaAplicar("none"); - if(t === "min"){ + if (t === "min") { $i("i3GEOFlegendaCabecalhoI").style.display = "none"; } else { $i("i3GEOFlegendaCabecalhoI").style.display = "block"; @@ -389,30 +404,19 @@ i3GEOF.legenda = }; // cria a janela flutuante titulo = - "" - + "
" - + "
------
" - + "
" + $trad("t33") - + "
"; + "" + + "
" + + "
------
" + + "
" + + $trad("t33") + + "
"; janela = - i3GEO.janela.cria( - "490px", - "340px", - "", - "", - "", - titulo, - "i3GEOF.legenda", - false, - "hd", - cabecalho, - minimiza, - function(){ - i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda","i3GEOlegenda"); - }, - true - ); + i3GEO.janela.cria("490px", "340px", "", "", "", titulo, "i3GEOF.legenda", false, "hd", cabecalho, minimiza, function() { + i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda"); + }, true); divid = janela[2].id; i3GEOF.legenda.aguarde = $i("i3GEOF.legenda_imagemCabecalho").style; $i("i3GEOF.legenda_corpo").style.backgroundColor = "white"; @@ -440,15 +444,14 @@ i3GEOF.legenda = i.zIndex = i3GEO.janela.ULTIMOZINDEX; i3GEO.janela.ULTIMOZINDEX++; }, - ativaAplicar : function(tipo){ + ativaAplicar : function(tipo) { var b = $i("i3GEOlegendabotao10"); - if(b){ + if (b) { b.style.display = tipo; - } - else{ + } else { YAHOO.i3GEO.janela.manager.find("i3GEOF.legenda").setFooter( - '' - ); + ''); b = new YAHOO.widget.Button("i3GEOlegendabotao10", { onclick : { fn : i3GEOF.legenda.aplicaEstilo @@ -486,8 +489,10 @@ i3GEOF.legenda = i3GEOF.legenda.aguarde.visibility = "visible"; var p, cp; p = - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid - + "&funcao=editalegenda&opcao=edita&tema=" + i3GEOF.legenda.tema; + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editalegenda&opcao=edita&tema=" + + i3GEOF.legenda.tema; cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "tabelaLegenda", i3GEOF.legenda.montaLegenda); @@ -510,8 +515,7 @@ i3GEOF.legenda = if (retorno.data[0].proc === "") { ins = [ - "" - + "" + ""); - ins.push(""); + ins.push(""); ins.push(""); - ins.push(""); + ins.push(""); - filtro = ""; + filtro = + ""; - ins.push(""); + ins.push(""); ins.push(""); - ins.push(""); + ins.push(""); - ins.push(""); + ins.push(""); if (n > 1) { - ins.push(""); + ins.push(""); - ins.push(""); + ins.push(""); } ins.push(""); } @@ -612,22 +630,37 @@ i3GEOF.legenda = $i("i3GEOlegendaresultado").innerHTML = ins.join(""); } else { ajuda = - "

" + $trad('ajudaEscalaCores', i3GEOF.legenda.dicionario) + "

" - + $trad('msgEscalaCoresAuto', i3GEOF.legenda.dicionario) + "

" - + $trad('msgEscalaCoresIndividual', i3GEOF.legenda.dicionario) + "

" - + $trad('msgBandas', i3GEOF.legenda.dicionario) + "

" + "

" + $trad('ajudaEscalaCores', i3GEOF.legenda.dicionario) + + "

" + + $trad('msgEscalaCoresAuto', i3GEOF.legenda.dicionario) + + "

" + + $trad('msgEscalaCoresIndividual', i3GEOF.legenda.dicionario) + + "

" + + $trad('msgBandas', i3GEOF.legenda.dicionario) + + "

" + $trad('msgReamostragem', i3GEOF.legenda.dicionario); ins = - "

" + $trad('adicionaProcesso', i3GEOF.legenda.dicionario) + ":" - + "" + + "" + + "" + + "" + + "" + + "" + + "" + "
" + '

'; + + $trad('aplicaProcesso', i3GEOF.legenda.dicionario) + + '">'; if (retorno.data[0].proc == "") { ins += "

"; } else { @@ -654,8 +687,8 @@ i3GEOF.legenda = i3GEOF.legenda.aguarde.visibility = "hidden"; } }, - filtro : function (idRetorno){ - i3GEO.tema.dialogo.filtro(i3GEOF.legenda.tema,true,idRetorno); + filtro : function(idRetorno) { + i3GEO.tema.dialogo.filtro(i3GEOF.legenda.tema, true, idRetorno); }, /* * Function: aviso @@ -687,8 +720,12 @@ i3GEOF.legenda = i3GEOF.legenda.mostralegenda(); i3GEOF.legenda.aposAlterarLegenda(); }, p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse&opcao=aplicacoresrgb&ext=" + ext + "&tema=" + i3GEOF.legenda.tema, cp = new cpaint(); + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&opcao=aplicacoresrgb&ext=" + + ext + + "&tema=" + + i3GEOF.legenda.tema, cp = new cpaint(); cp.set_transfer_mode('POST'); cp.set_response_type("JSON"); cp.call(p, "foo", temp, "cores=" + cores); @@ -751,7 +788,8 @@ i3GEOF.legenda = } i3GEOF.legenda.aguarde.visibility = "visible"; try { - var tabela = $i("i3GEOlegendalegenda"), trs = tabela.getElementsByTagName("tr"), minScales = [], maxScales = [], nomes = [], exps = [], ids = [], t, nn, n, p, cp, temp; + var tabela = $i("i3GEOlegendalegenda"), trs = tabela.getElementsByTagName("tr"), minScales = [], maxScales = [], nomes = [], exps = + [], ids = [], t, nn, n, p, cp, temp; // expn, // re = new RegExp('"', "g"); for (t = 0; t < trs.length; t++) { @@ -770,10 +808,10 @@ i3GEOF.legenda = exps.push(isn[0].value); } if (isn[0].name == "minScale") { - minScales.push(parseInt(isn[0].value,10)); + minScales.push(parseInt(isn[0].value, 10)); } if (isn[0].name == "maxScale") { - maxScales.push(parseInt(isn[0].value,10)); + maxScales.push(parseInt(isn[0].value, 10)); } } } @@ -793,13 +831,26 @@ i3GEOF.legenda = }; var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?" + "base64=sim" + "&g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse" + "&opcao=alteraclasses" + "&ext=" + ext; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?" + + "base64=sim" + + "&g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse" + + "&opcao=alteraclasses" + + "&ext=" + + ext; cp = new cpaint(); cp.set_transfer_mode('POST'); cp.set_response_type("JSON"); - cp.call(p, "alteraclassesPost", temp, "ids=" + i3GEO.util.base64encode(ids) + "&nomes=" + i3GEO.util.base64encode(nomes) - + "&exps=" + i3GEO.util.base64encode(exps) + "&minScales=" + minScales + "&maxScales=" + maxScales); + cp.call(p, "alteraclassesPost", temp, "ids=" + i3GEO.util.base64encode(ids) + + "&nomes=" + + i3GEO.util.base64encode(nomes) + + "&exps=" + + i3GEO.util.base64encode(exps) + + "&minScales=" + + minScales + + "&maxScales=" + + maxScales); } catch (e) { i3GEO.janela.tempoMsg("Erro: " + e); i3GEOF.legenda.aguarde.visibility = "hidden"; @@ -825,9 +876,12 @@ i3GEOF.legenda = i3GEOF.legenda.mostralegenda(); }; var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse&opcao=alterageometria&tema=" + i3GEOF.legenda.tema + "&tipo=" + $i("i3GEOlegentaTipoGeo").value, cp = - new cpaint(); + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&opcao=alterageometria&tema=" + + i3GEOF.legenda.tema + + "&tipo=" + + $i("i3GEOlegentaTipoGeo").value, cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "", retorna); }, @@ -846,8 +900,11 @@ i3GEOF.legenda = } i3GEOF.legenda.aguarde.visibility = "visible"; var p = - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=contagemclasse" - + "&tema=" + i3GEOF.legenda.tema, cp = new cpaint(); + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=contagemclasse" + + "&tema=" + + i3GEOF.legenda.tema, cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "contagemclasse", i3GEOF.legenda.montaLegenda); i3GEO.janela.tempoMsg($trad('consideraElementosVisiveis', i3GEOF.legenda.dicionario)); @@ -867,8 +924,13 @@ i3GEOF.legenda = } var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse&opcao=adicionaclasse" + "&tema=" + i3GEOF.legenda.tema + "&ext=" + ext, cp = new cpaint(); + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&opcao=adicionaclasse" + + "&tema=" + + i3GEOF.legenda.tema + + "&ext=" + + ext, cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "alteraclasse", i3GEOF.legenda.mostralegenda); }, @@ -892,8 +954,13 @@ i3GEOF.legenda = } var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse&opcao=adicionaopacidade" + "&tema=" + i3GEOF.legenda.tema + "&ext=" + ext, cp = new cpaint(); + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&opcao=adicionaopacidade" + + "&tema=" + + i3GEOF.legenda.tema + + "&ext=" + + ext, cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "alteraclasse", retorna); }, @@ -917,8 +984,14 @@ i3GEOF.legenda = i3GEOF.legenda.aguarde.visibility = "hidden"; i3GEOF.legenda.mostralegenda(); }, ci = $i("i3GEOlegendaacori").value, cf = $i("i3GEOlegendaacorf").value, cp = new cpaint(), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraCoresClasses&tema=" + i3GEOF.legenda.tema + "&cori=" + ci + "&corf=" + cf; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraCoresClasses&tema=" + + i3GEOF.legenda.tema + + "&cori=" + + ci + + "&corf=" + + cf; cp.set_response_type("JSON"); cp.call(p, "alteraCoresClasses", retornapaleta); } catch (e) { @@ -946,8 +1019,10 @@ i3GEOF.legenda = i3GEOF.legenda.aguarde.visibility = "hidden"; i3GEOF.legenda.mostralegenda(); }, cp = new cpaint(), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=inverteCoresClasses&tema=" + i3GEOF.legenda.tema; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=inverteCoresClasses&tema=" + + i3GEOF.legenda.tema; cp.set_response_type("JSON"); cp.call(p, "alteraCoresClasses", retornapaleta); } catch (e) { @@ -975,8 +1050,10 @@ i3GEOF.legenda = i3GEOF.legenda.aguarde.visibility = "hidden"; i3GEOF.legenda.mostralegenda(); }, cp = new cpaint(), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=calculaTamanhoClasses&tema=" + i3GEOF.legenda.tema; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=calculaTamanhoClasses&tema=" + + i3GEOF.legenda.tema; cp.set_response_type("JSON"); cp.call(p, "calculaTamanhoClasses", retornapaleta); } catch (e) { @@ -1001,8 +1078,10 @@ i3GEOF.legenda = i3GEOF.legenda.aguarde.visibility = "hidden"; i3GEOF.legenda.mostralegenda(); }, cp = new cpaint(), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=ordenaClasses&tema=" + i3GEOF.legenda.tema; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=ordenaClasses&tema=" + + i3GEOF.legenda.tema; cp.set_response_type("JSON"); cp.call(p, "foo", retornapaleta); } catch (e) { @@ -1034,12 +1113,15 @@ i3GEOF.legenda = } i3GEOF.legenda.aguarde.visibility = "visible"; var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=ALTERACLASSE&opcao=sobeclasse&tema=" + i3GEOF.legenda.tema + "&idclasse=" + idclasse, cp = new cpaint(), temp = - function() { - i3GEOF.legenda.aguarde.visibility = "hidden"; - i3GEOF.legenda.mostralegenda(); - }; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=ALTERACLASSE&opcao=sobeclasse&tema=" + + i3GEOF.legenda.tema + + "&idclasse=" + + idclasse, cp = new cpaint(), temp = function() { + i3GEOF.legenda.aguarde.visibility = "hidden"; + i3GEOF.legenda.mostralegenda(); + }; cp.set_response_type("JSON"); cp.call(p, "foo", temp); }, @@ -1054,12 +1136,15 @@ i3GEOF.legenda = } i3GEOF.legenda.aguarde.visibility = "visible"; var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=ALTERACLASSE&opcao=desceclasse&tema=" + i3GEOF.legenda.tema + "&idclasse=" + idclasse, cp = new cpaint(), temp = - function() { - i3GEOF.legenda.aguarde.visibility = "hidden"; - i3GEOF.legenda.mostralegenda(); - }; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=ALTERACLASSE&opcao=desceclasse&tema=" + + i3GEOF.legenda.tema + + "&idclasse=" + + idclasse, cp = new cpaint(), temp = function() { + i3GEOF.legenda.aguarde.visibility = "hidden"; + i3GEOF.legenda.mostralegenda(); + }; ; cp.set_response_type("JSON"); cp.call(p, "foo", temp); @@ -1090,9 +1175,12 @@ i3GEOF.legenda = }, formEditorSimbolo : function() { var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=editasimbolo&opcao=pegaparametros&tema=" + i3GEOF.legenda.tema + "&classe=" + i3GEOF.legenda.classe, cp = - new cpaint(); + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editasimbolo&opcao=pegaparametros&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe, cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "pegaParametrosMapa", i3GEOF.legenda.montaEditor); }, @@ -1113,8 +1201,12 @@ i3GEOF.legenda = i3GEOF.legenda.aguarde.visibility = "visible"; var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema=" - + i3GEOF.legenda.tema + "&opcao=simbolounico&ext=" + ext, cp = new cpaint(), fim = function() { + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&tema=" + + i3GEOF.legenda.tema + + "&opcao=simbolounico&ext=" + + ext, cp = new cpaint(), fim = function() { i3GEOF.legenda.aposAlterarLegenda(); i3GEOF.legenda.aguarde.visibility = "hidden"; }; @@ -1139,15 +1231,19 @@ i3GEOF.legenda = if (i3GEOF.legenda.aguarde.visibility === "visible") { return; } - var item = $i("i3GEOlegendaitensValorUnico").getElementsByTagName("select")[0].value, - itemNome = $i("i3GEOlegendaClassesValorUnico").getElementsByTagName("select")[0].value, - p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema=" + var item = $i("i3GEOlegendaitensValorUnico").getElementsByTagName("select")[0].value, itemNome = + $i("i3GEOlegendaClassesValorUnico").getElementsByTagName("select")[0].value, p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&tema=" + i3GEOF.legenda.tema - + "&item=" + item - + "&itemNome=" + itemNome + + "&item=" + + item + + "&itemNome=" + + itemNome + "&opcao=valorunico" - + "&ignorar=" + $i("i3GEOlegendaignorar").value, cp = - new cpaint(), fim = function() { + + "&ignorar=" + + $i("i3GEOlegendaignorar").value, cp = new cpaint(), fim = function() { i3GEOF.legenda.aposAlterarLegenda(); i3GEOF.legenda.aguarde.visibility = "hidden"; }; @@ -1183,15 +1279,23 @@ i3GEOF.legenda = if (i3GEOF.legenda.aguarde.visibility === "visible") { return; } - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = $i("i3GEOlegendanclasses").value, ext = - i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse&nclasses=" + nclasses + "&tema=" + i3GEOF.legenda.tema + "&item=" + item - + "&opcao=intervalosiguais&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext=" + ext, cp = new cpaint(), fim = - function() { - i3GEOF.legenda.aposAlterarLegenda(); - i3GEOF.legenda.aguarde.visibility = "hidden"; - }; + var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = + $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&nclasses=" + + nclasses + + "&tema=" + + i3GEOF.legenda.tema + + "&item=" + + item + + "&opcao=intervalosiguais&ignorar=" + + $i("i3GEOlegendaignorar").value + + "&ext=" + + ext, cp = new cpaint(), fim = function() { + i3GEOF.legenda.aposAlterarLegenda(); + i3GEOF.legenda.aguarde.visibility = "hidden"; + }; if (item == "") { i3GEO.janela.tempoMsg("Selecione um item!"); return; @@ -1218,10 +1322,20 @@ i3GEOF.legenda = if (i3GEOF.legenda.aguarde.visibility === "visible") { return; } - var item = $i("i3GEOlegendaitensValorQuartil").getElementsByTagName("select")[0].value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema=" - + i3GEOF.legenda.tema + "&item=" + item + "&opcao=quartis&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext=" - + ext + "&tipoLegenda=" + $i("estiloClassesQuartis").value, cp = new cpaint(), fim = function() { + var item = $i("i3GEOlegendaitensValorQuartil").getElementsByTagName("select")[0].value, ext = + i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&tema=" + + i3GEOF.legenda.tema + + "&item=" + + item + + "&opcao=quartis&ignorar=" + + $i("i3GEOlegendaignorar").value + + "&ext=" + + ext + + "&tipoLegenda=" + + $i("estiloClassesQuartis").value, cp = new cpaint(), fim = function() { i3GEOF.legenda.aposAlterarLegenda(); i3GEOF.legenda.aguarde.visibility = "hidden"; }; @@ -1251,11 +1365,20 @@ i3GEOF.legenda = if (i3GEOF.legenda.aguarde.visibility === "visible") { return; } - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = $i("i3GEOlegendanclasses").value, ext = - i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse&nclasses=" + nclasses + "&tema=" + i3GEOF.legenda.tema + "&item=" + item - + "&opcao=quantil&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext=" + ext, cp = new cpaint(), fim = function() { + var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = + $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&nclasses=" + + nclasses + + "&tema=" + + i3GEOF.legenda.tema + + "&item=" + + item + + "&opcao=quantil&ignorar=" + + $i("i3GEOlegendaignorar").value + + "&ext=" + + ext, cp = new cpaint(), fim = function() { i3GEOF.legenda.aposAlterarLegenda(); i3GEOF.legenda.aguarde.visibility = "hidden"; }; @@ -1285,15 +1408,23 @@ i3GEOF.legenda = if (i3GEOF.legenda.aguarde.visibility === "visible") { return; } - var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = $i("i3GEOlegendanclasses").value, ext = - i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alteraclasse&nclasses=" + nclasses + "&tema=" + i3GEOF.legenda.tema + "&item=" + item - + "&opcao=quebrasnaturais&ignorar=" + $i("i3GEOlegendaignorar").value + "&ext=" + ext, cp = new cpaint(), fim = - function() { - i3GEOF.legenda.aposAlterarLegenda(); - i3GEOF.legenda.aguarde.visibility = "hidden"; - }; + var item = $i("i3GEOlegendaitensValorClass").getElementsByTagName("select")[0].value, nclasses = + $i("i3GEOlegendanclasses").value, ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alteraclasse&nclasses=" + + nclasses + + "&tema=" + + i3GEOF.legenda.tema + + "&item=" + + item + + "&opcao=quebrasnaturais&ignorar=" + + $i("i3GEOlegendaignorar").value + + "&ext=" + + ext, cp = new cpaint(), fim = function() { + i3GEOF.legenda.aposAlterarLegenda(); + i3GEOF.legenda.aguarde.visibility = "hidden"; + }; if (item == "") { i3GEO.janela.tempoMsg($trad('selecionaUmItem', i3GEOF.legenda.dicionario)); return; @@ -1323,8 +1454,10 @@ i3GEOF.legenda = return; } var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=alterarepresentacao&tema=" + i3GEOF.legenda.tema, cp = new cpaint(), fim = function() { + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=alterarepresentacao&tema=" + + i3GEOF.legenda.tema, cp = new cpaint(), fim = function() { i3GEOF.legenda.aposAlterarLegenda(); i3GEOF.legenda.aguarde.visibility = "hidden"; }; @@ -1367,95 +1500,120 @@ i3GEOF.legenda = combo += ""; $i("i3GEOlegendacomboestilos").innerHTML = "
 " - + $inputText( - "", - "", - "i3GEOlegendaid_" + id, - $trad('digitaNovoNome', i3GEOF.legenda.dicionario), - 20, - retorno.data[i].nomeclasse, - "nome", - "javascript:i3GEOF.legenda.aviso()") + "" + $inputText( + "", + "", + "i3GEOlegendaid_" + id, + $trad('digitaNovoNome', i3GEOF.legenda.dicionario), + 20, + retorno.data[i].nomeclasse, + "nome", + "javascript:i3GEOF.legenda.aviso()") + + "" - + $inputText( - "", - "", - "i3GEOlegendaid_exp" + id, - $trad('digitaNovaExpressao', i3GEOF.legenda.dicionario), - 25, - exp, - "expressao", - "javascript:i3GEOF.legenda.aviso()") + "" + $inputText("", "", "i3GEOlegendaid_exp" + id, $trad( + 'digitaNovaExpressao', + i3GEOF.legenda.dicionario), 25, exp, "expressao", "javascript:i3GEOF.legenda.aviso()") + + "" + filtro + "" - + $inputText( - "", - "", - "i3GEOlegendaid_" + id, - $trad('minScale', i3GEOF.legenda.dicionario), - 10, - retorno.data[i].minScale, - "minScale", - "javascript:i3GEOF.legenda.aviso()") + "" + $inputText( + "", + "", + "i3GEOlegendaid_" + id, + $trad('minScale', i3GEOF.legenda.dicionario), + 10, + retorno.data[i].minScale, + "minScale", + "javascript:i3GEOF.legenda.aviso()") + + "" - + $inputText( - "", - "", - "i3GEOlegendaid_" + id, - $trad('maxScale', i3GEOF.legenda.dicionario), - 10, - retorno.data[i].maxScale, - "maxScale", - "javascript:i3GEOF.legenda.aviso()") + "" + $inputText( + "", + "", + "i3GEOlegendaid_" + id, + $trad('maxScale', i3GEOF.legenda.dicionario), + 10, + retorno.data[i].maxScale, + "maxScale", + "javascript:i3GEOF.legenda.aviso()") + + "
" + $trad('estiloEdicao', i3GEOF.legenda.dicionario) - + ":" + combo + + ":" + + combo + "
 (após adicionar ou excluir, aplique a alteração)
"; - b = new YAHOO.widget.Button("i3GEOlegendabotao11", { - onclick : { - fn : function() { - try { - if (i3GEOF.legenda.aguarde.visibility === "visible") { - return; + b = + new YAHOO.widget.Button("i3GEOlegendabotao11", { + onclick : { + fn : function() { + try { + if (i3GEOF.legenda.aguarde.visibility === "visible") { + return; + } + i3GEOF.legenda.aguarde.visibility = "visible"; + var p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editasimbolo&opcao=excluiestilo&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe + + "&estilo=" + + i3GEOF.legenda.estilo, cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); + } catch (e) { + i3GEO.janela.tempoMsg("Erro: " + e); + i3GEOF.legenda.aguarde.visibility = "hidden"; } - i3GEOF.legenda.aguarde.visibility = "visible"; - var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=editasimbolo&opcao=excluiestilo&tema=" + i3GEOF.legenda.tema + "&classe=" - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); - } catch (e) { - i3GEO.janela.tempoMsg("Erro: " + e); - i3GEOF.legenda.aguarde.visibility = "hidden"; } } - } - }); + }); b.addClass("rodar100"); - b = new YAHOO.widget.Button("i3GEOlegendabotao12", { - onclick : { - fn : function() { - try { - if (i3GEOF.legenda.aguarde.visibility === "visible") { - return; + b = + new YAHOO.widget.Button("i3GEOlegendabotao12", { + onclick : { + fn : function() { + try { + if (i3GEOF.legenda.aguarde.visibility === "visible") { + return; + } + i3GEOF.legenda.aguarde.visibility = "visible"; + var p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editasimbolo&opcao=adicionaestilo&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe + + "&estilo=" + + i3GEOF.legenda.estilo, cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); + } catch (e) { + i3GEO.janela.tempoMsg("Erro: " + e); + i3GEOF.legenda.aguarde.visibility = "hidden"; } - i3GEOF.legenda.aguarde.visibility = "visible"; - var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=editasimbolo&opcao=adicionaestilo&tema=" + i3GEOF.legenda.tema + "&classe=" - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); - } catch (e) { - i3GEO.janela.tempoMsg("Erro: " + e); - i3GEOF.legenda.aguarde.visibility = "hidden"; } } - } - }); + }); b.addClass("rodar100"); - b = new YAHOO.widget.Button("i3GEOlegendabotao13", { - onclick : { - fn : function() { - try { - if (i3GEOF.legenda.aguarde.visibility === "visible") { - return; + b = + new YAHOO.widget.Button("i3GEOlegendabotao13", { + onclick : { + fn : function() { + try { + if (i3GEOF.legenda.aguarde.visibility === "visible") { + return; + } + i3GEOF.legenda.aguarde.visibility = "visible"; + var p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editasimbolo&opcao=sobeestilo&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe + + "&estilo=" + + i3GEOF.legenda.estilo, cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); + } catch (e) { + i3GEO.janela.tempoMsg("Erro: " + e); + i3GEOF.legenda.aguarde.visibility = "hidden"; } - i3GEOF.legenda.aguarde.visibility = "visible"; - var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=editasimbolo&opcao=sobeestilo&tema=" + i3GEOF.legenda.tema + "&classe=" - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); - } catch (e) { - i3GEO.janela.tempoMsg("Erro: " + e); - i3GEOF.legenda.aguarde.visibility = "hidden"; } } - } - }); + }); b.addClass("rodar100"); - b = new YAHOO.widget.Button("i3GEOlegendabotao14", { - onclick : { - fn : function() { - try { - if (i3GEOF.legenda.aguarde.visibility === "visible") { - return; + b = + new YAHOO.widget.Button("i3GEOlegendabotao14", { + onclick : { + fn : function() { + try { + if (i3GEOF.legenda.aguarde.visibility === "visible") { + return; + } + i3GEOF.legenda.aguarde.visibility = "visible"; + var p = + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editasimbolo&opcao=desceestilo&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe + + "&estilo=" + + i3GEOF.legenda.estilo, cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); + } catch (e) { + i3GEO.janela.tempoMsg("Erro: " + e); + i3GEOF.legenda.aguarde.visibility = "hidden"; } - i3GEOF.legenda.aguarde.visibility = "visible"; - var p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=editasimbolo&opcao=desceestilo&tema=" + i3GEOF.legenda.tema + "&classe=" - + i3GEOF.legenda.classe + "&estilo=" + i3GEOF.legenda.estilo, cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p, "editasimbolo", i3GEOF.legenda.reMontaEditor); - } catch (e) { - i3GEO.janela.tempoMsg("Erro: " + e); - i3GEOF.legenda.aguarde.visibility = "hidden"; } } - } - }); + }); b.addClass("rodar100"); i3GEOF.legenda.aguarde.visibility = "hidden"; i3GEOF.legenda.mostraEstilo(0); @@ -1482,137 +1640,219 @@ i3GEOF.legenda = linha = linha.split("#"); tipoLayer = linha[0]; d = - "" - + "

Cor do contorno:

" - + "
" - + "
" - + "" - + "
" + "" + + "

Cor do contorno:

" + + "
" + + "
" + + "" + + "
" + + + "
" + + "

" + + $trad('corFrente', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" + + + "
" + + "

" + + $trad('corFundo', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" + $trad('corFrente', i3GEOF.legenda.dicionario) + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('tamanhoEspacamento', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" + $trad('corFundo', i3GEOF.legenda.dicionario) + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('espessura', i3GEOF.legenda.dicionario) + + ":

" + + "

" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('tamanhoEspacamento', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('padraoRepeticao', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('espessura', i3GEOF.legenda.dicionario) - + ":

" - + "

" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('opacidade', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('padraoRepeticao', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('angulo', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('opacidade', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('symbolscale', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('angulo', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('minsize', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('symbolscale', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('maxsize', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('minsize', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('offsetx', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('maxsize', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
" + + "
" + + "

" + + $trad('offsety', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
" - + "
" - + "

" - + $trad('simbolo', i3GEOF.legenda.dicionario) - + ":

" - + "
" - + "
" - + "" - + "
"; + + "
" + + "

" + + $trad('simbolo', i3GEOF.legenda.dicionario) + + ":

" + + "
" + + "
" + + "" + + "
"; $i("i3GEOlegendaParametrosEstilos").innerHTML = d; i3GEO.util.aplicaAquarela("i3GEOlegendaParametrosEstilos"); p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=editasimbolo&tipo=" - + tipoLayer + "&opcao=listaSimbolos&onclick=i3GEOF.legenda.aplicaSimbolo(this)"; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editasimbolo&tipo=" + + tipoLayer + + "&opcao=listaSimbolos&onclick=i3GEOF.legenda.aplicaSimbolo(this)"; cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "editasimbolo", i3GEOF.legenda.listaSimbolos); @@ -1666,26 +1906,16 @@ i3GEOF.legenda = return; } i3GEOF.legenda.aguarde.visibility = "visible"; - var i, p, cp, fim, - outlinecolor = $i("i3GEOlegendaoutlinecolor").value, - backgroundcolor = $i("i3GEOlegendabackgroundcolor").value, - color = $i("i3GEOlegendacolor").value, - symbolname = $i("i3GEOlegendasymbolname").value, - simbolos = $i("i3GEOlegendasimbolos").getElementsByTagName("img"), - valido = "nao", - n = simbolos.length, - size = $i("i3GEOlegendasizes").value, - width = $i("i3GEOlegendawidth").value, - pattern = $i("i3GEOlegendapattern").value, - opacidade = $i("i3GEOlegendaopacidade").value, - angle = $i("i3GEOlegendaangulo").value, - symbolscale = $i("i3GEOlegendasymbolscale").value, - minsize = $i("i3GEOlegendaminsize").value, - maxsize = $i("i3GEOlegendamaxsize").value; - if(symbolscale != ""){ - symbolscale = parseInt(symbolscale,10); - } - else{ + var i, p, cp, fim, outlinecolor = $i("i3GEOlegendaoutlinecolor").value, backgroundcolor = + $i("i3GEOlegendabackgroundcolor").value, color = $i("i3GEOlegendacolor").value, symbolname = + $i("i3GEOlegendasymbolname").value, simbolos = $i("i3GEOlegendasimbolos").getElementsByTagName("img"), valido = "nao", n = + simbolos.length, size = $i("i3GEOlegendasizes").value, width = $i("i3GEOlegendawidth").value, pattern = + $i("i3GEOlegendapattern").value, opacidade = $i("i3GEOlegendaopacidade").value, angle = $i("i3GEOlegendaangulo").value, symbolscale = + $i("i3GEOlegendasymbolscale").value, minsize = $i("i3GEOlegendaminsize").value, maxsize = + $i("i3GEOlegendamaxsize").value, offsetx = $i("i3GEOlegendaoffsetx").value, offsety = $i("i3GEOlegendaoffsety").value; + if (symbolscale != "") { + symbolscale = parseInt(symbolscale, 10); + } else { symbolscale = -1; } for (i = 0; i < n; i++) { @@ -1699,22 +1929,42 @@ i3GEOF.legenda = // return; } p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=editasimbolo&opcao=aplica&tema=" + i3GEOF.legenda.tema - + "&classe=" + i3GEOF.legenda.classe - + "&estilo=" + i3GEOF.legenda.estilo - + "&outlinecolor=" + outlinecolor - + "&backgroundcolor=" + backgroundcolor - + "&color=" + color - + "&symbolname=" + symbolname - + "&width=" + width - + "&pattern=" + pattern - + "&size=" + size - + "&opacidade=" + opacidade - + "&angle=" + angle - + "&symbolscale=" + symbolscale - + "&minsize=" + minsize - + "&maxsize=" + maxsize; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editasimbolo&opcao=aplica&tema=" + + i3GEOF.legenda.tema + + "&classe=" + + i3GEOF.legenda.classe + + "&estilo=" + + i3GEOF.legenda.estilo + + "&outlinecolor=" + + outlinecolor + + "&backgroundcolor=" + + backgroundcolor + + "&color=" + + color + + "&symbolname=" + + symbolname + + "&width=" + + width + + "&pattern=" + + pattern + + "&size=" + + size + + "&opacidade=" + + opacidade + + "&angle=" + + angle + + "&symbolscale=" + + symbolscale + + "&minsize=" + + minsize + + "&maxsize=" + + maxsize + + "&offsetx=" + + offsetx + + "&offsety=" + + offsety; cp = new cpaint(); fim = function() { i3GEOF.legenda.aposAlterarLegenda(); @@ -1778,7 +2028,9 @@ i3GEOF.legenda = ins.push("" + retorno.data[i].nomeclasse + ""); t = (retorno.data[i].nreg * 100) / retorno.data[i].totalreg; - ins.push(""); i3GEOF.legenda.dadosGrafico.push(retorno.data[i].nomeclasse + ";" + retorno.data[i].nreg); } @@ -1800,8 +2052,10 @@ i3GEOF.legenda = }); b.addClass("abrir"); }, p = - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid - + "&funcao=contagemclasse&tema=" + i3GEOF.legenda.tema, cp = new cpaint(); + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=contagemclasse&tema=" + + i3GEOF.legenda.tema, cp = new cpaint(); // cp.set_debug(2) cp.set_response_type("JSON"); cp.call(p, "cocontagemclasse", monta); @@ -1853,8 +2107,12 @@ i3GEOF.legenda = i3GEOF.legenda.aposAlterarLegenda(); }; p = - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid - + "&funcao=aplicaProcessos&lista=" + lista + "&tema=" + i3GEOF.legenda.tema; + i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=aplicaProcessos&lista=" + + lista + + "&tema=" + + i3GEOF.legenda.tema; cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p, "aplicaProcessos", temp); @@ -1871,29 +2129,26 @@ i3GEOF.legenda = adicionaProcesso : function(s) { $i("i3GEOlegendaprocessos").innerHTML += $inputText("", "", "", "", 50, s.value); }, - aplicaTodasClasses : function(parametro,id){ + aplicaTodasClasses : function(parametro, id) { var valor = $i(id).value; - i3GEO.janela.confirma( - "Aplica "+parametro + " = " + valor +" ?", - 300, - $trad("x14"), - "", - function(){ - var temp = function() { - //i3GEOF.legenda.mostralegenda(); - i3GEOF.legenda.aposAlterarLegenda(); - },p,cp; - p = - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.janela.confirma("Aplica " + parametro + " = " + valor + " ?", 300, $trad("x14"), "", function() { + var temp = function() { + // i3GEOF.legenda.mostralegenda(); + i3GEOF.legenda.aposAlterarLegenda(); + }, p, cp; + p = + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=aplicaTodasClasses" - + "¶metro=" + parametro - + "&valor=" + valor - + "&tema=" + i3GEOF.legenda.tema; - cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p, "foo", temp); - } - ); + + "¶metro=" + + parametro + + "&valor=" + + valor + + "&tema=" + + i3GEOF.legenda.tema; + cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p, "foo", temp); + }); } }; \ No newline at end of file -- libgit2 0.21.2