Commit c24d4be662fef81392ce7867c8b1bf4ea572bd3a
1 parent
7f86526a
Exists in
master
and in
7 other branches
Correção na opção de criação de buffer de um ponto
Showing
5 changed files
with
17 additions
and
32 deletions
Show diff stats
ferramentas/buffer/exec.php
| ... | ... | @@ -19,6 +19,9 @@ Salva o mapa acrescentando um novo layer com o buffer. |
| 19 | 19 | include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | 20 | copiaSeguranca($map_file); |
| 21 | 21 | $m = new Analise($map_file,$tema,$locaplic,$ext); |
| 22 | + if(empty($multiplicar)){ | |
| 23 | + $multiplicar = 1; | |
| 24 | + } | |
| 22 | 25 | $retorno = $m->criaBuffer($distancia,$locaplic,$unir,$wkt,$multiplicar,$itemdistancia); |
| 23 | 26 | $m->salva(); |
| 24 | 27 | //$_SESSION["contadorsalva"]++; | ... | ... |
ferramentas/bufferpt/index.js
| ... | ... | @@ -57,12 +57,6 @@ i3GEOF.bufferpt = { |
| 57 | 57 | Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. |
| 58 | 58 | */ |
| 59 | 59 | aguarde: "", |
| 60 | - /* | |
| 61 | - Para efeitos de compatibilidade antes da versão 4.7 que não tinha dicionário | |
| 62 | - */ | |
| 63 | - criaJanelaFlutuante: function(x,y){ | |
| 64 | - i3GEOF.bufferpt.iniciaDicionario(x,y); | |
| 65 | - }, | |
| 66 | 60 | /** |
| 67 | 61 | * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php |
| 68 | 62 | */ |
| ... | ... | @@ -73,28 +67,11 @@ i3GEOF.bufferpt = { |
| 73 | 67 | mustacheHash : function() { |
| 74 | 68 | var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.bufferpt.dicionario); |
| 75 | 69 | dicionario["distancia"] = $inputText('','','i3GEOFbufferptDistancia','',10,0); |
| 70 | + dicionario["x"] = i3GEOF.bufferpt.x; | |
| 71 | + dicionario["y"] = i3GEOF.bufferpt.y; | |
| 76 | 72 | return dicionario; |
| 77 | 73 | }, |
| 78 | 74 | /* |
| 79 | - Function: iniciaDicionario | |
| 80 | - | |
| 81 | - Carrega o dicionário e chama a função que inicia a ferramenta | |
| 82 | - | |
| 83 | - O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script | |
| 84 | - */ | |
| 85 | - iniciaDicionario: function(x,y){ | |
| 86 | - if(typeof(i3GEOF.bufferpt.dicionario) === 'undefined'){ | |
| 87 | - i3GEO.util.scriptTag( | |
| 88 | - i3GEO.configura.locaplic+"/ferramentas/bufferpt/dicionario.js", | |
| 89 | - "i3GEOF.bufferpt.iniciaJanelaFlutuante("+x+","+y+")", | |
| 90 | - "i3GEOF.bufferpt.dicionario_script" | |
| 91 | - ); | |
| 92 | - } | |
| 93 | - else{ | |
| 94 | - i3GEOF.bufferpt.iniciaJanelaFlutuante(x,y); | |
| 95 | - } | |
| 96 | - }, | |
| 97 | - /* | |
| 98 | 75 | Function: inicia |
| 99 | 76 | |
| 100 | 77 | Inicia a ferramenta. É chamado por criaJanelaFlutuante |
| ... | ... | @@ -147,10 +124,12 @@ i3GEOF.bufferpt = { |
| 147 | 124 | */ |
| 148 | 125 | iniciaJanelaFlutuante: function(x,y){ |
| 149 | 126 | var janela,divid,titulo,cabecalho,minimiza; |
| 150 | - if(x) | |
| 151 | - {i3GEOF.bufferpt.x = x;} | |
| 152 | - if(y) | |
| 153 | - {i3GEOF.bufferpt.y = y;} | |
| 127 | + if(x){ | |
| 128 | + i3GEOF.bufferpt.x = x; | |
| 129 | + } | |
| 130 | + if(y){ | |
| 131 | + i3GEOF.bufferpt.y = y; | |
| 132 | + } | |
| 154 | 133 | cabecalho = function(){}; |
| 155 | 134 | minimiza = function(){ |
| 156 | 135 | i3GEO.janela.minimiza("i3GEOF.bufferpt"); | ... | ... |
ferramentas/bufferpt/template_mst.html
| ... | ... | @@ -3,4 +3,6 @@ |
| 3 | 3 | <br> |
| 4 | 4 | <br> |
| 5 | 5 | <p class='paragrafo'> |
| 6 | - <input id='i3GEObufferptbotao1' size='16' type='button' value='{{{criaEntorno}}}' /> | |
| 7 | 6 | \ No newline at end of file |
| 7 | +<input id='i3GEObufferptbotao1' size='16' type='button' value='{{{criaEntorno}}}' /> | |
| 8 | +</p> | |
| 9 | +<b>X:</b> {{{x}}} <b>Y:</b> {{{y}}} | |
| 8 | 10 | \ No newline at end of file | ... | ... |
ferramentas/identifica/index.js
| ... | ... | @@ -247,7 +247,7 @@ i3GEOF.identifica = { |
| 247 | 247 | var js = i3GEO.configura.locaplic+"/ferramentas/bufferpt/dependencias.php"; |
| 248 | 248 | i3GEO.util.scriptTag( |
| 249 | 249 | js, |
| 250 | - "i3GEOF.bufferpt.criaJanelaFlutuante("+i3GEOF.identifica.propJanelas[idjanela].x+","+i3GEOF.identifica.propJanelas[idjanela].y+")", | |
| 250 | + "i3GEOF.bufferpt.iniciaJanelaFlutuante("+i3GEOF.identifica.propJanelas[idjanela].x+","+i3GEOF.identifica.propJanelas[idjanela].y+")", | |
| 251 | 251 | "i3GEOF.bufferpt_script" |
| 252 | 252 | ); |
| 253 | 253 | } | ... | ... |
ferramentas/identifica/template_mst.html
| ... | ... | @@ -49,6 +49,7 @@ |
| 49 | 49 | <b>{{{valorPonto}}}<br></b> |
| 50 | 50 | <div id='{{{idjanelaA}}}i3GEOidentificacoord'></div> |
| 51 | 51 | <br> |
| 52 | + <input id='{{{idjanelaA}}}i3GEOidentificabotao2' size='20' type='button' value='{{{criaBuffer}}}' /><br> | |
| 53 | + <br> | |
| 52 | 54 | <div id='{{{idjanelaA}}}i3GEOidentificacoordtexto' style='text-align: left'></div> |
| 53 | - <br> <br> <input id='{{{idjanelaA}}}i3GEOidentificabotao2' size='20' type='button' value='{{{criaBuffer}}}' /><br> | |
| 54 | 55 | </div> |
| 55 | 56 | \ No newline at end of file | ... | ... |