Commit ebb92461f35886219473a6dfe83e4c321efe02be
1 parent
7bd41ed5
Exists in
master
and in
7 other branches
Corrigida função de identificação que não estava apresentando os temas na opção "Todos os temas"
Showing
4 changed files
with
23 additions
and
18 deletions
Show diff stats
classesphp/classe_atributos.php
| @@ -684,6 +684,7 @@ function identificaQBP($tema,$x,$y,$map_file,$resolucao,$item,$tiporetorno="") | @@ -684,6 +684,7 @@ function identificaQBP($tema,$x,$y,$map_file,$resolucao,$item,$tiporetorno="") | ||
| 684 | { | 684 | { |
| 685 | $mapa = ms_newMapObj($map_file); | 685 | $mapa = ms_newMapObj($map_file); |
| 686 | $layer = $mapa->getLayerByName($tema); | 686 | $layer = $mapa->getLayerByName($tema); |
| 687 | + $layer->set("status",MS_DEFAULT); | ||
| 687 | $layer->set("template","none.htm"); | 688 | $layer->set("template","none.htm"); |
| 688 | $pt = ms_newPointObj(); | 689 | $pt = ms_newPointObj(); |
| 689 | $pt->setXY($x, $y); | 690 | $pt->setXY($x, $y); |
ferramentas/identifica/index.htm
| 1 | <html> | 1 | <html> |
| 2 | <head> | 2 | <head> |
| 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| 4 | -<link rel="stylesheet" type="text/css" href="../../css/ferramentas.css"> | 4 | +<link rel="stylesheet" type="text/css" href="../../css/i3geo_ferramentas.css"> |
| 5 | +<link rel="stylesheet" type="text/css" href="../../pacotes/yui231/build/tabview/assets/skins/sam/tabview.css"> | ||
| 6 | +<style>.yuibutton button{padding-left:2em;background:url(../../imagens/tic.png) 5% 50% no-repeat;}</style> | ||
| 5 | </head> | 7 | </head> |
| 6 | -<body> | ||
| 7 | -<div id=fundo style='left:0px;' > | ||
| 8 | - <div class="guias"> | ||
| 9 | - <div class=guia id=guia1 > Temas visíveis </div> | ||
| 10 | - <div class=guia id=guia2 > Todos os temas </div> | ||
| 11 | - <div class=guia id=guia3 > Propriedades </div> | 8 | +<body class="yui-skin-sam" > |
| 9 | + <div class=verdeescuro style="top:0px;cursor:pointer;left:0px;"> | ||
| 10 | + <div id=guia1 >Temas visíveis</div> | ||
| 11 | + <div id=guia2 >Todos os temas</div> | ||
| 12 | + <div id=guia3 >Propriedades</div> | ||
| 12 | </div> | 13 | </div> |
| 13 | 14 | ||
| 14 | - <span id=geral style='left:0px;' > | 15 | + <span id=geral style="left:0px;top:0px;"> |
| 15 | 16 | ||
| 16 | <div class=guiaobj id="guia1obj" style="left:1px"> | 17 | <div class=guiaobj id="guia1obj" style="left:1px"> |
| 17 | <div id="resultado" style="overflow:auto;height:200px;display:block;position:relative;top:5px;left:0px;width:150px"></div> | 18 | <div id="resultado" style="overflow:auto;height:200px;display:block;position:relative;top:5px;left:0px;width:150px"></div> |
| @@ -33,10 +34,8 @@ | @@ -33,10 +34,8 @@ | ||
| 33 | </div> | 34 | </div> |
| 34 | </body> | 35 | </body> |
| 35 | <script language="JavaScript" type="text/javascript" src="../../classesjs/redesenho_compacto.js"></script> | 36 | <script language="JavaScript" type="text/javascript" src="../../classesjs/redesenho_compacto.js"></script> |
| 36 | -<script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> | ||
| 37 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | ||
| 38 | -<script language="JavaScript" type="text/javascript" src="index.js"></script> | ||
| 39 | -<script> | 37 | +<script src="../i3geo_tudo_compacto.js" type="text/javascript"></script> |
| 38 | +<script language="JavaScript" type="text/javascript" src="index.js"></script><script> | ||
| 40 | inicializaJanela() | 39 | inicializaJanela() |
| 41 | </script> | 40 | </script> |
| 42 | </html> | 41 | </html> |
| 43 | \ No newline at end of file | 42 | \ No newline at end of file |
ferramentas/identifica/index.js
| @@ -23,14 +23,16 @@ Free Software Foundation, Inc., no endereço | @@ -23,14 +23,16 @@ Free Software Foundation, Inc., no endereço | ||
| 23 | function inicializaJanela() | 23 | function inicializaJanela() |
| 24 | { | 24 | { |
| 25 | aguarde("block") | 25 | aguarde("block") |
| 26 | + ativaGuias("") | ||
| 27 | + mostraGuia("guia1") | ||
| 26 | g_locaplic = window.parent.g_locaplic | 28 | g_locaplic = window.parent.g_locaplic |
| 27 | xpt = unescape(((((window.location.href).split("x="))[1]).split("&"))[0] ); | 29 | xpt = unescape(((((window.location.href).split("x="))[1]).split("&"))[0] ); |
| 28 | ypt = unescape(((((window.location.href).split("y="))[1]).split("&"))[0] ); | 30 | ypt = unescape(((((window.location.href).split("y="))[1]).split("&"))[0] ); |
| 29 | escala = unescape(((((window.location.href).split("x="))[1]).split("&"))[0] ); | 31 | escala = unescape(((((window.location.href).split("x="))[1]).split("&"))[0] ); |
| 30 | //eventos das guias | 32 | //eventos das guias |
| 31 | - $i("guia1").onclick = function(){listaTemasLigados();$i("guia1obj").style.display="block"} | ||
| 32 | - $i("guia2").onclick = function(){listaTodos();$i("guia1obj").style.display="block"} | ||
| 33 | - $i("guia3").onclick = function(){$i("guia1obj").style.display="none";$i("guia3obj").style.display="block"} | 33 | + $i("guia1").onclick = function(){listaTemasLigados();mostraGuia("guia1")} |
| 34 | + $i("guia2").onclick = function(){listaTodos()} | ||
| 35 | + $i("guia3").onclick = function(){mostraGuia("guia3")} | ||
| 34 | $i("xy").innerHTML = "x: " + xpt + " y: " + ypt | 36 | $i("xy").innerHTML = "x: " + xpt + " y: " + ypt |
| 35 | listaTemasLigados() | 37 | listaTemasLigados() |
| 36 | } | 38 | } |
| @@ -120,11 +122,12 @@ function listaTodos() | @@ -120,11 +122,12 @@ function listaTodos() | ||
| 120 | var linhas = "Clique no tema para ver os dados<table class=lista2 >" | 122 | var linhas = "Clique no tema para ver os dados<table class=lista2 >" |
| 121 | for (l=0;l<lista.length;l++) | 123 | for (l=0;l<lista.length;l++) |
| 122 | { | 124 | { |
| 123 | - var ltema = lista[l].split(",") | ||
| 124 | - if (ltema[2] != undefined) | 125 | + var ltema = lista[l].split("*") |
| 126 | + if (ltema[2] != 2) | ||
| 125 | linhas += "<tr><td><input onclick='identifica(\""+ltema[0]+"\")' style=cursor:pointer type=radio name=tema /></td><td>"+ltema[2]+"</td></tr>" | 127 | linhas += "<tr><td><input onclick='identifica(\""+ltema[0]+"\")' style=cursor:pointer type=radio name=tema /></td><td>"+ltema[2]+"</td></tr>" |
| 126 | } | 128 | } |
| 127 | - $i("resultado").innerHTML = linhas+"</table>" | 129 | + $i("resultado").innerHTML = "<table>"+linhas+"</table>" |
| 130 | + mostraGuia("guia1"); | ||
| 128 | } | 131 | } |
| 129 | //identifica o sistema clicado | 132 | //identifica o sistema clicado |
| 130 | function identificasistema(exec,t) | 133 | function identificasistema(exec,t) |
ms_configura.php
| @@ -57,6 +57,8 @@ postgis_con - string de conexão com o banco de dados postgis para realização de | @@ -57,6 +57,8 @@ postgis_con - string de conexão com o banco de dados postgis para realização de | ||
| 57 | srid_area - srid utilizado nos cálculos que exigem projeção equivalente | 57 | srid_area - srid utilizado nos cálculos que exigem projeção equivalente |
| 58 | 58 | ||
| 59 | postgis_mapa - string de conexão com o banco de dados para substituição do CONNECTION " ". Os layers que tiverem CONNECTION " " terão a string de conexão substituída por esse valor. | 59 | postgis_mapa - string de conexão com o banco de dados para substituição do CONNECTION " ". Os layers que tiverem CONNECTION " " terão a string de conexão substituída por esse valor. |
| 60 | + | ||
| 61 | +utilizacgi - sim|nao variável indicando se o desenho do corpo do mapa será baseado no cgi. Por default, o mapserver desenha o mapa via php. Em alguns casos o uso do cgi torna a aplicação mais rápida | ||
| 60 | */ | 62 | */ |
| 61 | $mensagemInicia = "I3Geo versão 3.8"; | 63 | $mensagemInicia = "I3Geo versão 3.8"; |
| 62 | if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) | 64 | if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) |