Commit 188370296f8fa7ae5c110d298e7611adfa02a454
1 parent
da7578b6
Exists in
master
and in
7 other branches
--no commit message
Showing
6 changed files
with
307 additions
and
14 deletions
Show diff stats
admin/php/estatisticas.php
| @@ -49,7 +49,7 @@ include_once("admin.php"); | @@ -49,7 +49,7 @@ include_once("admin.php"); | ||
| 49 | $totaltemas = count(pegaDados("select * from i3geoadmin_temas")); | 49 | $totaltemas = count(pegaDados("select * from i3geoadmin_temas")); |
| 50 | $temasvalidos = pegaDados("select codigo_tema,nome_tema,download_tema,kml_tema,ogc_tema,link_tema,tags_tema from i3geoadmin_temas where codigo_tema <> ''"); | 50 | $temasvalidos = pegaDados("select codigo_tema,nome_tema,download_tema,kml_tema,ogc_tema,link_tema,tags_tema from i3geoadmin_temas where codigo_tema <> ''"); |
| 51 | $temasassocsubgrupos = pegaDados("select id_tema from i3geoadmin_n3 group by id_tema"); | 51 | $temasassocsubgrupos = pegaDados("select id_tema from i3geoadmin_n3 group by id_tema"); |
| 52 | -$nacessostema = pegaDados("select b.nome_tema,sum(a.nacessos) as soma,a.codigo_tema from i3geoadmin_acessostema as a,i3geoadmin_temas as b where a.codigo_tema = b.codigo_tema and a.nacessos > 0 group by a.codigo_tema"); | 52 | +$nacessostema = pegaDados("select b.nome_tema,sum(a.nacessos) as soma,a.codigo_tema from i3geoadmin_acessostema as a,i3geoadmin_temas as b where a.codigo_tema = b.codigo_tema and a.nacessos > 0 group by a.codigo_tema,b.nome_tema"); |
| 53 | $ntags = pegaDados("select nome from i3geoadmin_tags"); | 53 | $ntags = pegaDados("select nome from i3geoadmin_tags"); |
| 54 | $totaltemasvalidos = count($temasvalidos); | 54 | $totaltemasvalidos = count($temasvalidos); |
| 55 | $codigostemas = array(); | 55 | $codigostemas = array(); |
| @@ -61,8 +61,8 @@ $nogctemas = 0; | @@ -61,8 +61,8 @@ $nogctemas = 0; | ||
| 61 | $nsemlinktemas = 0; | 61 | $nsemlinktemas = 0; |
| 62 | $nsemtagstemas = 0; | 62 | $nsemtagstemas = 0; |
| 63 | $nacessosmaiorqueum = count(pegaDados("select sum(nacessos) as soma from i3geoadmin_acessostema where nacessos > 0 group by codigo_tema")); | 63 | $nacessosmaiorqueum = count(pegaDados("select sum(nacessos) as soma from i3geoadmin_acessostema where nacessos > 0 group by codigo_tema")); |
| 64 | -$nacessosmaiorquedez = count(pegaDados("select (select sum(nacessos) as soma from i3geoadmin_acessostema where nacessos > 0 group by codigo_tema) as soma where soma > 10")); | ||
| 65 | -$nacessosmaiorquecem = count(pegaDados("select (select sum(nacessos) as soma from i3geoadmin_acessostema where nacessos > 0 group by codigo_tema) as soma where soma > 100")); | 64 | +$nacessosmaiorquedez = count(pegaDados("select soma from (select sum(nacessos) as soma from i3geoadmin_acessostema where nacessos > 0 group by codigo_tema) as soma where soma > 10")); |
| 65 | +$nacessosmaiorquecem = count(pegaDados("select soma from (select sum(nacessos) as soma from i3geoadmin_acessostema where nacessos > 0 group by codigo_tema) as soma where soma > 100")); | ||
| 66 | $temasacessos = array(); | 66 | $temasacessos = array(); |
| 67 | error_reporting(0); | 67 | error_reporting(0); |
| 68 | foreach($temasvalidos as $tema){ | 68 | foreach($temasvalidos as $tema){ |
documentacao/manual_de_usuario_do_i3geo.odt
No preview for this file type
ferramentas/buscarapida/index.htm
| @@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
| 5 | <title></title> | 5 | <title></title> |
| 6 | </head> | 6 | </head> |
| 7 | <body name="ancora" class="yui-skin-sam;" style="overflow:auto;"> | 7 | <body name="ancora" class="yui-skin-sam;" style="overflow:auto;"> |
| 8 | -<div style="top:5px;left:1px;display:block;width:90%;" id="resultadoTemas" >Aguarde...</div> | ||
| 9 | -<div style="top:5px;left:1px;display:block;width:90%;" id="resultado" >Aguarde...</div> | 8 | +<div style="top:5px;left:1px;display:block;width:90%;" id="resultadoTemas" >Buscando no mapa...</div> |
| 9 | +<div style="top:5px;left:1px;display:block;width:90%;" id="resultado" >Buscando fora...</div> | ||
| 10 | 10 | ||
| 11 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> | 11 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> |
| 12 | <script language="JavaScript" type="text/javascript" src="index.js"></script> | 12 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
ferramentas/buscarapida/index.js
| @@ -152,7 +152,6 @@ i3GEObuscaRapida = { | @@ -152,7 +152,6 @@ i3GEObuscaRapida = { | ||
| 152 | i3GEObuscaRapida.locaplic = locaplic; | 152 | i3GEObuscaRapida.locaplic = locaplic; |
| 153 | if(servicosexternos === true){ | 153 | if(servicosexternos === true){ |
| 154 | aguarde("block") | 154 | aguarde("block") |
| 155 | - $i("resultado").innerHTML = "Aguarde..." | ||
| 156 | i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); | 155 | i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); |
| 157 | } | 156 | } |
| 158 | if(temasmapa === true){ | 157 | if(temasmapa === true){ |
| @@ -163,11 +162,13 @@ i3GEObuscaRapida = { | @@ -163,11 +162,13 @@ i3GEObuscaRapida = { | ||
| 163 | return; | 162 | return; |
| 164 | } | 163 | } |
| 165 | aguarde("block") | 164 | aguarde("block") |
| 166 | - $i("resultadoTemas").innerHTML = "Aguarde..." | ||
| 167 | i3GEO.php.buscaRapida(i3GEObuscaRapida.montaResultadoTemas,locaplic,"temas",palavra); | 165 | i3GEO.php.buscaRapida(i3GEObuscaRapida.montaResultadoTemas,locaplic,"temas",palavra); |
| 168 | } | 166 | } |
| 169 | catch(e){} | 167 | catch(e){} |
| 170 | - } | 168 | + } |
| 169 | + else{ | ||
| 170 | + $i("resultadoTemas").innerHTML = ""; | ||
| 171 | + } | ||
| 171 | }, | 172 | }, |
| 172 | /* | 173 | /* |
| 173 | Function: montaResultadoTemas | 174 | Function: montaResultadoTemas |
| @@ -181,7 +182,7 @@ i3GEObuscaRapida = { | @@ -181,7 +182,7 @@ i3GEObuscaRapida = { | ||
| 181 | montaResultadoTemas: function(retorno){ | 182 | montaResultadoTemas: function(retorno){ |
| 182 | var ins = "Nada encontrado nos temas ou nenhum tema permite busca.<br>"; | 183 | var ins = "Nada encontrado nos temas ou nenhum tema permite busca.<br>"; |
| 183 | try{ | 184 | try{ |
| 184 | - if(retorno.data){ | 185 | + if(retorno.data && retorno.data.length > 0){ |
| 185 | ins = "<table >"; | 186 | ins = "<table >"; |
| 186 | for (i=0;i<retorno.data.length; i++){ | 187 | for (i=0;i<retorno.data.length; i++){ |
| 187 | ins += "<tr><td style='text-align:left'>" | 188 | ins += "<tr><td style='text-align:left'>" |
| @@ -254,9 +255,9 @@ i3GEObuscaRapida = { | @@ -254,9 +255,9 @@ i3GEObuscaRapida = { | ||
| 254 | retorno {Json} - resultado de | 255 | retorno {Json} - resultado de |
| 255 | */ | 256 | */ |
| 256 | resultadoTemas: function(retorno){ | 257 | resultadoTemas: function(retorno){ |
| 257 | - var retorno = retorno.data; | ||
| 258 | - if ((retorno != "erro") && (retorno != undefined)){ | ||
| 259 | - var ins = ""; | 258 | + var retorno = retorno.data, |
| 259 | + ins = ""; | ||
| 260 | + if ((retorno != "erro") && (retorno != undefined) && retorno.length > 0){ | ||
| 260 | for (ig=0;ig<retorno.length;ig++){ | 261 | for (ig=0;ig<retorno.length;ig++){ |
| 261 | var ngSgrupo = retorno[ig].subgrupos; | 262 | var ngSgrupo = retorno[ig].subgrupos; |
| 262 | for (sg=0;sg<ngSgrupo.length;sg++){ | 263 | for (sg=0;sg<ngSgrupo.length;sg++){ |
| @@ -272,8 +273,8 @@ i3GEObuscaRapida = { | @@ -272,8 +273,8 @@ i3GEObuscaRapida = { | ||
| 272 | } | 273 | } |
| 273 | } | 274 | } |
| 274 | } | 275 | } |
| 275 | - if (ins != ""){ $i(i3GEObuscaRapida.idresultado).innerHTML += "<br><b>Temas:</b><br>"+ins} | ||
| 276 | } | 276 | } |
| 277 | + if (ins != ""){ $i(i3GEObuscaRapida.idresultado).innerHTML += "<br><b>Temas:</b><br>"+ins} | ||
| 277 | }, | 278 | }, |
| 278 | /* | 279 | /* |
| 279 | Function: zoom | 280 | Function: zoom |
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/i3geonaocompacto.js"></script> | 103 | +<script src="../classesjs/i3geo.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> |
| @@ -0,0 +1,292 @@ | @@ -0,0 +1,292 @@ | ||
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
| 2 | +<html> | ||
| 3 | +<head> | ||
| 4 | +<meta http-equiv="Category" content="i3Geo Mapa interativo MMA geoprocessamento sig mobile"> | ||
| 5 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | ||
| 6 | +<title>i3GEO - OpenLayers</title> | ||
| 7 | + | ||
| 8 | +</head> | ||
| 9 | +<body id="i3geo" style="background-color:white"> | ||
| 10 | +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | ||
| 11 | + <tr style="border:0px"> | ||
| 12 | + <td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | ||
| 13 | + </tr> | ||
| 14 | + <tr> | ||
| 15 | + <td id="contemMenu" style="text-align:right;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | ||
| 16 | + <!--menu suspenso--> | ||
| 17 | + <div id="menus" ></div> | ||
| 18 | + </td> | ||
| 19 | + </tr> | ||
| 20 | + <tr> | ||
| 21 | + <td style="vertical-align:top;border-width:0px;"> | ||
| 22 | + <table width="100%" style="vertical-align:top;border-width:0px"> | ||
| 23 | + <tr> | ||
| 24 | + <td class=verdeclaro id=contemImg > | ||
| 25 | + <div id=corpoMapa style="position:relative;background-image:url('../imagens/i3geo1bw.jpg');"></div> | ||
| 26 | + </td> | ||
| 27 | + </tr> | ||
| 28 | + </table> | ||
| 29 | + </td> | ||
| 30 | + </tr> | ||
| 31 | + <tr> | ||
| 32 | + <td> | ||
| 33 | + <table width=100% > | ||
| 34 | + <tr> | ||
| 35 | + <td class=tdbranca > | ||
| 36 | + <!-- | ||
| 37 | + Nesse div são incluídos os ícones que permitem ao usuário modificar o visual de cores dos ícones | ||
| 38 | + <div id=visual ></div> | ||
| 39 | + --> | ||
| 40 | + <!-- botão de compartilhamento em redes sociais --> | ||
| 41 | + <div id=i3GEOcompartilhar style="text-align:left;border-top:1px solid rgb(250,250,250);padding-top:1px" ></div> | ||
| 42 | + <!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo --> | ||
| 43 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | ||
| 44 | + </td> | ||
| 45 | + <td class=tdbranca > | ||
| 46 | + <!-- aqui será incluída a escala numérica --> | ||
| 47 | + <div id=escala style="text-align:right;" ></div> | ||
| 48 | + </td> | ||
| 49 | + <td class=tdbranca > | ||
| 50 | + <!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse --> | ||
| 51 | + <div id=localizarxy style="text-align:left;font-size:10px;display:inline-table"></div> | ||
| 52 | + </td> | ||
| 53 | + <!-- aqui serão incluídas as bandeiras que permitem a troca de idioma --> | ||
| 54 | + <td class=tdbranca > | ||
| 55 | + <div id=seletorIdiomas ></div> | ||
| 56 | + </td> | ||
| 57 | + </tr> | ||
| 58 | + </table> | ||
| 59 | + </td> | ||
| 60 | + </tr> | ||
| 61 | + <tr style="border:0px"> | ||
| 62 | + <td id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td> | ||
| 63 | + </tr> | ||
| 64 | +</table> | ||
| 65 | +<center> | ||
| 66 | +<table id="i3GEOlogoMarca" style='box-shadow:0 1px 13px gray;border-radius:5px;'> | ||
| 67 | + <tr> | ||
| 68 | + <td><center><h1 style="font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;"><div id=versaoi3geo ></div><h2 style="font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;">i3Geo - Software livre para criação de mapas interativos e geoprocessamento<h3 style="font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;">Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro</h3></h2></h1></td> | ||
| 69 | + </tr> | ||
| 70 | + <tr> | ||
| 71 | + <td style="padding:10px;"><center><img alt="" src='../imagens/logo_inicio.png' ></td> | ||
| 72 | + </tr> | ||
| 73 | + <tr> | ||
| 74 | + <td><center> | ||
| 75 | + <!-- | ||
| 76 | + <script id="ohloh" type="text/javascript" src="http://www.ohloh.net/p/150688/widgets/project_users.js?style=red"></script> | ||
| 77 | + --> | ||
| 78 | + </td> | ||
| 79 | + </tr> | ||
| 80 | +</table> | ||
| 81 | + | ||
| 82 | +<div id="i3GEOguiaMovel" style="position:absolute;display:block;border:0px solid white;text-align:left;z-index:2000;background-color:none"> | ||
| 83 | + <img id="i3GEOguiaMovelPuxador" onclick='i3GEO.guias.guiaMovel.abreFecha()' style='z-index:2;border:solid 0px white;left:0px;position:absolute;top:0px' width='0px' src='../imagens/openbars.png' > | ||
| 84 | + <div id="i3GEOguiaMovelMolde" style="box-shadow:-2px 0 2px gray;border-radius:5px 0px 0px 5px;position:absolute;display:none;border:0px solid white;text-align:left;z-index:1000;background-color:gray"> | ||
| 85 | + <div id="i3GEOguiaMovelIcones" style='overflow:none;left:0px;display:none;position:absolute;top:0px;text-align:center;height:0px;width:0px;border:solid 0px white;background-color:white' ></div> | ||
| 86 | + <div id="i3GEOguiaMovelConteudo" style='overflow:auto;display:none;position:absolute;border-color:gray;border-width:0px 0 0px 0px;left:0px;height:0px;background-color:white'> | ||
| 87 | + <div id='guia1obj' style='display:none;' > | ||
| 88 | + <!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico --> | ||
| 89 | + <div style='left:5px;top:10px;' id=buscaRapida ></div> | ||
| 90 | + <!-- Esta div acrescenta a lista de propriedades do mapa --> | ||
| 91 | + <div id=listaPropriedades style='top:15px;' ></div> | ||
| 92 | + <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' específicas da interface Openlayers. Veja também a opção i3GEO.Interface.openlayers.GADGETS.LayerSwitcher --> | ||
| 93 | + <div id=listaLayersBase style='top:15px;'></div> | ||
| 94 | + <!-- Esta div acrescenta a lista de de camadas disponíveis no mapa atual --> | ||
| 95 | + <div id=listaTemas style='top:15px;'></div> | ||
| 96 | + </div> | ||
| 97 | + <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | ||
| 98 | + <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | ||
| 99 | + <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | ||
| 100 | + </div> | ||
| 101 | + </div> | ||
| 102 | +</div> | ||
| 103 | +<script src="../classesjs/i3geonaocompacto.js"></script> | ||
| 104 | +<script src="../pacotes/openlayers/OpenLayers211.js.php"></script> | ||
| 105 | +<!-- estilo necessário para a ferramenta de edição --> | ||
| 106 | +<style> | ||
| 107 | +.olControlEditingToolbar1 div { | ||
| 108 | + background-image:url(../mashups/openlayers.png); | ||
| 109 | + background-repeat:no-repeat; | ||
| 110 | + float:right; | ||
| 111 | + right: 0px; | ||
| 112 | + height:29px; | ||
| 113 | + margin:2px; | ||
| 114 | + width:29px; | ||
| 115 | + cursor:pointer; | ||
| 116 | +} | ||
| 117 | +</style> | ||
| 118 | +<script> | ||
| 119 | +/* | ||
| 120 | +Title: Interface Openlayers | ||
| 121 | + | ||
| 122 | +Abre o i3geo com todas as suas funcionalidades e interface de navegação controlada pela API Openlayers. | ||
| 123 | + | ||
| 124 | +File: i3geo/interface/openlayers.htm | ||
| 125 | + | ||
| 126 | +Exemplo: | ||
| 127 | + | ||
| 128 | +http://<host>/i3geo/ms_criamapa.php | ||
| 129 | + | ||
| 130 | +http://<host>/i3geo/interface/openlayers.htm | ||
| 131 | + | ||
| 132 | +http://<host>/i3geo | ||
| 133 | + | ||
| 134 | +Para definir quais botões das barras de ferramentas serão incluídos no mapa, veja: <classe_barradebotoes.js> i3GEO.barraDeBotoes.INCLUIBOTAO | ||
| 135 | + | ||
| 136 | +*/ | ||
| 137 | +/* | ||
| 138 | + Indica a localização correta do i3geo. | ||
| 139 | + | ||
| 140 | + É utilizada para identificar o local correto onde estão os programas em php que são utilizados. | ||
| 141 | + | ||
| 142 | + Se não for definida, o i3Geo tentará encontrar o local automaticamente com base na tag javascript | ||
| 143 | +*/ | ||
| 144 | +//i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | ||
| 145 | +/* | ||
| 146 | +Para outras configurações, veja i3geo/classesjs/classe_configura.js | ||
| 147 | + | ||
| 148 | +exemplo | ||
| 149 | + | ||
| 150 | +i3GEO.configura.autotamanho = true; | ||
| 151 | +*/ | ||
| 152 | +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | ||
| 153 | +i3GEO.configura.autotamanho = false; | ||
| 154 | +i3GEO.Interface.ATUAL = "openlayers"; | ||
| 155 | +i3GEO.Interface.IDCORPO = "contemImg"; | ||
| 156 | + | ||
| 157 | +i3GEO.Interface.openlayers.GADGETS = { | ||
| 158 | + PanZoomBar:true, | ||
| 159 | + PanZoom:false, | ||
| 160 | + LayerSwitcher:true, | ||
| 161 | + ScaleLine:true, | ||
| 162 | + OverviewMap:false | ||
| 163 | + }; | ||
| 164 | +i3GEO.Interface.openlayers.TILES = true; | ||
| 165 | +// | ||
| 166 | +//controla o tamanho da barra de zoom | ||
| 167 | +// | ||
| 168 | +//i3GEO.Interface.openlayers.MINEXTENT = [-0.001, -0.001, 0.001, 0.001] | ||
| 169 | +// | ||
| 170 | +// | ||
| 171 | +//desabilita o item que abre a interface "default" do menu suspenso | ||
| 172 | +// | ||
| 173 | +i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}' | ||
| 174 | + | ||
| 175 | +/* | ||
| 176 | +Após a criação, é criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers. | ||
| 177 | +Vc pode usar i3geoOL para aplicar os métodos e verificar as propriedades da API do OpenLayers | ||
| 178 | +*/ | ||
| 179 | + | ||
| 180 | +i3GEO.cria(); | ||
| 181 | +/* | ||
| 182 | + Inicializa o mapa | ||
| 183 | +*/ | ||
| 184 | +//não mostra o mapa de referência | ||
| 185 | +i3GEO.configura.mapaRefDisplay = "none"; | ||
| 186 | +//tipo de barra de botões | ||
| 187 | +i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; | ||
| 188 | +//ajusta o deslocamento da barra de botões | ||
| 189 | +i3GEO.barraDeBotoes.OFFSET = -3; | ||
| 190 | +//ajusta a posição da barra de botões no IE | ||
| 191 | +//if(navm) | ||
| 192 | +//{i3GEO.barraDeBotoes.OFFSET = -45;} | ||
| 193 | +//número máximo de botões na barra de botões inicial | ||
| 194 | +//i3GEO.barraDeBotoes.MAXBOTOES = 10; | ||
| 195 | +//remove itens dos menus que não são necessários, já que estão como ícones na barra de botões | ||
| 196 | +i3GEO.configura.oMenuData["submenus"]["janelas"] = []; | ||
| 197 | +// | ||
| 198 | +//barra de botoes normal. descomente para usar | ||
| 199 | +/* | ||
| 200 | +i3GEO.barraDeBotoes.TIPO = "yui"; | ||
| 201 | +i3GEO.barraDeBotoes.AUTOALTURA = true; | ||
| 202 | +i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false; | ||
| 203 | +i3GEO.barraDeBotoes.PERMITEFECHAR = false; | ||
| 204 | +i3GEO.barraDeBotoes.PERMITEDESLOCAR = false; | ||
| 205 | +i3GEO.barraDeBotoes.AUTO = true; | ||
| 206 | +i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja"; | ||
| 207 | + | ||
| 208 | +i3GEO.Interface.BARRABOTOESLEFT = 0; | ||
| 209 | +i3GEO.Interface.BARRABOTOESTOP = 2; | ||
| 210 | +i3GEO.Interface.BARRADEZOOMTOP = 10; | ||
| 211 | +i3GEO.Interface.BARRADEZOOMLEFT = 40; | ||
| 212 | +*/ | ||
| 213 | +i3GEO.ajuda.ATIVAJANELA = false; | ||
| 214 | +i3GEO.idioma.IDSELETOR = "seletorIdiomas"; | ||
| 215 | +i3GEO.Interface.ATIVAMENUCONTEXTO = false; | ||
| 216 | +i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | ||
| 217 | +i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; | ||
| 218 | +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true; | ||
| 219 | +i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true; | ||
| 220 | +i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false; | ||
| 221 | +i3GEO.mapa.AUTORESIZE = true; | ||
| 222 | +i3GEO.guias.TIPO = "movel"; | ||
| 223 | +//i3GEO.guias.guiaMovel.ABERTA = true; | ||
| 224 | +//posição da guia movel em relação ao topo do mapa. Se for igual a 0, o cálculo será feito de forma automática | ||
| 225 | +i3GEO.guias.guiaMovel.config.topGuiaMovel = 0; | ||
| 226 | +// | ||
| 227 | +//define quanto tempo é aguardado para considerar que o mouse está parado sobre um lugar. | ||
| 228 | +//utilizado pela função de identificação do tipo balão | ||
| 229 | +// | ||
| 230 | +//i3GEO.configura.tempoMouseParado = 1000 | ||
| 231 | +// | ||
| 232 | +//esta é uma variável interna do OpenLayers que define o endereço do diretório onde estão as imagens usadas nos ícones | ||
| 233 | +// | ||
| 234 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 235 | +// | ||
| 236 | +//adiciona camadas que podem ser ativadas como fundo do mapa | ||
| 237 | +// | ||
| 238 | +(function(){ | ||
| 239 | + var oce = new OpenLayers.Layer.ArcGIS93Rest( | ||
| 240 | + "ESRI Ocean Basemap", | ||
| 241 | + "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", | ||
| 242 | + {format:"jpeg"}, | ||
| 243 | + {isBaseLayer:true,visibility:false} | ||
| 244 | + ); | ||
| 245 | + var ims = new OpenLayers.Layer.ArcGIS93Rest( | ||
| 246 | + "ESRI Imagery World 2D", | ||
| 247 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", | ||
| 248 | + {format:"jpeg"}, | ||
| 249 | + {isBaseLayer:true,visibility:false} | ||
| 250 | + ); | ||
| 251 | + var wsm = new OpenLayers.Layer.ArcGIS93Rest( | ||
| 252 | + "ESRI World Street Map", | ||
| 253 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", | ||
| 254 | + {format:"jpeg"}, | ||
| 255 | + {isBaseLayer:true,visibility:false} | ||
| 256 | + ); | ||
| 257 | + var bra = new OpenLayers.Layer.WMS( | ||
| 258 | + "Base carto MMA", | ||
| 259 | + "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", | ||
| 260 | + {layers:"baseraster",srs:"EPSG:4291",format:"image/png",isBaseLayer:false}, | ||
| 261 | + {isBaseLayer:true,visibility:false} | ||
| 262 | + ); | ||
| 263 | + /* | ||
| 264 | + var osm = new OpenLayers.Layer.WMS( | ||
| 265 | + "Open Street Map", | ||
| 266 | + "http://full.wms.geofabrik.de/std/demo_key", | ||
| 267 | + {layers:""}, | ||
| 268 | + {isBaseLayer:true,visibility:false} | ||
| 269 | + ); | ||
| 270 | + */ | ||
| 271 | + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [oce,ims,wsm,bra]; | ||
| 272 | +})(); | ||
| 273 | +// | ||
| 274 | +//substitui a janela de alerta normal do navegador por uma janela estilizada. Pode ser comentado sem problemas. No Safari apresentou problemas. | ||
| 275 | +// | ||
| 276 | +//i3GEO.janela.ativaAlerta(); | ||
| 277 | +// | ||
| 278 | +//inicia o mapa | ||
| 279 | +// | ||
| 280 | +//esconde a logomarca ao finalizar o mapa | ||
| 281 | +i3GEO.finaliza = function(){ | ||
| 282 | + if($i("i3GEOlogoMarca")) | ||
| 283 | + {$i("i3GEOlogoMarca").style.display = "none";} | ||
| 284 | + i3GEO.mapa.insereDobraPagina("googlemaps","../imagens/dobragooglemaps.png"); | ||
| 285 | +} | ||
| 286 | +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; | ||
| 287 | +//OpenLayers.DOTS_PER_INCH = 96 | ||
| 288 | +//i3GEO.configura.sid = ""; | ||
| 289 | +i3GEO.inicia(); | ||
| 290 | +</script> | ||
| 291 | +</body> | ||
| 292 | +</html> |