Commit 5aed408a8d2e01b7185e90c5c05721aa50be5cfa

Authored by Edmar Moretti
1 parent 07f03912

Correção na interface Atlas

admin/admin.db
No preview for this file type
admin/php/atlas.php
... ... @@ -23,7 +23,7 @@ Este programa é distribuído na expectativa de que seja útil
23 23 porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
24 24 de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
25 25 Consulte a Licença Pública Geral do GNU para mais detalhes.
26   -Você deve ter recebido uma cópia da Licença Pública Geral do
  26 +Você deve ter recebido uma copia da Licença Pública Geral do
27 27 GNU junto com este programa; se não, escreva para a
28 28 Free Software Foundation, Inc., no endereço
29 29 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
... ... @@ -36,7 +36,7 @@ Parametros:
36 36  
37 37 O parâmetro principal é "funcao", que define qual operação será executada, por exemplo, atlas.php?funcao=pegaAtlas
38 38  
39   -Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação.
  39 +Cada operação possuí seus proprios parâmetros, que devem ser enviados também na requisição da operação.
40 40  
41 41 */
42 42 include_once(dirname(__FILE__)."/login.php");
... ... @@ -329,15 +329,15 @@ switch (strtoupper($funcao))
329 329 /*
330 330 Valor: MOVIMENTANO
331 331  
332   - Muda a ordem de um nó
  332 + Muda a ordem de um n�
333 333  
334 334 Parametros:
335 335  
336   - tipo - tipo de nó tema|prancha|atlas
  336 + tipo - tipo de n� tema|prancha|atlas
337 337  
338 338 movimento - sobe|desce
339 339  
340   - id- id do nó
  340 + id- id do n�
341 341  
342 342 Retorno:
343 343  
... ...
admin/php/xml.php
... ... @@ -24,7 +24,7 @@ Este programa é distribuído na expectativa de que seja útil
24 24 porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
25 25 de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
26 26 Consulte a Licença Pública Geral do GNU para mais detalhes.
27   -Você deve ter recebido uma cpia da Licença Pública Geral do
  27 +Você deve ter recebido uma copia da Licença Pública Geral do
28 28 GNU junto com este programa; se não, escreva para a
29 29 Free Software Foundation, Inc., no endereço
30 30 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
... ... @@ -37,12 +37,14 @@ i3geo/admin/php/xml.php
37 37 //processa a variável $esquemaadmin definida em ms_configura.php
38 38 //essa variável precisa ter um . no final quando não for vazia, evitando erros na inclusão dentro dos SQLs
39 39 //
  40 +
40 41 if (!isset($esquemaadmin)){
41 42 include_once(dirname(__FILE__)."/../../ms_configura.php");
42 43 }
43 44 if(!empty($esquemaadmin)){
44 45 $esquemaadmin = str_replace(".","",$esquemaadmin).".";
45 46 }
  47 +
46 48 /*
47 49 Function: geraXmlSistemas (depreciado)
48 50  
... ... @@ -521,6 +523,7 @@ function geraXmlAtlas($locaplic,$editores)
521 523 error_reporting(0);
522 524 $dbh = "";
523 525 include($locaplic."/admin/php/conexao.php");
  526 +
524 527 if($convUTF)
525 528 $xml = "<"."\x3F"."xml version='1.0' encoding='UTF-8' "."\x3F".">";
526 529 else
... ...
classesjs/atlas.js
... ... @@ -55,8 +55,8 @@ function iniciaAtlas(combow,atlasId)
55 55 var localTitulo, monta;
56 56 if(!combow)
57 57 {combow = 0;}
58   - document.body.style.width = "100%";
59   - document.body.style.height = parseInt(document.body.style.height)+20 + "px";
  58 + //document.body.style.width = "100%";
  59 + //document.body.style.height = parseInt(document.body.style.height)+20 + "px";
60 60 cpObjAtlas = new cpaint();
61 61 cpObjAtlas.set_async("true");
62 62 cpObjAtlas.set_response_type("JSON");
... ... @@ -135,8 +135,9 @@ function iniciaAtlas(combow,atlasId)
135 135 {icone = retorno.data.icone;}
136 136 localTitulo.innerHTML = retorno.data.titulo;
137 137 }
138   - if (retorno.data.link != "")
139   - {wdocaf(retorno.data.w+"px",retorno.data.h+"px",retorno.data.link,"center","","Info");}
  138 + if (retorno.data.link != ""){
  139 + i3GEO.janela.cria(retorno.data.w+"px",retorno.data.h+"px",retorno.data.link,"center","","Info");
  140 + }
140 141 if(retorno.data.pranchadefault != "")
141 142 {abrePrancha(retorno.data.pranchadefault);}
142 143 i3GEO.mapa.ajustaPosicao();
... ... @@ -239,7 +240,7 @@ function abrePrancha(id)
239 240 i3GEO.janela.fechaAguarde("Atlas");
240 241 if(retorno.data.link != "")
241 242 {
242   - wdocaf(retorno.data.w+"px",retorno.data.h+"px",retorno.data.link,"center","","Info");
  243 + i3GEO.janela.cria(retorno.data.w+"px",retorno.data.h+"px",retorno.data.link,"center","","Info");
243 244 }
244 245 try{
245 246 if(i3GEO.Interface.ATUAL == "googlemaps")
... ...
classesphp/atlas_controle.php
... ... @@ -29,7 +29,7 @@ Este programa &amp;eacute; distribu&amp;iacute;do na expectativa de que seja &amp;uacute;til
29 29 por&eacute;m, SEM NENHUMA GARANTIA; nem mesmo a garantia impl&iacute;cita
30 30 de COMERCIABILIDADE OU ADEQUA&Ccedil;&Atilde;O A UMA FINALIDADE ESPEC&Iacute;FICA.
31 31 Consulte a Licen&ccedil;a P&uacute;blica Geral do GNU para mais detalhes.
32   -Voc&ecirc; deve ter recebido uma cópia da Licen&ccedil;a P&uacute;blica Geral do
  32 +Voc&ecirc; deve ter recebido uma copia da Licen&ccedil;a P&uacute;blica Geral do
33 33 GNU junto com este programa; se n&atilde;o, escreva para a
34 34 Free Software Foundation, Inc., no endere&ccedil;o
35 35 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
... ... @@ -50,16 +50,16 @@ cp - o resultado da opera&amp;ccedil;&amp;atilde;o ser&amp;aacute; retornado em um objeto CP
50 50  
51 51 Vari&aacute;veis de Se&ccedil;&atilde;o:
52 52  
53   -dir_tmp - diretório, no servidor, tempor&aacute;rio utilizado pelo I3Geo, exemplo: c:/ms4w/tmp/ms_tmp
  53 +dir_tmp - diretorio, no servidor, tempor&aacute;rio utilizado pelo I3Geo, exemplo: c:/ms4w/tmp/ms_tmp
54 54 locmapserv - localiza&ccedil;&atilde;o, no servidor, do CGI, exemplo: /cgi-bin/mapserv.exe
55 55 locaplic - localiza&ccedil;&atilde;o, no servidor, do I3Geo, exemplo: c:/ms4w/apache/htdocs/i3geo
56 56 R_path - localiza&ccedil;&atilde;o, no servidor, do execut&aacute;vel do pacote R, exemplo: c:/ms4w/apache/htdocs/i3geo/pacotes/r/win/bin/R.exe
57 57 imgurl - url das imagens geradas pelo mapa, exemplo: http://localhost/ms_tmp/imgTVHbdijFMk/
58   -tmpurl - url do diretório tempor&aacute;rio, exemplo: http://localhost/ms_tmp/
  58 +tmpurl - url do diretorio tempor&aacute;rio, exemplo: http://localhost/ms_tmp/
59 59 map_file - endere&ccedil;o, no servidor, do mapfile atual, exemplo: c:/ms4w/tmp/ms_tmp/TVHbdijFMk/TVHbdijFMk.map
60 60 mapext - extens&atilde;o geogr&aacute;fica do mapa atual, exemplo: -76.5125927 -39.3925675209 -29.5851853 9.49014852081
61 61 perfil - nome do perfil para controlar os temas que ser&atilde;o vis&iacute;veis na lista de temas.
62   -mapdir - localiza&ccedil;&atilde;o, no servidor, do diretório com o mapfile tempor&aacute;rio do mapa atual.
  62 +mapdir - localiza&ccedil;&atilde;o, no servidor, do diretorio com o mapfile tempor&aacute;rio do mapa atual.
63 63 imgdir - localiza&ccedil;&atilde;o, no servidor, das imagens tempor&aacute;rias do mapa atual.
64 64 debug - (pode ser definido como "sim" indica se o erro_reporting deve ser definido como E_ALL
65 65 */
... ... @@ -78,15 +78,18 @@ if(isset($g_sid))
78 78 session_id($g_sid);
79 79 session_start();
80 80 //guarda na section se o id tiver sido enviado epla URL
81   - if(isset($atlasId))
82   - {$_SESSION["atlasId"] = $atlasId;}
  81 + if(isset($atlasId)){
  82 + $_SESSION["atlasId"] = $atlasId;
  83 + }
83 84 //
84   - foreach(array_keys($_SESSION) as $k)
85   - {eval("\$".$k."='".$_SESSION[$k]."';");}
  85 + foreach(array_keys($_SESSION) as $k){
  86 + eval("\$".$k."='".$_SESSION[$k]."';");
  87 + }
86 88 $postgis_mapa = $_SESSION["postgis_mapa"];
87 89 }
88   -if (($funcao == "pegaListaDeAtlas") || ($funcao == "criaAtlas"))
89   -{$map_file = "";}
  90 +if (($funcao == "pegaListaDeAtlas") || ($funcao == "criaAtlas")){
  91 + $map_file = "";
  92 +}
90 93 //
91 94 //ativa o php mapscript e as extens&otilde;es necess&aacute;rias
92 95 //se as extens&otilde;es j&aacute; estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais r&aacute;pido
... ... @@ -96,15 +99,13 @@ include_once(&quot;funcoes_gerais.php&quot;);
96 99 //
97 100 //verifica se o usu&aacute;rio est&aacute; tentando utilizar um link que n&atilde;o funciona mais
98 101 //
99   -if (!isset($map_file))
100   -{
  102 +if (!isset($map_file)){
101 103 cpjson(array("erro"=>"linkquebrado"));
102 104 exit;
103 105 }
104 106 include_once("classe_vermultilayer.php");
105 107  
106   -if ($map_file != "")
107   -{
  108 +if ($map_file != ""){
108 109 //
109 110 //copia o map_file atual com outro nome para restaurar caso ocorra algum problema
110 111 //
... ... @@ -114,12 +115,16 @@ if ($map_file != &quot;&quot;)
114 115 //
115 116 substituiCon($map_file,$postgis_mapa);
116 117 }
117   -if(!isset($locaplic))
118   -{
119   - include(dirname(__FILE__)."/ms_configura.php");
  118 +if(!isset($locaplic)){
  119 + include(dirname(__FILE__)."/../ms_configura.php");
120 120 }
  121 +
121 122 include($locaplic."/admin/php/xml.php");
122   -$xml = simplexml_load_string(geraXmlAtlas($locaplic,$editores));
  123 +
  124 +$xml = geraXmlAtlas($locaplic,$editores);
  125 +
  126 +$xml = simplexml_load_string($xml);
  127 +
123 128 //
124 129 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
125 130 //
... ... @@ -154,8 +159,9 @@ Esse programa &amp;eacute; chamado diretamente, por exemplo, i3geo/classesphp/atlas_
154 159 $base = $res["base"];
155 160 if ($interface == "")
156 161 {
157   - echo "Erro. Nenhuma interface definida para esse Atlas";
158   - exit;
  162 + $interface = "../interface/atlasdefault.htm";
  163 + //echo "Erro. Nenhuma interface definida para esse Atlas";
  164 + //exit;
159 165 }
160 166 if (!isset($caminho))
161 167 {$caminho = "../";}
... ...
interface/atlasdefault.htm 0 → 100755
... ... @@ -0,0 +1,298 @@
  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"
  5 + content="i3Geo Mapa interativo MMA geoprocessamento sig mobile">
  6 +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
  7 +<title>i3GEO - OpenLayers</title>
  8 +</head>
  9 +<body id="i3geo" style='margin-left: 7px; background: white;'>
  10 + <!-- inclui o nome do usuario logado -->
  11 + <div id="i3GEONomeLogin"
  12 + style="position: absolute; left: 10px; top: 12px; font-size: 11px; z-index: 50000"></div>
  13 + <table id='mst' summary="" style='display: none;' width=100%
  14 + cellspacing='0'>
  15 + <tr>
  16 + <td id="contemMenu"
  17 + style="background: black; height: 30px; text-align: right; border-width: 0pt 0pt 1px; border-color: rgb(240, 240, 240)">
  18 + <!--menu suspenso-->
  19 + <div id="menus" style="height: 0px;"></div>
  20 + </td>
  21 + </tr>
  22 + <tr>
  23 + <td style="vertical-align: top; border-width: 0px;">
  24 + <table width="100%" style="vertical-align: top; border-width: 0px">
  25 + <tr>
  26 + <td class=verdeclaro id=contemImg>
  27 + <div id=corpoMapa
  28 + style="position: relative; background-image: url('../imagens/i3geo1bw.jpg');"></div>
  29 + </td>
  30 + </tr>
  31 + </table>
  32 + </td>
  33 + </tr>
  34 + <tr>
  35 + <td>
  36 + <table style="width: 100%; height: 28px">
  37 + <tr>
  38 + <td class=fundoRodape style="width: 25%">
  39 + <!-- aqui ser&aacute; inclu&iacute;da a escala num&eacute;rica -->
  40 + <div id=escala
  41 + style="margin: auto; text-align: right; left: 15px;"></div>
  42 + </td>
  43 + <td class=fundoRodape style="width: 5%"></td>
  44 + <td class=fundoRodape style="width: 40%">
  45 + <!-- aqui ser&aacute; inclu&iacute;do o gadget que mostra a coordenada geogr&aacute;fica da posi&ccedil;&atilde;o do mouse -->
  46 + <div id=localizarxy
  47 + style="margin: auto; text-align: left; font-size: 10px; display: inline-table"></div>
  48 + </td>
  49 + <td class=fundoRodape style="width: 20%">
  50 + <!-- bot&atilde;o de compartilhamento em redes sociais-->
  51 + <div id=i3GEOcompartilhar
  52 + style="width: 170px; margin: auto; text-align: left; padding-top: 1px"></div>
  53 + <!-- aqui ser&aacute; inclu&iacute;do o contador de tempo quando o temporizador de redesenho do mapa estiver ativo -->
  54 + <div id=tempoRedesenho
  55 + style="z-index: 100; position: absolute; top: 0px; color: green; background-color: black; width: 50px; display: none"></div>
  56 + </td>
  57 + <!-- aqui ser&atilde;o inclu&iacute;das as bandeiras que permitem a troca de idioma -->
  58 + <td class=fundoRodape style="width: 10%;">
  59 + <div id=seletorIdiomas style="right: 15px;"></div>
  60 + </td>
  61 + </tr>
  62 + </table>
  63 + </td>
  64 + </tr>
  65 + </table>
  66 + <table id="i3GEOlogoMarca"
  67 + style='margin: 0px auto; box-shadow: 0 1px 13px gray; border-radius: 5px;'>
  68 + <tr>
  69 + <td style="height: 30px"><div id=versaoi3geo></div>
  70 + <h2
  71 + style="font-weight: normal; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif;">i3Geo
  72 + - Software livre para cria&ccedil;&atilde;o de mapas interativos e
  73 + geoprocessamento</h2>
  74 + <h3
  75 + style="font-weight: normal; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif;">Baseado
  76 + no Mapserver, &eacute; licenciado sob GPL e integra o Portal do
  77 + Software P&uacute;blico Brasileiro</h3></td>
  78 + </tr>
  79 + <tr>
  80 + <td style="padding: 10px;"><img
  81 + style="width: 560px; height: 81px" alt=""
  82 + src='../imagens/logo_inicio.png'></td>
  83 + </tr>
  84 + <tr>
  85 + <td>
  86 + <!--
  87 + <script id="ohloh" type="text/javascript" src="http://www.ohloh.net/p/150688/widgets/project_users.js?style=red"></script>
  88 + -->
  89 + </td>
  90 + </tr>
  91 + </table>
  92 +
  93 + <div id="i3GEOguiaMovel"
  94 + style="position: absolute; display: block; border: 0px solid white; text-align: left; z-index: 2000; background-color: none">
  95 + <img id="i3GEOguiaMovelPuxador"
  96 + onclick='i3GEO.guias.guiaMovel.abreFecha()'
  97 + style='z-index: 2; border: solid 0px white; left: 0px; position: absolute; top: 0px'
  98 + width='0px' src='../imagens/openbars.png'>
  99 + <div id="i3GEOguiaMovelMolde"
  100 + 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">
  101 + <div id="i3GEOguiaMovelIcones"
  102 + 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>
  103 + <div id="i3GEOguiaMovelConteudo"
  104 + style='overflow: auto; display: none; position: absolute; border-color: gray; border-width: 0px 0 0px 0px; left: 0px; height: 0px; background-color: white'>
  105 + <div id='guia1obj' style='display: none;'>
  106 + <!-- Esta div acrescenta a op&ccedil;&atilde;o de busca r&aacute;pida, caso vc queira coloc&aacute;-la em um lugar espec&iacute;fico -->
  107 + <div style='left: 5px; top: 10px;' id=buscaRapida></div>
  108 + <!-- Esta div acrescenta a lista de propriedades do mapa -->
  109 + <div id=listaPropriedades style='top: 15px;'></div>
  110 + <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' espec&iacute;ficas da interface Openlayers. Veja tamb&eacute;m a op&ccedil;&atilde;o i3GEO.Interface.openlayers.GADGETS.LayerSwitcher -->
  111 + <div id=listaLayersBase style='top: 15px;'></div>
  112 + <!-- Esta div acrescenta a lista de de camadas dispon&iacute;veis no mapa atual -->
  113 + <div id=listaTemas style='top: 15px;'></div>
  114 + </div>
  115 + <div id='guia2obj' style='display: none;'>
  116 + Aguarde...<img alt="" src="../imagens/branco.gif" width=248 />
  117 + </div>
  118 + <div id='guia4obj' style='display: none; text-align: left'>
  119 + <div id='legenda' style='text-align: left'></div>
  120 + </div>
  121 + <div id='guia5obj' style='display: none; text-align: left'>
  122 + <div id='banners' style='overflow: auto; text-align: left'>Aguarde...</div>
  123 + </div>
  124 + </div>
  125 + </div>
  126 + </div>
  127 + <div id="guiasAtlas" style="background: none;color: white;cursor: pointer;height: 25px;left: 100px;position: absolute;text-align: left;top: 6px;width: 350px;"></div>
  128 + <div id=tituloAtlas style="background: none;color: white;cursor: pointer;height: 25px;left: 450px;position: absolute;text-align: left;top: 9px;z-index:10000;font-size:14px"></div>
  129 + <style>
  130 +.olControlEditingToolbar1 div {
  131 + background-image: url(../mashups/openlayers.png);
  132 + background-repeat: no-repeat;
  133 + float: right;
  134 + right: 0px;
  135 + height: 29px;
  136 + margin: 2px;
  137 + width: 29px;
  138 + cursor: pointer;
  139 + top: 10px;
  140 +}
  141 +</style>
  142 + <script src="../classesjs/i3geo.js"></script>
  143 + <script type="text/javascript" src="../classesjs/atlas.js"></script>
  144 + <script src="../pacotes/openlayers/OpenLayers2131.js.php"></script>
  145 + <link rel="stylesheet" type="text/css" href="../css/black.css">
  146 + <script>
  147 + i3GEO.configura.locaplic = i3GEO.util.protocolo() + "://"
  148 + + window.location.host + "/i3geo";
  149 + i3GEO.configura.autotamanho = false;
  150 + i3GEO.Interface.ATUAL = "openlayers";
  151 + i3GEO.Interface.IDCORPO = "contemImg";
  152 + i3GEO.Interface.openlayers.TILES = true;
  153 + i3GEO.configura.oMenuData.submenus["interface"] = [
  154 + {
  155 + id : "omenudataInterface0a",
  156 + text : '<span style=color:gray;text-decoration:underline; ><b>'
  157 + + $trad("d27") + '</b></span>',
  158 + url : "#"
  159 + },
  160 + {
  161 + id : "omenudataInterface2",
  162 + text : "OpenLayers",
  163 + url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/black_ol.htm?'+i3GEO.configura.sid"
  164 + },
  165 + {
  166 + id : "omenudataInterface2a",
  167 + text : "OpenLayers OSM",
  168 + url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/black_osm.htm?'+i3GEO.configura.sid"
  169 + },
  170 + {
  171 + id : "omenudataInterface4",
  172 + text : "Google Maps",
  173 + url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/black_gm.phtml?'+i3GEO.configura.sid"
  174 + },
  175 + {
  176 + id : "omenudataInterface5",
  177 + text : "Google Earth",
  178 + url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/googleearth.phtml?'+i3GEO.configura.sid"
  179 + },
  180 + {
  181 + id : "omenudataInterface0b",
  182 + text : '<span style=color:gray;text-decoration:underline; ><b>'
  183 + + $trad("u27") + '</b></span>',
  184 + url : "#"
  185 + },
  186 + {
  187 + id : "omenudataInterface6",
  188 + text : $trad("u21"),
  189 + url : "javascript:var w = window.open(i3GEO.configura.locaplic+'/geradordelinks.htm')"
  190 + },
  191 + {
  192 + id : "omenudataInterface7",
  193 + text : "Servi&ccedil;os WMS",
  194 + url : "javascript:var w = window.open(i3GEO.configura.locaplic+'/ogc.htm')"
  195 + },
  196 + {
  197 + id : "omenudataInterface9",
  198 + text : "Download de dados",
  199 + url : "javascript:var w = window.open(i3GEO.configura.locaplic+'/datadownload.htm')"
  200 + }, {
  201 + id : "omenudataInterface11",
  202 + text : $trad("p20"),
  203 + url : "javascript:i3GEO.mapa.dialogo.telaRemota()"
  204 + }];
  205 +
  206 + i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}';
  207 + i3GEO.cria();
  208 + i3GEO.configura.mapaRefDisplay = "none";
  209 + i3GEO.barraDeBotoes.TIPO = "olhodepeixe";
  210 + //ajusta o deslocamento da barra de botoes
  211 + i3GEO.barraDeBotoes.OFFSET = 11;
  212 + //ajusta a posicao da barra de botoes no IE
  213 + if (navm) {
  214 + i3GEO.barraDeBotoes.OFFSET = 5;
  215 + }
  216 + i3GEO.configura.oMenuData["submenus"]["janelas"] = [];
  217 + i3GEO.ajuda.ATIVAJANELA = false;
  218 + i3GEO.idioma.IDSELETOR = "seletorIdiomas";
  219 + i3GEO.Interface.ATIVAMENUCONTEXTO = false;
  220 + //i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
  221 + i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true;
  222 + i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true;
  223 + i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false;
  224 + i3GEO.mapa.AUTORESIZE = true;
  225 + i3GEO.guias.TIPO = "movel";
  226 + i3GEO.guias.guiaMovel.config.topGuiaMovel = 36;
  227 + i3GEO.janela.ativaAlerta();
  228 + i3GEO.finaliza = function() {
  229 + if ($i("i3GEOlogoMarca")) {
  230 + $i("i3GEOlogoMarca").style.display = "none";
  231 + }
  232 + i3GEO.mapa.insereDobraPagina("googlemaps",
  233 + "../imagens/dobragooglemaps.png");
  234 + iniciaAtlas(200);
  235 + };
  236 + i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true;
  237 + i3GEO.janela.TRANSICAOSUAVE = true;
  238 +
  239 + OpenLayers.ImgPath = "../pacotes/openlayers/img/";
  240 + (function() {
  241 + var oce = new OpenLayers.Layer.ArcGIS93Rest(
  242 + "ESRI Ocean Basemap",
  243 + "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export",
  244 + {
  245 + format : "jpeg"
  246 + }, {
  247 + isBaseLayer : true,
  248 + visibility : false
  249 + });
  250 + var ims = new OpenLayers.Layer.ArcGIS93Rest(
  251 + "ESRI Imagery World 2D",
  252 + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export",
  253 + {
  254 + format : "jpeg"
  255 + }, {
  256 + isBaseLayer : true,
  257 + visibility : false
  258 + });
  259 + var wsm = new OpenLayers.Layer.ArcGIS93Rest(
  260 + "ESRI World Street Map",
  261 + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export",
  262 + {
  263 + format : "jpeg"
  264 + }, {
  265 + isBaseLayer : true,
  266 + visibility : false
  267 + });
  268 + var bra = new OpenLayers.Layer.WMS(
  269 + "Base carto MMA",
  270 + "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map",
  271 + {
  272 + layers : "baseraster",
  273 + srs : "EPSG:4618",
  274 + format : "image/png",
  275 + isBaseLayer : false
  276 + }, {
  277 + isBaseLayer : true,
  278 + visibility : false
  279 + });
  280 +
  281 + var tms = new OpenLayers.Layer.TMS("OSGEO",
  282 + "http://tilecache.osgeo.org/wms-c/Basic.py/", {
  283 + layername : "basic",
  284 + type : "png",
  285 + // set if different than the bottom left of map.maxExtent
  286 + tileOrigin : new OpenLayers.LonLat(-180, -90),
  287 + isBaseLayer : true,
  288 + visibility : false
  289 + });
  290 +
  291 + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [oce, ims, wsm, tms,
  292 + bra];
  293 + })();
  294 +
  295 + i3GEO.inicia();
  296 + </script>
  297 +</body>
  298 +</html>
... ...