Commit fa723b9a7f845e4833bbc638f57dec3b0371c0bd

Authored by Edmar Moretti
1 parent 92db96de

Parâmetro de configuração para permitir ajuste automático do tamanho do mapa. Co…

…rreção no tamanho da barra de botões.
admin/admin.db
No preview for this file type
classesjs/classe_barradebotoes.js
@@ -594,7 +594,7 @@ i3GEO.barraDeBotoes = { @@ -594,7 +594,7 @@ i3GEO.barraDeBotoes = {
594 {i3GEO.util.mudaCursor(i3GEO.configura.cursores,"contexto",idconteudonovo,i3GEO.configura.locaplic);} 594 {i3GEO.util.mudaCursor(i3GEO.configura.cursores,"contexto",idconteudonovo,i3GEO.configura.locaplic);}
595 //copia os botoes do HTML para a janela 595 //copia os botoes do HTML para a janela
596 ticone = 28; 596 ticone = 28;
597 - alturadisponivel = i3GEO.parametros.h - i3GEO.Interface.BARRABOTOESTOP - ticone - 25 - 28; 597 + alturadisponivel = i3GEO.parametros.h - i3GEO.Interface.BARRABOTOESTOP - ticone - 28 - 28;
598 if(i3GEO.barraDeBotoes.AUTOALTURA === true) 598 if(i3GEO.barraDeBotoes.AUTOALTURA === true)
599 {alturadisponivel += 28;} 599 {alturadisponivel += 28;}
600 numerobotoes = parseInt(alturadisponivel / ticone,10); 600 numerobotoes = parseInt(alturadisponivel / ticone,10);
@@ -645,7 +645,7 @@ i3GEO.barraDeBotoes = { @@ -645,7 +645,7 @@ i3GEO.barraDeBotoes = {
645 {i3GEO.navega.barraDeZoom.ativa();} 645 {i3GEO.navega.barraDeZoom.ativa();}
646 YAHOO.janelaBotoes.xp.panel.render(); 646 YAHOO.janelaBotoes.xp.panel.render();
647 if(i3GEO.barraDeBotoes.AUTOALTURA === true){ 647 if(i3GEO.barraDeBotoes.AUTOALTURA === true){
648 - YAHOO.util.Dom.setStyle("i3geo_barra2","height",i3GEO.parametros.h - i3GEO.Interface.BARRABOTOESTOP - 1 + "px"); 648 + //YAHOO.util.Dom.setStyle("i3geo_barra2","height",i3GEO.parametros.h - i3GEO.Interface.BARRABOTOESTOP - 1 + "px");
649 } 649 }
650 YAHOO.janelaBotoes.xp.panel.moveTo(x,y); 650 YAHOO.janelaBotoes.xp.panel.moveTo(x,y);
651 if($i("sobeferramentas")){ 651 if($i("sobeferramentas")){
classesjs/classe_configura.js
@@ -306,6 +306,19 @@ i3GEO.configura = { @@ -306,6 +306,19 @@ i3GEO.configura = {
306 */ 306 */
307 diminuiyN: 100, 307 diminuiyN: 100,
308 /* 308 /*
  309 + Propriedade: autotamanho
  310 +
  311 + Calcula o tamanho do mapa conforme o tamanho da janela do navegador (false) ou calcula o tamanho do mapa
  312 + conforme o tamanho da tela do monitor (true)
  313 +
  314 + Tipo:
  315 + {boolean}
  316 +
  317 + Default:
  318 + {false}
  319 + */
  320 + autotamanho: false,
  321 + /*
309 Propriedade: map3d 322 Propriedade: map3d
310 323
311 Variável que define o nome do map_file que possuí o layer para uso na função 3d. 324 Variável que define o nome do map_file que possuí o layer para uso na função 3d.
classesjs/classe_i3geo.js
@@ -526,17 +526,17 @@ i3GEO = { @@ -526,17 +526,17 @@ i3GEO = {
526 if ($i("contemFerramentas")) 526 if ($i("contemFerramentas"))
527 {menos += parseInt($i("contemFerramentas").style.width,10);} 527 {menos += parseInt($i("contemFerramentas").style.width,10);}
528 if ($i("ferramentas")) 528 if ($i("ferramentas"))
529 - {menos += parseInt($i("ferramentas").style.width,10);}  
530 -  
531 - //novow = parseInt(screen.availWidth,10) - diminuix; 529 + {menos += parseInt($i("ferramentas").style.width,10);}
  530 + if(i3GEO.configura.autotamanho === true){
  531 + //novow = parseInt(screen.availWidth,10) - diminuix - i3GEO.util.getScrollerWidth();
  532 + //novoh = parseInt(screen.availHeight,10) - diminuiy;
  533 + if (window.top === window.self){//nao se aplica em iframe
  534 + window.resizeTo(screen.availWidth,screen.availHeight);
  535 + window.moveTo(0,0);
  536 + }
  537 + }
532 novow = YAHOO.util.Dom.getDocumentWidth() - i3GEO.util.getScrollerWidth(); 538 novow = YAHOO.util.Dom.getDocumentWidth() - i3GEO.util.getScrollerWidth();
533 - //novoh = parseInt(screen.availHeight,10) - diminuiy;  
534 novoh = YAHOO.util.Dom.getDocumentHeight(); 539 novoh = YAHOO.util.Dom.getDocumentHeight();
535 -  
536 - if (window.top === window.self){//nao se aplica em iframe  
537 - window.resizeTo(screen.availWidth,screen.availHeight);  
538 - window.moveTo(0,0);  
539 - }  
540 //o try aqui é necessário por conta do uso possível do i3geo em um iframe 540 //o try aqui é necessário por conta do uso possível do i3geo em um iframe
541 try{ 541 try{
542 if (novow < 800){ 542 if (novow < 800){
interface/openlayers.htm
@@ -173,7 +173,14 @@ Para definir quais botões das barras de ferramentas serão incluídos no mapa, vej @@ -173,7 +173,14 @@ Para definir quais botões das barras de ferramentas serão incluídos no mapa, vej
173 Se não for definida, o i3Geo tentará encontrar o local automaticamente 173 Se não for definida, o i3Geo tentará encontrar o local automaticamente
174 */ 174 */
175 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; 175 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
  176 +/*
  177 +Para outras configurações, veja i3geo/classesjs/classe_configura.js
  178 +
  179 +exemplo
176 180
  181 +i3GEO.configura.autotamanho = true;
  182 +*/
  183 +i3GEO.configura.autotamanho = false;
177 i3GEO.Interface.ATUAL = "openlayers"; 184 i3GEO.Interface.ATUAL = "openlayers";
178 i3GEO.Interface.IDCORPO = "contemImg"; 185 i3GEO.Interface.IDCORPO = "contemImg";
179 186
testainstal.php
@@ -50,6 +50,7 @@ i3geo/testainstal.php @@ -50,6 +50,7 @@ i3geo/testainstal.php
50 50
51 */ 51 */
52 error_reporting(E_ALL); 52 error_reporting(E_ALL);
  53 +echo "<html><body>";
53 echo "<pre>\n"; 54 echo "<pre>\n";
54 echo "<b>TESTE DE INSTALACAO DO i3Geo</b><br>\n"; 55 echo "<b>TESTE DE INSTALACAO DO i3Geo</b><br>\n";
55 echo getcwd(); 56 echo getcwd();
@@ -58,8 +59,10 @@ echo &quot;&lt;br&gt;&lt;br&gt;PHP (a vers&amp;atilde;o deve ser a 5x e menor que 5.3): &quot;; @@ -58,8 +59,10 @@ echo &quot;&lt;br&gt;&lt;br&gt;PHP (a vers&amp;atilde;o deve ser a 5x e menor que 5.3): &quot;;
58 echo "<br>".phpversion()."<br>\n"; 59 echo "<br>".phpversion()."<br>\n";
59 include("classesphp/carrega_ext.php"); 60 include("classesphp/carrega_ext.php");
60 $exts = get_loaded_extensions(); 61 $exts = get_loaded_extensions();
61 -echo "Obs: MapServer (a vers&atilde;o deve ser &gt;= 5.2 para que a sobreposi&ccedil;&atilde;o de temas funcione na interface Google Maps): "; 62 +echo "Obs: MapServer (a vers&atilde;o deve ser &gt;= 5.2 para que a sobreposi&ccedil;&atilde;o de temas funcione na interface Google Maps): <br>";
62 echo ms_GetVersion()."<br><br>"; 63 echo ms_GetVersion()."<br><br>";
  64 +if(!function_exists("ms_GetVersion"))
  65 +{echo "O MAPSERVER PARECE NAO ESTAR INSTALADO<br><br>";}
63 echo "---"; 66 echo "---";
64 echo "<br><pre>Extens&otilde;es:<br>"; 67 echo "<br><pre>Extens&otilde;es:<br>";
65 if (!extension_loaded("libxml")){echo "<span style=color:red >Problema: n&atilde;o est&aacute; instalado a libxml<br></span>";} 68 if (!extension_loaded("libxml")){echo "<span style=color:red >Problema: n&atilde;o est&aacute; instalado a libxml<br></span>";}
@@ -76,8 +79,8 @@ if (!extension_loaded( &quot;mbstring&quot;)){echo &quot;&lt;span style=color:red &gt;Obs: n&amp;atilde;o @@ -76,8 +79,8 @@ if (!extension_loaded( &quot;mbstring&quot;)){echo &quot;&lt;span style=color:red &gt;Obs: n&amp;atilde;o
76 79
77 var_dump( $exts ); 80 var_dump( $exts );
78 81
79 -echo "Existe o ms_configura.php? ";  
80 -if(file_exists("ms_configura.php")) echo "Sim\n"; else {echo "Nao";saindo("ms_configura não encontrado");} 82 +echo "Existe o ms_configura.php? <br>";
  83 +if(file_exists("ms_configura.php")) echo "Sim\n"; else {echo "Nao";saindo(" ms_configura não encontrado");}
81 echo "Incluindo...\n<br>"; 84 echo "Incluindo...\n<br>";
82 include ("ms_configura.php"); 85 include ("ms_configura.php");
83 echo "<b>$mensagemInicia </b> \n"; 86 echo "<b>$mensagemInicia </b> \n";