Commit a4f78f76b14763e0c7ec0f73917466f482e502f6
1 parent
9969a1c1
Exists in
master
and in
7 other branches
Inclusão da imagem do botão "onde estou?" na imagem sprite.png. Correção na veri…
…ficação da existência dos arquivos necessários para ativar a opção "onde estou" (o ícone estava aparecendo mesmo que a opção não estivesse totalmente operacional)
Showing
5 changed files
with
13 additions
and
4 deletions
Show diff stats
aplicmap/geral.htm
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | |
| 8 | 8 | <!-- Leitura dos programas javaScript e estilos individualmente. Pode-se ler os |
| 9 | 9 | arquivos não compactados, bastando substituir por i3geonaocompacto --> |
| 10 | -<script type="text/javascript" src="../classesjs/i3geo.js"></script> | |
| 10 | +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | |
| 11 | 11 | |
| 12 | 12 | <!-- |
| 13 | 13 | <style> |
| ... | ... | @@ -89,7 +89,7 @@ arquivos não compactados, bastando substituir por i3geonaocompacto --> |
| 89 | 89 | <!-- A opção de localização 'onde estou?' baseia-se na identificação do IP do usuário. Para |
| 90 | 90 | que esta opção funcione corretamente, deve estar instalado no I3Geo o pacote geoIP. Veja no |
| 91 | 91 | SVN do portal do software público o diretório arquivos_versões/pacotes para maiores informações --> |
| 92 | - <td class=tdbranca ><div id=ondeestou ><img title="Onde estou?" src='../imagens/world_map_saint_.png'/></div></td> | |
| 92 | + <td class=tdbranca ><div id=ondeestou ></div></td> | |
| 93 | 93 | </tr></table> |
| 94 | 94 | </td> |
| 95 | 95 | </tr> | ... | ... |
classesjs/iniciamma.js
| ... | ... | @@ -706,7 +706,8 @@ function Mapa(e,m) |
| 706 | 706 | } |
| 707 | 707 | autoRedesenho("ativa"); |
| 708 | 708 | if ($i("escalanum")){$i("escalanum").value = objmapa.scale;} |
| 709 | - if (objmapa.geoip == "nao"){$i(id).style.display="none";} | |
| 709 | + if ((objmapa.geoip == "nao") && ($i("ondeestou"))) | |
| 710 | + {$i("ondeestou").style.display="none";} | |
| 710 | 711 | } |
| 711 | 712 | else |
| 712 | 713 | {alert("Erro. Impossivel criar o mapa "+retorno.data);return;} | ... | ... |
classesphp/mapa_inicia.php
| ... | ... | @@ -191,7 +191,7 @@ function iniciaMapa() |
| 191 | 191 | //verifica se o pacote geoip está instalado ou não |
| 192 | 192 | // |
| 193 | 193 | $geoip = "nao"; |
| 194 | - if (file_exists($locaplic."/pacotes/geoip")) | |
| 194 | + if (file_exists($locaplic."/pacotes/geoip") && file_exists($locaplic."/pacotes/geoip/GeoLiteCity.dat")) | |
| 195 | 195 | {$geoip = "sim";} |
| 196 | 196 | $res .= ";objmapa.geoip='".$geoip."';"; |
| 197 | 197 | $res .= "var tempo =".(microtime(1) - $tempo).";"; | ... | ... |
css/botoes.css
| ... | ... | @@ -156,5 +156,13 @@ |
| 156 | 156 | background-repeat: no-repeat; |
| 157 | 157 | background-position: 0px -450px; |
| 158 | 158 | } |
| 159 | +#ondeestou | |
| 160 | +{ | |
| 161 | + background-image:URL('../imagens/sprite.png'); | |
| 162 | + background-repeat: no-repeat; | |
| 163 | + background-position: 0px -475px; | |
| 164 | + width:20px; | |
| 165 | + height:10px; | |
| 166 | +} | |
| 159 | 167 | #encolheFerramentas |
| 160 | 168 | {background-image:URL('../imagens/encolhe.png');background-repeat: no-repeat;background-position:center;cursor:pointer;} |
| 161 | 169 | \ No newline at end of file | ... | ... |
imagens/sprite.png