Commit 9b82773be65ce65e1756f346acfb84b05f523f82
1 parent
4c12e919
Exists in
master
and in
7 other branches
Concluídos os testes da interface Openlayers no navegador Chrome
Showing
13 changed files
with
44 additions
and
22 deletions
Show diff stats
aplicmap/googleearth.phtml
| ... | ... | @@ -16,7 +16,7 @@ include_once("../ms_configura.php"); |
| 16 | 16 | </style> |
| 17 | 17 | <title>MMA - Mapa interativo</title> |
| 18 | 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 | 20 | </head> |
| 21 | 21 | <body id=i3geo > |
| 22 | 22 | <center> | ... | ... |
classesjs/classe_barradebotoes.js
| ... | ... | @@ -894,7 +894,9 @@ i3GEO.barraDeBotoes = { |
| 894 | 894 | var i = $i("divMensagemBarraDeBotoes"); |
| 895 | 895 | if(i) |
| 896 | 896 | {i.style.display="none";} |
| 897 | - clearTimeout(timeAjudaBotoes); | |
| 897 | + try | |
| 898 | + {clearTimeout(timeAjudaBotoes);} | |
| 899 | + catch(e){} | |
| 898 | 900 | } |
| 899 | 901 | }; |
| 900 | 902 | //YAHOO.log("carregou classe barradebotoes", "Classes i3geo"); |
| 901 | 903 | \ No newline at end of file | ... | ... |
classesjs/classe_gadgets.js
classesjs/classe_i3geo.js
| ... | ... | @@ -575,6 +575,10 @@ i3GEO = { |
| 575 | 575 | var diminuix,diminuiy,menos,novow,novoh,w,h,temp; |
| 576 | 576 | diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN; |
| 577 | 577 | diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN; |
| 578 | + if(chro){ | |
| 579 | + diminuix = diminuix - 10; | |
| 580 | + diminuiy = diminuiy - 50; | |
| 581 | + } | |
| 578 | 582 | // |
| 579 | 583 | //subtrai barra de rolagem |
| 580 | 584 | // | ... | ... |
classesjs/classe_janela.js
| ... | ... | @@ -50,9 +50,9 @@ i3GEO.janela = { |
| 50 | 50 | {String} |
| 51 | 51 | |
| 52 | 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 | 57 | Propriedade: ESTILOAGUARDE |
| 58 | 58 | |
| ... | ... | @@ -210,7 +210,7 @@ i3GEO.janela = { |
| 210 | 210 | if (arguments.length === 10){ |
| 211 | 211 | funcaoMinimiza = null; |
| 212 | 212 | } |
| 213 | - wlargura_ = parseInt(wlargura,10)+0+"px"; | |
| 213 | + wlargura_ = parseInt(wlargura,10)+2+"px"; | |
| 214 | 214 | if ($i(id)) |
| 215 | 215 | {YAHOO.janelaDoca.xp.panel.destroy();} |
| 216 | 216 | if($i(id+"_c")) |
| ... | ... | @@ -250,12 +250,6 @@ i3GEO.janela = { |
| 250 | 250 | $i(id+'_corpo').style.width=parseInt(wlargura,10); |
| 251 | 251 | if(navm) |
| 252 | 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 | 254 | fix = false; |
| 261 | 255 | if(nx === "" || nx === "center") |
| ... | ... | @@ -730,7 +724,7 @@ try{ |
| 730 | 724 | me.cfg.setProperty("width", nNewWidth + "px"); |
| 731 | 725 | if(navm) |
| 732 | 726 | {nNewWidth = nNewWidth - 2;} |
| 733 | - oBody.style.width = nNewWidth+"px"; | |
| 727 | + oBody.style.width = nNewWidth - 2 +"px"; | |
| 734 | 728 | if (nBodyHeight < 0) |
| 735 | 729 | {nBodyHeight = 0;} |
| 736 | 730 | oBody.style.height = nBodyHeight + "px"; | ... | ... |
classesjs/classe_php.js
| ... | ... | @@ -518,11 +518,11 @@ i3GEO.php = { |
| 518 | 518 | atualiza = true; |
| 519 | 519 | geo = false; |
| 520 | 520 | } |
| 521 | - if(geo === 'undefined') | |
| 521 | + if(geo === undefined) | |
| 522 | 522 | {geo = false;} |
| 523 | - if(atualiza === 'undefined') | |
| 523 | + if(atualiza === undefined) | |
| 524 | 524 | {atualiza = true;} |
| 525 | - if(ext === 'undefined') | |
| 525 | + if(ext === undefined) | |
| 526 | 526 | {alert("extensao nao definida");return;} |
| 527 | 527 | retorno = function(retorno){ |
| 528 | 528 | if(i3GEO.Interface.ATUAL === "googlemaps"){ |
| ... | ... | @@ -539,7 +539,9 @@ i3GEO.php = { |
| 539 | 539 | // |
| 540 | 540 | //o try é necessario para não dar erro |
| 541 | 541 | // |
| 542 | - try{funcao.call(retorno);} | |
| 542 | + try{ | |
| 543 | + funcao.call(retorno); | |
| 544 | + } | |
| 543 | 545 | catch(e){} |
| 544 | 546 | }; |
| 545 | 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 | 56 | |
| 57 | 57 | */ |
| 58 | 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 | 71 | //seta as variáveis navn e navm |
| 60 | 72 | var app = navigator.appName.substring(0,1); |
| 61 | 73 | if (app==='N'){navn=true;}else{navm=true;} | ... | ... |
classesphp/classe_toponimia.php
| ... | ... | @@ -145,6 +145,10 @@ $tamanho Tamanho do texto. |
| 145 | 145 | $fonte Fonte. |
| 146 | 146 | |
| 147 | 147 | $tipo Tipo teste| |
| 148 | + | |
| 149 | +Retorno: | |
| 150 | + | |
| 151 | +{string} - código do layer criado | |
| 148 | 152 | */ |
| 149 | 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 | 178 | else |
| 175 | 179 | { |
| 176 | 180 | $novac = $this->layer->getclass(0); |
| 181 | + $nomer = $this->layer->name; | |
| 177 | 182 | } |
| 178 | 183 | $label = $novac->label; |
| 179 | 184 | if ($fonte != "bitmap") |
| ... | ... | @@ -224,7 +229,7 @@ $tipo Tipo teste| |
| 224 | 229 | return ($i["url"]); |
| 225 | 230 | } |
| 226 | 231 | else |
| 227 | - {return("ok");} | |
| 232 | + {return($nomer);} | |
| 228 | 233 | } |
| 229 | 234 | /* |
| 230 | 235 | function: ativaEtiquetas | ... | ... |
ferramentas/buscarapida/index.js
| ... | ... | @@ -146,11 +146,11 @@ i3GEObuscaRapida = { |
| 146 | 146 | {var resultado = i3GEObuscaRapida.montaResultado;} |
| 147 | 147 | aguarde("block") |
| 148 | 148 | $i("resultado").innerHTML = "Aguarde..." |
| 149 | + $i(i3GEObuscaRapida.idresultado).style.display = "none"; | |
| 149 | 150 | var palavra = i3GEO.util.removeAcentos(palavra); |
| 150 | 151 | i3GEObuscaRapida.palavra = palavra; |
| 151 | 152 | i3GEObuscaRapida.locaplic = locaplic; |
| 152 | 153 | i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); |
| 153 | - //i3GEObuscaRapida.montaResultado() | |
| 154 | 154 | }, |
| 155 | 155 | /* |
| 156 | 156 | Function: montaResultado |
| ... | ... | @@ -188,6 +188,7 @@ i3GEObuscaRapida = { |
| 188 | 188 | } |
| 189 | 189 | } |
| 190 | 190 | catch(e){var ins = "Erro ao acessar o serviço "+i3GEObuscaRapida.servico+"<br>";} |
| 191 | + $i(i3GEObuscaRapida.idresultado).style.display = "block"; | |
| 191 | 192 | $i(i3GEObuscaRapida.idresultado).innerHTML = ins |
| 192 | 193 | aguarde("none") |
| 193 | 194 | if(i3GEObuscaRapida.buscaemtemas){ | ... | ... |
ferramentas/convertews/index.js.php
| ... | ... | @@ -109,8 +109,8 @@ i3GEOF.converteMapaWS = { |
| 109 | 109 | var enderecowms = "Ocorreu um erro ao criar o WMS", |
| 110 | 110 | enderecowmc = "Ocorreu um erro ao criar o WMS"; |
| 111 | 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 | 115 | i3GEOF.converteMapaWS.html(divid,enderecowms,enderecowmc); |
| 116 | 116 | }; | ... | ... |
menutemas/admin.db
No preview for this file type
ms_configura.php