Commit 07f9cac04c6069d6d9d751c0026843f74d287f60
1 parent
f9bb4105
Exists in
master
and in
6 other branches
Correção de vários bugs e melhorias nas ferramentas do i3Geo
Showing
9 changed files
with
39 additions
and
8 deletions
Show diff stats
classesphp/classe_toponimia.php
| ... | ... | @@ -316,6 +316,8 @@ class Toponimia |
| 316 | 316 | $label->set("position", $p[$position]); |
| 317 | 317 | } |
| 318 | 318 | if ($tipo == "teste") { |
| 319 | + $this->layer->set("maxscaledenom", 0); | |
| 320 | + $this->layer->set("minscaledenom", 0); | |
| 319 | 321 | $i = gravaImagemMapa($this->mapa); |
| 320 | 322 | return ($i["url"]); |
| 321 | 323 | } else { | ... | ... |
ferramentas/download/index.js
| ... | ... | @@ -91,8 +91,8 @@ i3GEOF.download = { |
| 91 | 91 | */ |
| 92 | 92 | html:function(divid,tema){ |
| 93 | 93 | var cp,p,ins,mostraDownload,c; |
| 94 | - ins = '<div class="container-fluid"><h5 class="alert alert-info">'+$trad('download',i3GEOF.download.dicionario)+'</h5>'; | |
| 95 | - ins += '<div id=i3GEOdownloadResultado ></div>'; | |
| 94 | + ins = '<div class="container-fluid" style="top:0px;position:absolute;"><h5 class="alert alert-info">'+$trad('download',i3GEOF.download.dicionario)+'</h5>'; | |
| 95 | + ins += '<div id=i3GEOdownloadResultado ></div></div>'; | |
| 96 | 96 | $i(divid).innerHTML += ins; |
| 97 | 97 | c = i3GEO.arvoreDeCamadas.pegaTema(tema); |
| 98 | 98 | //wms |
| ... | ... | @@ -157,7 +157,7 @@ i3GEOF.download = { |
| 157 | 157 | minimiza = function(){ |
| 158 | 158 | i3GEO.janela.minimiza("i3GEOF.download",200); |
| 159 | 159 | }; |
| 160 | - titulo = "<span class='i3GeoTituloJanelaBsNolink' ></span></div>"; | |
| 160 | + titulo = "<span class='i3GeoTituloJanelaBsNolink' >Download</span></div>"; | |
| 161 | 161 | janela = i3GEO.janela.cria( |
| 162 | 162 | "300px", |
| 163 | 163 | "200px", | ... | ... |
ferramentas/selecao/dicionario.js
| ... | ... | @@ -179,5 +179,10 @@ i3GEOF.selecao.dicionario = { |
| 179 | 179 | pt : "Opções de seleção. Clique no ícone para ativar.", |
| 180 | 180 | en : "Selection options. Click the icon to activate.", |
| 181 | 181 | es : "Opciones de selección. Haga clic en el icono para activar." |
| 182 | - } ] | |
| 182 | + } ], | |
| 183 | + "cliqueSel" : [ { | |
| 184 | + pt : "Clique no desenho existente para usá-lo na seleção", | |
| 185 | + en : "", | |
| 186 | + es : "" | |
| 187 | + } ] | |
| 183 | 188 | }; | ... | ... |
ferramentas/selecao/index.js
| ... | ... | @@ -434,6 +434,7 @@ i3GEOF.selecao = |
| 434 | 434 | |
| 435 | 435 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); |
| 436 | 436 | i3GEOF.selecao.figura[api].inicia(); |
| 437 | + i3GEO.janela.tempoMsg($trad('cliqueSel', i3GEOF.selecao.dicionario)); | |
| 437 | 438 | } |
| 438 | 439 | // } catch (e) { |
| 439 | 440 | // i3GEO.janela.tempoMsg("Erro: " + e); | ... | ... |
ferramentas/toponimia/exec.php
| ... | ... | @@ -33,6 +33,13 @@ Cria um novo tema com a topon&iacute;mia do tema atual. |
| 33 | 33 | } |
| 34 | 34 | $m->layer->set("labelmaxscaledenom",$_GET["maxscale"]); |
| 35 | 35 | $m->layer->set("labelminscaledenom",$_GET["minscale"]); |
| 36 | + $p = $m->layer->getProcessing(); | |
| 37 | + if(!in_array("LABEL_NO_CLIP=True",$p)){ | |
| 38 | + $m->layer->setprocessing("LABEL_NO_CLIP=True"); | |
| 39 | + } | |
| 40 | + if(!in_array("POLYLINE_NO_CLIP=True",$p)){ | |
| 41 | + $m->layer->setprocessing("POLYLINE_NO_CLIP=True"); | |
| 42 | + } | |
| 36 | 43 | if ($_GET["tipo"] != "teste"){ |
| 37 | 44 | $m->salva();$_SESSION["contadorsalva"]++; |
| 38 | 45 | } | ... | ... |
ferramentas/toponimia/index.js
| ... | ... | @@ -85,7 +85,7 @@ i3GEOF.toponimia = { |
| 85 | 85 | $i("i3GEOtoponimiaguia2").onclick = function() |
| 86 | 86 | {i3GEO.guias.mostraGuiaFerramenta("i3GEOtoponimiaguia2","i3GEOtoponimiaguia");}; |
| 87 | 87 | $i("i3GEOtoponimiaguia3").onclick = function(){ |
| 88 | - i3GEO.guias.mostraGuiaFerramenta("i3GEOtoponimiaguia3","i3GEOtoponimiaguia"); | |
| 88 | + //i3GEO.guias.mostraGuiaFerramenta("i3GEOtoponimiaguia3","i3GEOtoponimiaguia"); | |
| 89 | 89 | i3GEOF.toponimia.testa(); |
| 90 | 90 | }; |
| 91 | 91 | // |
| ... | ... | @@ -288,8 +288,9 @@ i3GEOF.toponimia = { |
| 288 | 288 | {return;} |
| 289 | 289 | i3GEOF.toponimia.aguarde.visibility = "visible"; |
| 290 | 290 | var monta = function(retorno){ |
| 291 | - $i("i3GEOtoponimiaTeste").innerHTML= "<img style='height:" + i3GEO.parametros.h + "px;width:" + i3GEO.parametros.w + "px;' src='"+retorno.data+"' >"; | |
| 291 | + //$i("i3GEOtoponimiaTeste").innerHTML= "<img style='height:" + i3GEO.parametros.h + "px;width:" + i3GEO.parametros.w + "px;' src='"+retorno.data+"' >"; | |
| 292 | 292 | i3GEOF.toponimia.aguarde.visibility = "hidden"; |
| 293 | + window.open(retorno.data); | |
| 293 | 294 | }, |
| 294 | 295 | par = i3GEOF.toponimia.pegaPar(), |
| 295 | 296 | p = i3GEO.configura.locaplic+"/ferramentas/toponimia/exec.php?g_sid="+i3GEO.configura.sid+ | ... | ... |
ferramentas/wkt2layer/index.js
| ... | ... | @@ -6,7 +6,8 @@ if (typeof (i3GEOF) === 'undefined') { |
| 6 | 6 | */ |
| 7 | 7 | i3GEOF.wkt2layer = |
| 8 | 8 | { |
| 9 | - /* | |
| 9 | + position: [150,150], | |
| 10 | + /* | |
| 10 | 11 | Variavel: aguarde |
| 11 | 12 | |
| 12 | 13 | Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. |
| ... | ... | @@ -123,7 +124,7 @@ i3GEOF.wkt2layer = |
| 123 | 124 | "" |
| 124 | 125 | ); |
| 125 | 126 | divid = janela[2].id; |
| 126 | - janela[0].moveTo(150,150); | |
| 127 | + janela[0].moveTo(i3GEOF.wkt2layer.position[0],i3GEOF.wkt2layer.position[1]); | |
| 127 | 128 | $i("i3GEOF.wkt2layer_corpo").style.backgroundColor = "white"; |
| 128 | 129 | i3GEOF.wkt2layer.aguarde = $i("i3GEOF.wkt2layer_imagemCabecalho").style; |
| 129 | 130 | i3GEOF.wkt2layer.inicia(divid,wkt,texto); |
| ... | ... | @@ -209,3 +210,10 @@ i3GEOF.wkt2layer = |
| 209 | 210 | cp.call(p,"foo",monta,"xy="+wkt); |
| 210 | 211 | } |
| 211 | 212 | }; |
| 213 | +//aplica ao codigo i3GEOF definicoes feitas na interface do mapa | |
| 214 | +//isso permite a substituicao de funcoes e parametros | |
| 215 | +if(i3GEO.configura.ferramentas.hasOwnProperty("wkt2layer")){ | |
| 216 | + jQuery.each( i3GEO.configura.ferramentas.wkt2layer, function(index, value) { | |
| 217 | + i3GEOF.wkt2layer[index] = i3GEO.configura.ferramentas.wkt2layer[index]; | |
| 218 | + }); | |
| 219 | +} | ... | ... |
interface/openlayersdebug.htm
| ... | ... | @@ -910,6 +910,10 @@ |
| 910 | 910 | {name: "Colorida", img: "referencia1"}, |
| 911 | 911 | {name: "B & W", img: "referencia1cinza"} |
| 912 | 912 | ] |
| 913 | + }, | |
| 914 | + //janela de conversao de coordenadas | |
| 915 | + wkt2layer : { | |
| 916 | + position : [150,150] | |
| 913 | 917 | } |
| 914 | 918 | }, |
| 915 | 919 | //configuracoes especificas para a interface que utiliza o OpenLayers | ... | ... |
js/editor.js
| ... | ... | @@ -85,6 +85,9 @@ i3GEO.editor = |
| 85 | 85 | return i3GEO.editorOL.backup.getSource().getFeatures(); |
| 86 | 86 | }; |
| 87 | 87 | } |
| 88 | + if(jQuery.isEmptyObject(i3GEO.editorOL.botoes)){ | |
| 89 | + i3GEO.editorOL.botoes = i3GEO.editor.botoes; | |
| 90 | + } | |
| 88 | 91 | i3GEO.editorOL.criaBotoes(i3GEO.editorOL.botoes); |
| 89 | 92 | } |
| 90 | 93 | }, | ... | ... |