Commit 93e9ef4b69a7d83273aa67905212c0d9b18c447c
1 parent
420a7ae2
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
13 additions
and
13 deletions
Show diff stats
ferramentas/selecao/index.js.php
| @@ -221,7 +221,7 @@ i3GEOF.selecao = { | @@ -221,7 +221,7 @@ i3GEOF.selecao = { | ||
| 221 | i3GEO.barraDeBotoes.ativaPadrao(); | 221 | i3GEO.barraDeBotoes.ativaPadrao(); |
| 222 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.selecao.clique()"); | 222 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.selecao.clique()"); |
| 223 | try{ | 223 | try{ |
| 224 | - i3GEO.desenho.richdraw.fecha; | 224 | + i3GEO.desenho.richdraw.fecha(); |
| 225 | } | 225 | } |
| 226 | catch(e){ | 226 | catch(e){ |
| 227 | if(typeof(console) !== 'undefined'){console.error(e);} | 227 | if(typeof(console) !== 'undefined'){console.error(e);} |
| @@ -290,7 +290,8 @@ i3GEOF.selecao = { | @@ -290,7 +290,8 @@ i3GEOF.selecao = { | ||
| 290 | {$i("i3GEOselecaobox").parentNode.style.backgroundColor = "#F5F5F5";} | 290 | {$i("i3GEOselecaobox").parentNode.style.backgroundColor = "#F5F5F5";} |
| 291 | if($i("i3GEOselecaopoli")) | 291 | if($i("i3GEOselecaopoli")) |
| 292 | {$i("i3GEOselecaopoli").parentNode.style.backgroundColor = "#F5F5F5";} | 292 | {$i("i3GEOselecaopoli").parentNode.style.backgroundColor = "#F5F5F5";} |
| 293 | - i3GEO.desenho.richdraw.fecha; | 293 | + try{i3GEO.desenho.richdraw.fecha();} |
| 294 | + catch(e){} | ||
| 294 | }, | 295 | }, |
| 295 | /* | 296 | /* |
| 296 | Function: pegaTemasSel | 297 | Function: pegaTemasSel |
| @@ -421,6 +422,7 @@ i3GEOF.selecao = { | @@ -421,6 +422,7 @@ i3GEOF.selecao = { | ||
| 421 | {alert("Escolha um tema");return;} | 422 | {alert("Escolha um tema");return;} |
| 422 | if(g_tipoacao !== 'selecaobox') | 423 | if(g_tipoacao !== 'selecaobox') |
| 423 | {return;} | 424 | {return;} |
| 425 | + i3GEO.Interface.openlayers.OLpan.deactivate(); | ||
| 424 | i3geoOL.removeControl(i3GEO.Interface.openlayers.OLpan); | 426 | i3geoOL.removeControl(i3GEO.Interface.openlayers.OLpan); |
| 425 | i3GEOF.selecao.box.criaBox(); | 427 | i3GEOF.selecao.box.criaBox(); |
| 426 | adicionaxyBox = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); | 428 | adicionaxyBox = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); |
| @@ -444,15 +446,13 @@ i3GEOF.selecao = { | @@ -444,15 +446,13 @@ i3GEOF.selecao = { | ||
| 444 | Cria o DIV que será utilizado para desenhar o box no mapa | 446 | Cria o DIV que será utilizado para desenhar o box no mapa |
| 445 | */ | 447 | */ |
| 446 | criaBox: function(){ | 448 | criaBox: function(){ |
| 447 | - if(i3GEO.Interface.ATUAL !== "openlayers"){ | ||
| 448 | - try{i3GEO.desenho.richdraw.fecha;} | ||
| 449 | - catch(e){ | ||
| 450 | - if(typeof(console) !== 'undefined'){console.error(e);} | ||
| 451 | - } | ||
| 452 | - i3GEO.desenho.criaContainerRichdraw(); | ||
| 453 | - i3GEO.desenho.richdraw.lineColor = "red"; | ||
| 454 | - i3GEO.desenho.richdraw.lineWidth = "2px"; | 449 | + try{i3GEO.desenho.richdraw.fecha();} |
| 450 | + catch(e){ | ||
| 451 | + if(typeof(console) !== 'undefined'){console.error(e);} | ||
| 455 | } | 452 | } |
| 453 | + i3GEO.desenho.criaContainerRichdraw(); | ||
| 454 | + i3GEO.desenho.richdraw.lineColor = "red"; | ||
| 455 | + i3GEO.desenho.richdraw.lineWidth = "2px"; | ||
| 456 | var novoel,temp; | 456 | var novoel,temp; |
| 457 | if(!$i("i3geoboxSel")){ | 457 | if(!$i("i3geoboxSel")){ |
| 458 | novoel = document.createElement("div"); | 458 | novoel = document.createElement("div"); |
| @@ -633,7 +633,7 @@ i3GEOF.selecao = { | @@ -633,7 +633,7 @@ i3GEOF.selecao = { | ||
| 633 | */ | 633 | */ |
| 634 | inicia: function(){ | 634 | inicia: function(){ |
| 635 | try | 635 | try |
| 636 | - {i3GEO.desenho.richdraw.fecha;} | 636 | + {i3GEO.desenho.richdraw.fecha();} |
| 637 | catch(e) | 637 | catch(e) |
| 638 | {if(typeof(console) !== 'undefined'){console.error(e);}} | 638 | {if(typeof(console) !== 'undefined'){console.error(e);}} |
| 639 | pontosdistobj = []; | 639 | pontosdistobj = []; |
interface/openlayers.htm
| @@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
| 100 | </div> | 100 | </div> |
| 101 | </div> | 101 | </div> |
| 102 | </div> | 102 | </div> |
| 103 | -<script src="../classesjs/i3geo.js"></script> | 103 | +<script src="../classesjs/i3geonaocompacto.js"></script> |
| 104 | <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> | 104 | <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> |
| 105 | <!-- estilo necessário para a ferramenta de edição --> | 105 | <!-- estilo necessário para a ferramenta de edição --> |
| 106 | <style> | 106 | <style> |
testainstal.php
| @@ -166,7 +166,7 @@ echo "Voc&ecirc; pode testar o CGI clicando <a href='".$enderecocgi."' target='_ | @@ -166,7 +166,7 @@ echo "Voc&ecirc; pode testar o CGI clicando <a href='".$enderecocgi."' target='_ | ||
| 166 | echo "<br>Escrevendo no diretório temporário..."; | 166 | echo "<br>Escrevendo no diretório temporário..."; |
| 167 | $f = @fopen($dir_tmp."/teste.txt",w); | 167 | $f = @fopen($dir_tmp."/teste.txt",w); |
| 168 | @fclose($f); | 168 | @fclose($f); |
| 169 | -if (file_exists($dir_tmp."/teste.txt")) echo "ok\n"; else saindo("\nNão foi possível gravar no diretório temporário"); | 169 | +if (file_exists($dir_tmp."/teste.txt")) echo "ok\n"; else saindo("\nNão foi possível gravar no diretório temporário $dir_tmp"); |
| 170 | echo "Existe o geral1.map? "; | 170 | echo "Existe o geral1.map? "; |
| 171 | if(file_exists("$locaplic/aplicmap/geral1.map")) echo "Sim\n"; else {echo "Nao";saindo("geral1.map não encontrado");} | 171 | if(file_exists("$locaplic/aplicmap/geral1.map")) echo "Sim\n"; else {echo "Nao";saindo("geral1.map não encontrado");} |
| 172 | echo " \n"; | 172 | echo " \n"; |