From 2a21b3b09e8d0a47c4b84988438ee02b38d8edc5 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 6 Nov 2017 09:58:07 -0200 Subject: [PATCH] Correção na ferramenta de conexão com WMS --- classesphp/wmswfs.php | 6 +++--- ferramentas/conectarservicos/template_mst.html | 2 +- ferramentas/conectarwms/dicionario.js | 5 +++++ ferramentas/conectarwms/index.js | 18 +++++++----------- ferramentas/conectarwms/template_mst.html | 5 +++-- ferramentas/mostraexten/index.js | 10 +++++++--- 6 files changed, 26 insertions(+), 20 deletions(-) diff --git a/classesphp/wmswfs.php b/classesphp/wmswfs.php index 4319b5b..33cf2d7 100755 --- a/classesphp/wmswfs.php +++ b/classesphp/wmswfs.php @@ -588,7 +588,7 @@ function imprimeEstilos($es, $suporta, $retorna, $tval, $tituloalternativo) { $nomeestilo = $e ["nome"]; $nomecamada = $e ["titulo"]; $tituloestilo = $e ["titulo"]; - $onclick = "seltema(\"estilo\",\"" . $tval . "\",\"\",\"" . $nomeestilo . "\",\"" . $tituloalternativo . " " . $nomecamada . " " . $tituloestilo . "\",\"" . $suporta . "\")"; + $onclick = "i3GEOF.conectarwms.seltema(\"estilo\",\"" . $tval . "\",\"\",\"" . $nomeestilo . "\",\"" . $tituloalternativo . " " . $nomecamada . " " . $tituloestilo . "\",\"" . $suporta . "\")"; $retorna [] = << @@ -611,7 +611,7 @@ EOT; return $retorna; } function imprimeEstilos2($camada1, $titulocamada1, $suporta) { - $onclick = "seltema(\"tema\",\"" . $camada1 . "\",\"\",\"default\",\"" . $camada1 . " " . $titulocamada1 . "\",\"" . $suporta . "\")"; + $onclick = "i3GEOF.conectarwms.seltema(\"tema\",\"" . $camada1 . "\",\"\",\"default\",\"" . $camada1 . " " . $titulocamada1 . "\",\"" . $suporta . "\")"; $retorna = <<
@@ -758,7 +758,7 @@ function temaswfs() { foreach ( $vs as $v ) { $temp .= $v->nodeValue; } - $temp = "" . $temp . "
"; + $temp = "" . $temp . "
"; $retorno .= "
" . $temp . $temp1 . "
" . $temp2 . "
"; } $cp->set_data ( $retorno ); diff --git a/ferramentas/conectarservicos/template_mst.html b/ferramentas/conectarservicos/template_mst.html index fb10354..c9eba40 100755 --- a/ferramentas/conectarservicos/template_mst.html +++ b/ferramentas/conectarservicos/template_mst.html @@ -1,4 +1,4 @@ -
+
KML WMS WMS-T diff --git a/ferramentas/conectarwms/dicionario.js b/ferramentas/conectarwms/dicionario.js index a5a26d4..1426bb5 100755 --- a/ferramentas/conectarwms/dicionario.js +++ b/ferramentas/conectarwms/dicionario.js @@ -30,6 +30,11 @@ i3GEOF.conectarwms.dicionario = { en : "", es : "" } ], + 'listasel' : [ { + pt : "Lista de serviços cadastrados", + en : "", + es : "" + } ], 5 : [ { pt : "Ooops! Problemas ao acessar o serviço.", en : "", diff --git a/ferramentas/conectarwms/index.js b/ferramentas/conectarwms/index.js index b7a8578..051836b 100755 --- a/ferramentas/conectarwms/index.js +++ b/ferramentas/conectarwms/index.js @@ -250,13 +250,9 @@ i3GEOF.conectarwms = { if (tema != ""){ var retorno = function(retorno){ i3GEOF.conectarwms.aguarde.visibility = "hidden"; - if(retorno.data != "ok"){ - i3GEO.janela.tempoMsg($trad('erro2',i3GEOF.conectarwms.dicionario));aguarde("none"); - } - else{ - i3GEO.atualiza(); - } + i3GEO.atualiza(); }; + i3GEOF.conectarwms.tema = tema; i3GEOF.conectarwms.aguarde.visibility = "visible"; var tiporep = ""; if($i("tiporep")){ @@ -270,12 +266,12 @@ i3GEOF.conectarwms = { $i("proj").value = "EPSG:4326"; } var p = "&funcao=adicionatemawms&servico="+$i("servicoWms").value+"&tema="+i3GEOF.conectarwms.tema+"&nome="+nometema+"&proj="+$i("proj").value+"&formato="+$i("formatos").value+"&tipo="+tipo+"&versao="+$i("versao").value+"&nomecamada="+nomecamada+"&tiporep="+tiporep+"&suportasld="+sldflag+"&formatosinfo="+$i("formatosinfo").value; - if(g_tipows == "WMS-Tile"){ - p += "&tile=1"; - } - else{ + //if(g_tipows && g_tipows == "WMS-Tile"){ + // p += "&tile=1"; + //} + //else{ p += "&tile=0"; - } + //} var cp = new cpaint(); cp.set_transfer_mode("POST"); cp.set_response_type("JSON"); diff --git a/ferramentas/conectarwms/template_mst.html b/ferramentas/conectarwms/template_mst.html index d7050c0..1e8e5e8 100755 --- a/ferramentas/conectarwms/template_mst.html +++ b/ferramentas/conectarwms/template_mst.html @@ -1,10 +1,11 @@ -
+
-
+ +
diff --git a/ferramentas/mostraexten/index.js b/ferramentas/mostraexten/index.js index a6c25ee..4693f91 100755 --- a/ferramentas/mostraexten/index.js +++ b/ferramentas/mostraexten/index.js @@ -163,14 +163,18 @@ i3GEOF.mostraExten = { y = i3GEO.calculo.dms2dd($i("i3GEOmostraExtenyg").value,$i("i3GEOmostraExtenym").value,$i("i3GEOmostraExtenys").value), yy = i3GEO.calculo.dms2dd($i("i3GEOmostraExtenyyg").value,$i("i3GEOmostraExtenyym").value,$i("i3GEOmostraExtenyys").value); if ((x == xx) || (y == yy)){ - i3GEO.janela.tempoMsg($trad('msgCoordValida',i3GEOF.mostraExten.dicionario)); + //i3GEO.janela.tempoMsg($trad('msgCoordValida',i3GEOF.mostraExten.dicionario)); + //return; + + i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.parametros.tipoimagem,$i("i3GEOmostraExtenatual").value); return; } if ((x > xx) || (y > yy)){ - i3GEO.janela.tempoMsg($trad('msgCoordValida',i3GEOF.mostraExten.dicionario)); + //i3GEO.janela.tempoMsg($trad('msgCoordValida',i3GEOF.mostraExten.dicionario)); + i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.parametros.tipoimagem,$i("i3GEOmostraExtenatual").value); return; } - i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,window.parent.i3GEO.parametros.tipoimagem,(x+" "+y+" "+xx+" "+yy)); + i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.parametros.tipoimagem,(x+" "+y+" "+xx+" "+yy)); } catch(e){i3GEO.janela.tempoMsg(e+" Erro.");} } -- libgit2 0.21.2