Commit 9b82773be65ce65e1756f346acfb84b05f523f82

Authored by Edmar Moretti
1 parent 4c12e919

Concluídos os testes da interface Openlayers no navegador Chrome

aplicmap/googleearth.phtml
@@ -16,7 +16,7 @@ include_once("../ms_configura.php"); @@ -16,7 +16,7 @@ include_once("../ms_configura.php");
16 </style> 16 </style>
17 <title>MMA - Mapa interativo</title> 17 <title>MMA - Mapa interativo</title>
18 <script type="text/javascript" src="http://www.google.com/jsapi?key=<?php echo $googleApiKey; ?>"></script> 18 <script type="text/javascript" src="http://www.google.com/jsapi?key=<?php echo $googleApiKey; ?>"></script>
19 -<script type="text/javascript" src="../classesjs/i3geo.js"></script> 19 +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script>
20 </head> 20 </head>
21 <body id=i3geo > 21 <body id=i3geo >
22 <center> 22 <center>
classesjs/classe_barradebotoes.js
@@ -894,7 +894,9 @@ i3GEO.barraDeBotoes = { @@ -894,7 +894,9 @@ i3GEO.barraDeBotoes = {
894 var i = $i("divMensagemBarraDeBotoes"); 894 var i = $i("divMensagemBarraDeBotoes");
895 if(i) 895 if(i)
896 {i.style.display="none";} 896 {i.style.display="none";}
897 - clearTimeout(timeAjudaBotoes); 897 + try
  898 + {clearTimeout(timeAjudaBotoes);}
  899 + catch(e){}
898 } 900 }
899 }; 901 };
900 //YAHOO.log("carregou classe barradebotoes", "Classes i3geo"); 902 //YAHOO.log("carregou classe barradebotoes", "Classes i3geo");
901 \ No newline at end of file 903 \ No newline at end of file
classesjs/classe_gadgets.js
@@ -1029,6 +1029,8 @@ i3GEO.gadgets = { @@ -1029,6 +1029,8 @@ i3GEO.gadgets = {
1029 {temp.border = "0px solid white";} 1029 {temp.border = "0px solid white";}
1030 else 1030 else
1031 {temp.border = "1px dotted white";} 1031 {temp.border = "1px dotted white";}
  1032 + if(navm && i3GEO.Interface.ATUAL == "googlemaps")
  1033 + {temp.border = "2px dotted white";}
1032 } 1034 }
1033 } 1035 }
1034 }; 1036 };
classesjs/classe_i3geo.js
@@ -575,6 +575,10 @@ i3GEO = { @@ -575,6 +575,10 @@ i3GEO = {
575 var diminuix,diminuiy,menos,novow,novoh,w,h,temp; 575 var diminuix,diminuiy,menos,novow,novoh,w,h,temp;
576 diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN; 576 diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN;
577 diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN; 577 diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN;
  578 + if(chro){
  579 + diminuix = diminuix - 10;
  580 + diminuiy = diminuiy - 50;
  581 + }
578 // 582 //
579 //subtrai barra de rolagem 583 //subtrai barra de rolagem
580 // 584 //
classesjs/classe_janela.js
@@ -50,9 +50,9 @@ i3GEO.janela = { @@ -50,9 +50,9 @@ i3GEO.janela = {
50 {String} 50 {String}
51 51
52 Default: 52 Default:
53 - {display:block;padding:5px 0 5px 0} 53 + {display:block;padding:5px 0px 5px 2px}
54 */ 54 */
55 - ESTILOBD: "display:block;padding:5px 0 5px 0", 55 + ESTILOBD: "display:block;padding:5px 0px 5px 2px;",
56 /* 56 /*
57 Propriedade: ESTILOAGUARDE 57 Propriedade: ESTILOAGUARDE
58 58
@@ -210,7 +210,7 @@ i3GEO.janela = { @@ -210,7 +210,7 @@ i3GEO.janela = {
210 if (arguments.length === 10){ 210 if (arguments.length === 10){
211 funcaoMinimiza = null; 211 funcaoMinimiza = null;
212 } 212 }
213 - wlargura_ = parseInt(wlargura,10)+0+"px"; 213 + wlargura_ = parseInt(wlargura,10)+2+"px";
214 if ($i(id)) 214 if ($i(id))
215 {YAHOO.janelaDoca.xp.panel.destroy();} 215 {YAHOO.janelaDoca.xp.panel.destroy();}
216 if($i(id+"_c")) 216 if($i(id+"_c"))
@@ -250,12 +250,6 @@ i3GEO.janela = { @@ -250,12 +250,6 @@ i3GEO.janela = {
250 $i(id+'_corpo').style.width=parseInt(wlargura,10); 250 $i(id+'_corpo').style.width=parseInt(wlargura,10);
251 if(navm) 251 if(navm)
252 {$i(id+'_corpo').style.width=parseInt(wlargura,10)-2;} 252 {$i(id+'_corpo').style.width=parseInt(wlargura,10)-2;}
253 - /*  
254 - if(navn)  
255 - {$i(id+'_corpo').style.width=parseInt(wlargura,10)-10;}  
256 - else  
257 - {$i(id+'_corpo').style.width=parseInt(wlargura,10)-2;}  
258 - */  
259 } 253 }
260 fix = false; 254 fix = false;
261 if(nx === "" || nx === "center") 255 if(nx === "" || nx === "center")
@@ -730,7 +724,7 @@ try{ @@ -730,7 +724,7 @@ try{
730 me.cfg.setProperty("width", nNewWidth + "px"); 724 me.cfg.setProperty("width", nNewWidth + "px");
731 if(navm) 725 if(navm)
732 {nNewWidth = nNewWidth - 2;} 726 {nNewWidth = nNewWidth - 2;}
733 - oBody.style.width = nNewWidth+"px"; 727 + oBody.style.width = nNewWidth - 2 +"px";
734 if (nBodyHeight < 0) 728 if (nBodyHeight < 0)
735 {nBodyHeight = 0;} 729 {nBodyHeight = 0;}
736 oBody.style.height = nBodyHeight + "px"; 730 oBody.style.height = nBodyHeight + "px";
classesjs/classe_php.js
@@ -518,11 +518,11 @@ i3GEO.php = { @@ -518,11 +518,11 @@ i3GEO.php = {
518 atualiza = true; 518 atualiza = true;
519 geo = false; 519 geo = false;
520 } 520 }
521 - if(geo === 'undefined') 521 + if(geo === undefined)
522 {geo = false;} 522 {geo = false;}
523 - if(atualiza === 'undefined') 523 + if(atualiza === undefined)
524 {atualiza = true;} 524 {atualiza = true;}
525 - if(ext === 'undefined') 525 + if(ext === undefined)
526 {alert("extensao nao definida");return;} 526 {alert("extensao nao definida");return;}
527 retorno = function(retorno){ 527 retorno = function(retorno){
528 if(i3GEO.Interface.ATUAL === "googlemaps"){ 528 if(i3GEO.Interface.ATUAL === "googlemaps"){
@@ -539,7 +539,9 @@ i3GEO.php = { @@ -539,7 +539,9 @@ i3GEO.php = {
539 // 539 //
540 //o try é necessario para não dar erro 540 //o try é necessario para não dar erro
541 // 541 //
542 - try{funcao.call(retorno);} 542 + try{
  543 + funcao.call(retorno);
  544 + }
543 catch(e){} 545 catch(e){}
544 }; 546 };
545 p = locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&tipoimagem="+tipoimagem+"&ext="+ext+"&g_sid="+sid+"&geo="+geo; 547 p = locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&tipoimagem="+tipoimagem+"&ext="+ext+"&g_sid="+sid+"&geo="+geo;
classesjs/classe_util.js
@@ -56,6 +56,18 @@ Default: @@ -56,6 +56,18 @@ Default:
56 56
57 */ 57 */
58 navn = false; 58 navn = false;
  59 +/*
  60 +Propriedade: chro
  61 +
  62 +Verdadeiro (true) se o navegador for o Chrome
  63 +
  64 +Tipo:
  65 +{boolean}
  66 +
  67 +Default:
  68 +{false}
  69 +*/
  70 +chro = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
59 //seta as variáveis navn e navm 71 //seta as variáveis navn e navm
60 var app = navigator.appName.substring(0,1); 72 var app = navigator.appName.substring(0,1);
61 if (app==='N'){navn=true;}else{navm=true;} 73 if (app==='N'){navn=true;}else{navm=true;}
classesphp/classe_toponimia.php
@@ -145,6 +145,10 @@ $tamanho Tamanho do texto. @@ -145,6 +145,10 @@ $tamanho Tamanho do texto.
145 $fonte Fonte. 145 $fonte Fonte.
146 146
147 $tipo Tipo teste| 147 $tipo Tipo teste|
  148 +
  149 +Retorno:
  150 +
  151 +{string} - código do layer criado
148 */ 152 */
149 function criaToponimia($item,$position,$partials,$offsetx,$offsety,$minfeaturesize,$mindistance,$force,$shadowcolor,$shadowsizex,$shadowsizey,$outlinecolor,$cor,$sombray,$sombrax,$sombra,$fundo,$angulo,$tamanho,$fonte,$tipo) 153 function criaToponimia($item,$position,$partials,$offsetx,$offsety,$minfeaturesize,$mindistance,$force,$shadowcolor,$shadowsizex,$shadowsizey,$outlinecolor,$cor,$sombray,$sombrax,$sombra,$fundo,$angulo,$tamanho,$fonte,$tipo)
150 { 154 {
@@ -174,6 +178,7 @@ $tipo Tipo teste| @@ -174,6 +178,7 @@ $tipo Tipo teste|
174 else 178 else
175 { 179 {
176 $novac = $this->layer->getclass(0); 180 $novac = $this->layer->getclass(0);
  181 + $nomer = $this->layer->name;
177 } 182 }
178 $label = $novac->label; 183 $label = $novac->label;
179 if ($fonte != "bitmap") 184 if ($fonte != "bitmap")
@@ -224,7 +229,7 @@ $tipo Tipo teste| @@ -224,7 +229,7 @@ $tipo Tipo teste|
224 return ($i["url"]); 229 return ($i["url"]);
225 } 230 }
226 else 231 else
227 - {return("ok");} 232 + {return($nomer);}
228 } 233 }
229 /* 234 /*
230 function: ativaEtiquetas 235 function: ativaEtiquetas
ferramentas/buscarapida/index.js
@@ -146,11 +146,11 @@ i3GEObuscaRapida = { @@ -146,11 +146,11 @@ i3GEObuscaRapida = {
146 {var resultado = i3GEObuscaRapida.montaResultado;} 146 {var resultado = i3GEObuscaRapida.montaResultado;}
147 aguarde("block") 147 aguarde("block")
148 $i("resultado").innerHTML = "Aguarde..." 148 $i("resultado").innerHTML = "Aguarde..."
  149 + $i(i3GEObuscaRapida.idresultado).style.display = "none";
149 var palavra = i3GEO.util.removeAcentos(palavra); 150 var palavra = i3GEO.util.removeAcentos(palavra);
150 i3GEObuscaRapida.palavra = palavra; 151 i3GEObuscaRapida.palavra = palavra;
151 i3GEObuscaRapida.locaplic = locaplic; 152 i3GEObuscaRapida.locaplic = locaplic;
152 i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); 153 i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra);
153 - //i3GEObuscaRapida.montaResultado()  
154 }, 154 },
155 /* 155 /*
156 Function: montaResultado 156 Function: montaResultado
@@ -188,6 +188,7 @@ i3GEObuscaRapida = { @@ -188,6 +188,7 @@ i3GEObuscaRapida = {
188 } 188 }
189 } 189 }
190 catch(e){var ins = "Erro ao acessar o serviço "+i3GEObuscaRapida.servico+"<br>";} 190 catch(e){var ins = "Erro ao acessar o serviço "+i3GEObuscaRapida.servico+"<br>";}
  191 + $i(i3GEObuscaRapida.idresultado).style.display = "block";
191 $i(i3GEObuscaRapida.idresultado).innerHTML = ins 192 $i(i3GEObuscaRapida.idresultado).innerHTML = ins
192 aguarde("none") 193 aguarde("none")
193 if(i3GEObuscaRapida.buscaemtemas){ 194 if(i3GEObuscaRapida.buscaemtemas){
ferramentas/convertews/index.js.php
@@ -109,8 +109,8 @@ i3GEOF.converteMapaWS = { @@ -109,8 +109,8 @@ i3GEOF.converteMapaWS = {
109 var enderecowms = "Ocorreu um erro ao criar o WMS", 109 var enderecowms = "Ocorreu um erro ao criar o WMS",
110 enderecowmc = "Ocorreu um erro ao criar o WMS"; 110 enderecowmc = "Ocorreu um erro ao criar o WMS";
111 if (retorno.data != undefined){ 111 if (retorno.data != undefined){
112 - enderecowms = window.location.protocol+"//"+window.location.host+retorno.data.wms+"&"+retorno.data.wms+"&";  
113 - enderecowmc = window.location.protocol+"//"+window.location.host+retorno.data.wmc+"&"+retorno.data.wmc+"&"; 112 + enderecowms = window.location.protocol+"//"+window.location.host+retorno.data.wms+"&";
  113 + enderecowmc = window.location.protocol+"//"+window.location.host+retorno.data.wmc+"&";
114 } 114 }
115 i3GEOF.converteMapaWS.html(divid,enderecowms,enderecowmc); 115 i3GEOF.converteMapaWS.html(divid,enderecowms,enderecowmc);
116 }; 116 };
menutemas/admin.db
No preview for this file type
ms_configura.php
@@ -374,7 +374,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == &#39;WIN&#39;)) @@ -374,7 +374,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == &#39;WIN&#39;))
374 Tipo: 374 Tipo:
375 {string} 375 {string}
376 */ 376 */
377 - $interfacePadrao = "googlemaps.phtml"; 377 + $interfacePadrao = "openlayers.htm";
378 } 378 }
379 else //se for linux 379 else //se for linux
380 { 380 {
temas/cbersgeo.map
@@ -10,7 +10,7 @@ LAYER @@ -10,7 +10,7 @@ LAYER
10 END 10 END
11 NAME "cbersgeo" 11 NAME "cbersgeo"
12 STATUS DEFAULT 12 STATUS DEFAULT
13 - TEMPLATE "none.htm" 13 + #TEMPLATE "none.htm"
14 TYPE RASTER 14 TYPE RASTER
15 UNITS METERS 15 UNITS METERS
16 CLASS 16 CLASS