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,6 +316,8 @@ class Toponimia | ||
316 | $label->set("position", $p[$position]); | 316 | $label->set("position", $p[$position]); |
317 | } | 317 | } |
318 | if ($tipo == "teste") { | 318 | if ($tipo == "teste") { |
319 | + $this->layer->set("maxscaledenom", 0); | ||
320 | + $this->layer->set("minscaledenom", 0); | ||
319 | $i = gravaImagemMapa($this->mapa); | 321 | $i = gravaImagemMapa($this->mapa); |
320 | return ($i["url"]); | 322 | return ($i["url"]); |
321 | } else { | 323 | } else { |
ferramentas/download/index.js
@@ -91,8 +91,8 @@ i3GEOF.download = { | @@ -91,8 +91,8 @@ i3GEOF.download = { | ||
91 | */ | 91 | */ |
92 | html:function(divid,tema){ | 92 | html:function(divid,tema){ |
93 | var cp,p,ins,mostraDownload,c; | 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 | $i(divid).innerHTML += ins; | 96 | $i(divid).innerHTML += ins; |
97 | c = i3GEO.arvoreDeCamadas.pegaTema(tema); | 97 | c = i3GEO.arvoreDeCamadas.pegaTema(tema); |
98 | //wms | 98 | //wms |
@@ -157,7 +157,7 @@ i3GEOF.download = { | @@ -157,7 +157,7 @@ i3GEOF.download = { | ||
157 | minimiza = function(){ | 157 | minimiza = function(){ |
158 | i3GEO.janela.minimiza("i3GEOF.download",200); | 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 | janela = i3GEO.janela.cria( | 161 | janela = i3GEO.janela.cria( |
162 | "300px", | 162 | "300px", |
163 | "200px", | 163 | "200px", |
ferramentas/selecao/dicionario.js
@@ -179,5 +179,10 @@ i3GEOF.selecao.dicionario = { | @@ -179,5 +179,10 @@ i3GEOF.selecao.dicionario = { | ||
179 | pt : "Opções de seleção. Clique no ícone para ativar.", | 179 | pt : "Opções de seleção. Clique no ícone para ativar.", |
180 | en : "Selection options. Click the icon to activate.", | 180 | en : "Selection options. Click the icon to activate.", |
181 | es : "Opciones de selección. Haga clic en el icono para activar." | 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,6 +434,7 @@ i3GEOF.selecao = | ||
434 | 434 | ||
435 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); | 435 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); |
436 | i3GEOF.selecao.figura[api].inicia(); | 436 | i3GEOF.selecao.figura[api].inicia(); |
437 | + i3GEO.janela.tempoMsg($trad('cliqueSel', i3GEOF.selecao.dicionario)); | ||
437 | } | 438 | } |
438 | // } catch (e) { | 439 | // } catch (e) { |
439 | // i3GEO.janela.tempoMsg("Erro: " + e); | 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,6 +33,13 @@ Cria um novo tema com a topon&iacute;mia do tema atual. | ||
33 | } | 33 | } |
34 | $m->layer->set("labelmaxscaledenom",$_GET["maxscale"]); | 34 | $m->layer->set("labelmaxscaledenom",$_GET["maxscale"]); |
35 | $m->layer->set("labelminscaledenom",$_GET["minscale"]); | 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 | if ($_GET["tipo"] != "teste"){ | 43 | if ($_GET["tipo"] != "teste"){ |
37 | $m->salva();$_SESSION["contadorsalva"]++; | 44 | $m->salva();$_SESSION["contadorsalva"]++; |
38 | } | 45 | } |
ferramentas/toponimia/index.js
@@ -85,7 +85,7 @@ i3GEOF.toponimia = { | @@ -85,7 +85,7 @@ i3GEOF.toponimia = { | ||
85 | $i("i3GEOtoponimiaguia2").onclick = function() | 85 | $i("i3GEOtoponimiaguia2").onclick = function() |
86 | {i3GEO.guias.mostraGuiaFerramenta("i3GEOtoponimiaguia2","i3GEOtoponimiaguia");}; | 86 | {i3GEO.guias.mostraGuiaFerramenta("i3GEOtoponimiaguia2","i3GEOtoponimiaguia");}; |
87 | $i("i3GEOtoponimiaguia3").onclick = function(){ | 87 | $i("i3GEOtoponimiaguia3").onclick = function(){ |
88 | - i3GEO.guias.mostraGuiaFerramenta("i3GEOtoponimiaguia3","i3GEOtoponimiaguia"); | 88 | + //i3GEO.guias.mostraGuiaFerramenta("i3GEOtoponimiaguia3","i3GEOtoponimiaguia"); |
89 | i3GEOF.toponimia.testa(); | 89 | i3GEOF.toponimia.testa(); |
90 | }; | 90 | }; |
91 | // | 91 | // |
@@ -288,8 +288,9 @@ i3GEOF.toponimia = { | @@ -288,8 +288,9 @@ i3GEOF.toponimia = { | ||
288 | {return;} | 288 | {return;} |
289 | i3GEOF.toponimia.aguarde.visibility = "visible"; | 289 | i3GEOF.toponimia.aguarde.visibility = "visible"; |
290 | var monta = function(retorno){ | 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 | i3GEOF.toponimia.aguarde.visibility = "hidden"; | 292 | i3GEOF.toponimia.aguarde.visibility = "hidden"; |
293 | + window.open(retorno.data); | ||
293 | }, | 294 | }, |
294 | par = i3GEOF.toponimia.pegaPar(), | 295 | par = i3GEOF.toponimia.pegaPar(), |
295 | p = i3GEO.configura.locaplic+"/ferramentas/toponimia/exec.php?g_sid="+i3GEO.configura.sid+ | 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,7 +6,8 @@ if (typeof (i3GEOF) === 'undefined') { | ||
6 | */ | 6 | */ |
7 | i3GEOF.wkt2layer = | 7 | i3GEOF.wkt2layer = |
8 | { | 8 | { |
9 | - /* | 9 | + position: [150,150], |
10 | + /* | ||
10 | Variavel: aguarde | 11 | Variavel: aguarde |
11 | 12 | ||
12 | Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. | 13 | Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. |
@@ -123,7 +124,7 @@ i3GEOF.wkt2layer = | @@ -123,7 +124,7 @@ i3GEOF.wkt2layer = | ||
123 | "" | 124 | "" |
124 | ); | 125 | ); |
125 | divid = janela[2].id; | 126 | divid = janela[2].id; |
126 | - janela[0].moveTo(150,150); | 127 | + janela[0].moveTo(i3GEOF.wkt2layer.position[0],i3GEOF.wkt2layer.position[1]); |
127 | $i("i3GEOF.wkt2layer_corpo").style.backgroundColor = "white"; | 128 | $i("i3GEOF.wkt2layer_corpo").style.backgroundColor = "white"; |
128 | i3GEOF.wkt2layer.aguarde = $i("i3GEOF.wkt2layer_imagemCabecalho").style; | 129 | i3GEOF.wkt2layer.aguarde = $i("i3GEOF.wkt2layer_imagemCabecalho").style; |
129 | i3GEOF.wkt2layer.inicia(divid,wkt,texto); | 130 | i3GEOF.wkt2layer.inicia(divid,wkt,texto); |
@@ -209,3 +210,10 @@ i3GEOF.wkt2layer = | @@ -209,3 +210,10 @@ i3GEOF.wkt2layer = | ||
209 | cp.call(p,"foo",monta,"xy="+wkt); | 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,6 +910,10 @@ | ||
910 | {name: "Colorida", img: "referencia1"}, | 910 | {name: "Colorida", img: "referencia1"}, |
911 | {name: "B & W", img: "referencia1cinza"} | 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 | //configuracoes especificas para a interface que utiliza o OpenLayers | 919 | //configuracoes especificas para a interface que utiliza o OpenLayers |
js/editor.js
@@ -85,6 +85,9 @@ i3GEO.editor = | @@ -85,6 +85,9 @@ i3GEO.editor = | ||
85 | return i3GEO.editorOL.backup.getSource().getFeatures(); | 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 | i3GEO.editorOL.criaBotoes(i3GEO.editorOL.botoes); | 91 | i3GEO.editorOL.criaBotoes(i3GEO.editorOL.botoes); |
89 | } | 92 | } |
90 | }, | 93 | }, |