Commit 0df820e136ecbb6b73c4c4d3f43560de797db2c8
1 parent
22c6317e
Exists in
master
and in
7 other branches
revisão dos exemplos
Showing
14 changed files
with
242 additions
and
205 deletions
Show diff stats
admin/admin.db
No preview for this file type
exemplos/aplic2.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | -<meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile"> | 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"> | 5 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| 6 | -<title>i3Geo - Mapa interativo</title> | ||
| 7 | -<script type="text/javascript" src="../classesjs/i3geo.js"></script> | ||
| 8 | - <style> | ||
| 9 | - .yui-log .i3geo {background-color:yellow;} /* customize a color */ | ||
| 10 | - .yui-log .redesenho {background-color:yellow;} /* customize a color */ | ||
| 11 | - .yui-log .janela {background-color:yellow;} /* customize a color */ | ||
| 12 | - .yui-log-bd {text-align:left;} | ||
| 13 | - .yui-log-entry yui-log-verbose, p{text-align:left;} | ||
| 14 | - .info {text-align:left;} | ||
| 15 | - </style> | ||
| 16 | -</head> | ||
| 17 | -<body id="i3geo"> | ||
| 18 | 6 | ||
| 19 | -<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | ||
| 20 | -<tr style="border:0px"> | ||
| 21 | - <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | ||
| 22 | -</tr> | ||
| 23 | -<tr> | ||
| 24 | -<td> | ||
| 25 | - <table width=100% cellspacing=0 cellpadding=0 > | ||
| 26 | - <tr> | ||
| 27 | - <td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td> | ||
| 28 | - <td> | ||
| 29 | - <div class=verdeescuro style="top:0px;cursor:pointer;"> | ||
| 30 | - <div id=guia1 class=guia >Temas</div> | ||
| 31 | - <div id=guia2 class=guia >Adiciona</div> | ||
| 32 | - <div id=guia4 class=guia >Legenda</div> | ||
| 33 | - <div id=guia5 class=guia >Links</div> | ||
| 34 | - </div> | ||
| 35 | - </td> | ||
| 36 | - </tr> | ||
| 37 | - </table> | ||
| 38 | -</td> | ||
| 39 | -<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | ||
| 40 | - <div id="menus" ></div> | ||
| 41 | -</td> | ||
| 42 | -</tr> | ||
| 43 | -<tr> | ||
| 44 | - <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:300px;text-align:left;"> | ||
| 45 | - <div id='guia1obj' > | ||
| 46 | - <div style='left:5px;top:10px;' id=buscaRapida ></div> | ||
| 47 | - <div id=listaPropriedades style='top:15px;' ></div> | ||
| 48 | - <div id=listaTemas style='top:15px;'></div> | ||
| 49 | - </div> | ||
| 50 | - <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | ||
| 51 | - <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | ||
| 52 | - <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | ||
| 53 | - </td> | ||
| 54 | - <td style="vertical-align:top;border-width:0px;"> | ||
| 55 | - <table width="100%" style="vertical-align:top;border-width:0px"> | ||
| 56 | - <tr><td class=verdeclaro id=contemImg > | ||
| 57 | - <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | ||
| 58 | - </td></tr> | ||
| 59 | - </table> | ||
| 60 | - </td> | ||
| 61 | - </tr> | ||
| 62 | -<tr> | ||
| 63 | - <td class=tdbranca > | ||
| 64 | - <div id=visual ></div> | ||
| 65 | - <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | ||
| 66 | - </td> | ||
| 67 | - <td class=tdbranca > | ||
| 68 | - <table width=100% ><tr> | ||
| 69 | - <td class=tdbranca ><div id=lugarquadros ></div></td> | ||
| 70 | - <td class=tdbranca style=text-align:center > | ||
| 71 | - <div id=localizarxy > | ||
| 72 | - Aguarde... | ||
| 73 | - </div> | ||
| 74 | - </td> | ||
| 75 | - <td class=tdbranca ><div id=escala ></div></td> | ||
| 76 | - <td class=tdbranca ><div id=ondeestou ></div></td> | ||
| 77 | - </tr> | ||
| 78 | - <tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:10px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr> | ||
| 79 | - </table> | ||
| 80 | - </td> | ||
| 81 | -</tr> | ||
| 82 | -<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | ||
| 83 | -<tr style="border:0px"><td colspan=3 style=background-color:black ><input style="border:0px none; background-color:black;color:white;font-size:12pt;" type="text" size="1" id="i3geo_letreiro" ></td></tr> | ||
| 84 | -<tr style="border:0px"><td colspan=3 style=background-color:black;color:white id="emailInstituicao">geoprocessamento@mma.gov.br</td></tr> | 7 | +<title>i3GEO - OpenLayers</title> |
| 85 | 8 | ||
| 9 | +</head> | ||
| 10 | +<body id="i3geo" style="background-color:white"> | ||
| 11 | +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | ||
| 12 | + <tr style="border:0px"> | ||
| 13 | + <td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | ||
| 14 | + </tr> | ||
| 15 | + <tr> | ||
| 16 | + <td id="contemMenu" style="text-align:right;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | ||
| 17 | + <!--menu suspenso--> | ||
| 18 | + <div id="menus" ></div> | ||
| 19 | + </td> | ||
| 20 | + </tr> | ||
| 21 | + <tr> | ||
| 22 | + <td style="vertical-align:top;border-width:0px;"> | ||
| 23 | + <table width="100%" style="vertical-align:top;border-width:0px"> | ||
| 24 | + <tr> | ||
| 25 | + <td class=verdeclaro id=contemImg > | ||
| 26 | + <div id=corpoMapa style="position:relative;background-image:url('../imagens/i3geo1bw.jpg');"></div> | ||
| 27 | + </td> | ||
| 28 | + </tr> | ||
| 29 | + </table> | ||
| 30 | + </td> | ||
| 31 | + </tr> | ||
| 32 | + <tr> | ||
| 33 | + <td> | ||
| 34 | + <table width=100% > | ||
| 35 | + <tr> | ||
| 36 | + <td class=tdbranca > | ||
| 37 | + <!-- | ||
| 38 | + Nesse div são incluídos os ícones que permitem ao usuário modificar o visual de cores dos ícones | ||
| 39 | + <div id=visual ></div> | ||
| 40 | + --> | ||
| 41 | + <!-- botão de compartilhamento em redes sociais --> | ||
| 42 | + <div id=i3GEOcompartilhar style="text-align:left;border-top:1px solid rgb(250,250,250);padding-top:1px" ></div> | ||
| 43 | + <!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo --> | ||
| 44 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | ||
| 45 | + </td> | ||
| 46 | + <td class=tdbranca > | ||
| 47 | + <!-- aqui será incluída a escala numérica --> | ||
| 48 | + <div id=escala style="text-align:right;" ></div> | ||
| 49 | + </td> | ||
| 50 | + <td class=tdbranca > | ||
| 51 | + <!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse --> | ||
| 52 | + <div id=localizarxy style="text-align:left;font-size:10px;display:inline-table"></div> | ||
| 53 | + </td> | ||
| 54 | + <!-- aqui serão incluídas as bandeiras que permitem a troca de idioma --> | ||
| 55 | + <td class=tdbranca > | ||
| 56 | + <div id=seletorIdiomas ></div> | ||
| 57 | + </td> | ||
| 58 | + </tr> | ||
| 59 | + </table> | ||
| 60 | + </td> | ||
| 61 | + </tr> | ||
| 62 | + <tr style="border:0px"> | ||
| 63 | + <td id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td> | ||
| 64 | + </tr> | ||
| 65 | +</table> | ||
| 66 | +<center> | ||
| 67 | +<table id="i3GEOlogoMarca" style='box-shadow:0 1px 13px gray;border-radius:5px;'> | ||
| 68 | + <tr> | ||
| 69 | + <td><center><h1 style="font-weight:normal;font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;"><div id=versaoi3geo ></div><h2 style="font-weight:normal;font-size:10px;font-family: Verdana, Arial, Helvetica, sans-serif;">i3Geo - Software livre para criação de mapas interativos e geoprocessamento<h3 style="font-weight:normal;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> | ||
| 70 | + </tr> | ||
| 71 | + <tr> | ||
| 72 | + <td style="padding:10px;"><center><img alt="" style="width:560px;height:81px" src='../imagens/logo_inicio.png' ></td> | ||
| 73 | + </tr> | ||
| 74 | + <tr> | ||
| 75 | + <td><center> | ||
| 76 | + <!-- | ||
| 77 | + <script id="ohloh" type="text/javascript" src="http://www.ohloh.net/p/150688/widgets/project_users.js?style=red"></script> | ||
| 78 | + --> | ||
| 79 | + </td> | ||
| 80 | + </tr> | ||
| 86 | </table> | 81 | </table> |
| 87 | -</center> | ||
| 88 | -<div id=barraDeBotoes1 style='display:none'> | ||
| 89 | - <table style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr><tr><td style=height:5px ></td></tr></table> | ||
| 90 | - <table title="zoom" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> | ||
| 91 | - <table title="desloca" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> | ||
| 92 | - <table title="info" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> | ||
| 93 | - <table title="geral" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table> | ||
| 94 | - <table title="mede" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table> | ||
| 95 | - <table title="area" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table> | ||
| 96 | -</div> | ||
| 97 | -<div id=barraDeBotoes2 style='display:none'> | ||
| 98 | - <table style="width:100%"><caption style="text-align:center"> </caption> | ||
| 99 | - <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr> | ||
| 100 | - </table> | ||
| 101 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 102 | - <p style='font-size:6px;'> </p> | ||
| 103 | - <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/> | ||
| 104 | - </div> | ||
| 105 | - | ||
| 106 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 107 | - <p style='font-size:6px;'> </p> | ||
| 108 | - <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/> | ||
| 109 | - </div> | ||
| 110 | - | ||
| 111 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 112 | - <p style='font-size:6px;'> </p> | ||
| 113 | - <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/> | ||
| 114 | - </div> | ||
| 115 | 82 | ||
| 116 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 117 | - <p style='font-size:6px;'> </p> | ||
| 118 | - <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/> | ||
| 119 | - </div> | ||
| 120 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 121 | - <p style='font-size:6px;'> </p> | ||
| 122 | - <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/> | ||
| 123 | - </div> | ||
| 124 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 125 | - <p style='font-size:6px;'> </p> | ||
| 126 | - <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/> | ||
| 127 | - </div> | ||
| 128 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 129 | - <p style='font-size:6px;'> </p> | ||
| 130 | - <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/> | ||
| 131 | - </div> | ||
| 132 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 133 | - <p style='font-size:6px;'> </p> | ||
| 134 | - <img title="google" alt="" src="../imagens/branco.gif" id='google'/> | ||
| 135 | - </div> | ||
| 136 | - <div style='display:inline;background-color:rgb(250,250,250);'> | ||
| 137 | - <p style='font-size:6px;'> </p> | ||
| 138 | - <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/> | ||
| 139 | - </div> | ||
| 140 | - <div style='display:none;background-color:rgb(250,250,250);'> | ||
| 141 | - <p style='font-size:6px;'> </p> | ||
| 142 | - <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/> | ||
| 143 | - </div> | ||
| 144 | - <div style='display:none;background-color:rgb(250,250,250);'> | ||
| 145 | - <p style='font-size:6px;'> </p> | ||
| 146 | - <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/> | 83 | +<div id="i3GEOguiaMovel" style="position:absolute;display:block;border:0px solid white;text-align:left;z-index:2000;background-color:none"> |
| 84 | + <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' > | ||
| 85 | + <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"> | ||
| 86 | + <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> | ||
| 87 | + <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'> | ||
| 88 | + <div id='guia1obj' style='display:none;' > | ||
| 89 | + <!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico --> | ||
| 90 | + <div style='left:5px;top:10px;' id=buscaRapida ></div> | ||
| 91 | + <!-- Esta div acrescenta a lista de propriedades do mapa --> | ||
| 92 | + <div id=listaPropriedades style='top:15px;' ></div> | ||
| 93 | + <!-- 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 --> | ||
| 94 | + <div id=listaLayersBase style='top:15px;'></div> | ||
| 95 | + <!-- Esta div acrescenta a lista de de camadas disponíveis no mapa atual --> | ||
| 96 | + <div id=listaTemas style='top:15px;'></div> | ||
| 97 | + </div> | ||
| 98 | + <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | ||
| 99 | + <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | ||
| 100 | + <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | ||
| 101 | + </div> | ||
| 147 | </div> | 102 | </div> |
| 148 | - <div style='display:none;background-color:rgb(250,250,250);'> | ||
| 149 | - <p style='font-size:6px;'> </p> | ||
| 150 | - <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/> | ||
| 151 | - </div> | ||
| 152 | - <div style='display:none;background-color:rgb(250,250,250);'> | ||
| 153 | - <p style='font-size:6px;'> </p> | ||
| 154 | - <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/> | ||
| 155 | - </div> | ||
| 156 | - <div style='display:none;background-color:rgb(250,250,250);'> | ||
| 157 | - <p style='font-size:6px;'> </p> | ||
| 158 | - <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/> | ||
| 159 | - </div> | ||
| 160 | - <div style='display:none;background-color:rgb(250,250,250);'> | ||
| 161 | - <p style='font-size:6px;'> </p> | ||
| 162 | - <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/> | ||
| 163 | - </div> | ||
| 164 | - <table style="width:100%;"><tr><td style='background-color:rgb(250,250,250);'><p style='font-size:6px;'> </p><img title="" alt="" src="../imagens/branco.gif" id='desceferramentas'/></td></tr></table> | ||
| 165 | </div> | 103 | </div> |
| 166 | -<script type="text/javascript"> | ||
| 167 | -i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | ||
| 168 | -i3GEO.cria() | ||
| 169 | -i3GEO.inicia(); | 104 | + |
| 105 | +<script src="../classesjs/i3geo.js"></script> | ||
| 106 | +<script src="../pacotes/openlayers/OpenLayers211.js.php"></script> | ||
| 107 | +<!-- estilo necessário para a ferramenta de edição --> | ||
| 108 | +<style> | ||
| 109 | +.olControlEditingToolbar1 div { | ||
| 110 | + background-image:url(../mashups/openlayers.png); | ||
| 111 | + background-repeat:no-repeat; | ||
| 112 | + float:right; | ||
| 113 | + right: 0px; | ||
| 114 | + height:29px; | ||
| 115 | + margin:2px; | ||
| 116 | + width:29px; | ||
| 117 | + cursor:pointer; | ||
| 118 | +} | ||
| 119 | +</style> | ||
| 120 | +<script> | ||
| 121 | +// | ||
| 122 | +//esta função será executada quando o mapa terminar de ser criado | ||
| 123 | +//e acrescentará uma nova camada | ||
| 124 | +// | ||
| 170 | function acrescentaCamadas(camadas){ | 125 | function acrescentaCamadas(camadas){ |
| 171 | i3GEO.janela.abreAguarde("novaCamada","Minha camada"); | 126 | i3GEO.janela.abreAguarde("novaCamada","Minha camada"); |
| 172 | var temp = function(retorno){ | 127 | var temp = function(retorno){ |
| @@ -179,8 +134,72 @@ function acrescentaCamadas(camadas){ | @@ -179,8 +134,72 @@ function acrescentaCamadas(camadas){ | ||
| 179 | }; | 134 | }; |
| 180 | i3GEO.php.adtema(temp,camadas.toString()); | 135 | i3GEO.php.adtema(temp,camadas.toString()); |
| 181 | } | 136 | } |
| 182 | -i3GEO.finaliza = "acrescentaCamadas(new Array('biomashp'))" | ||
| 183 | - | 137 | +i3GEO.finaliza = function(){ |
| 138 | + if($i("i3GEOlogoMarca")) | ||
| 139 | + {$i("i3GEOlogoMarca").style.display = "none";} | ||
| 140 | + i3GEO.mapa.insereDobraPagina("googlemaps","../imagens/dobragooglemaps.png"); | ||
| 141 | + acrescentaCamadas(new Array('biomashp')) | ||
| 142 | +} | ||
| 143 | +// | ||
| 144 | +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | ||
| 145 | +i3GEO.configura.autotamanho = false; | ||
| 146 | +i3GEO.Interface.ATUAL = "openlayers"; | ||
| 147 | +i3GEO.Interface.IDCORPO = "contemImg"; | ||
| 148 | +i3GEO.Interface.openlayers.GADGETS = { | ||
| 149 | + PanZoomBar:true, | ||
| 150 | + PanZoom:false, | ||
| 151 | + LayerSwitcher:true, | ||
| 152 | + ScaleLine:true, | ||
| 153 | + OverviewMap:false | ||
| 154 | + }; | ||
| 155 | +i3GEO.Interface.openlayers.TILES = true; | ||
| 156 | +i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}' | ||
| 157 | +i3GEO.cria(); | ||
| 158 | +i3GEO.configura.mapaRefDisplay = "none"; | ||
| 159 | +i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; | ||
| 160 | +i3GEO.barraDeBotoes.OFFSET = -3; | ||
| 161 | +i3GEO.configura.oMenuData["submenus"]["janelas"] = []; | ||
| 162 | +i3GEO.ajuda.ATIVAJANELA = false; | ||
| 163 | +i3GEO.idioma.IDSELETOR = "seletorIdiomas"; | ||
| 164 | +i3GEO.Interface.ATIVAMENUCONTEXTO = false; | ||
| 165 | +i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | ||
| 166 | +i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; | ||
| 167 | +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true; | ||
| 168 | +i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true; | ||
| 169 | +i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false; | ||
| 170 | +i3GEO.mapa.AUTORESIZE = true; | ||
| 171 | +i3GEO.guias.TIPO = "movel"; | ||
| 172 | +i3GEO.guias.guiaMovel.config.topGuiaMovel = 0; | ||
| 173 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 174 | +(function(){ | ||
| 175 | + var oce = new OpenLayers.Layer.ArcGIS93Rest( | ||
| 176 | + "ESRI Ocean Basemap", | ||
| 177 | + "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", | ||
| 178 | + {format:"jpeg"}, | ||
| 179 | + {isBaseLayer:true,visibility:false} | ||
| 180 | + ); | ||
| 181 | + var ims = new OpenLayers.Layer.ArcGIS93Rest( | ||
| 182 | + "ESRI Imagery World 2D", | ||
| 183 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", | ||
| 184 | + {format:"jpeg"}, | ||
| 185 | + {isBaseLayer:true,visibility:false} | ||
| 186 | + ); | ||
| 187 | + var wsm = new OpenLayers.Layer.ArcGIS93Rest( | ||
| 188 | + "ESRI World Street Map", | ||
| 189 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", | ||
| 190 | + {format:"jpeg"}, | ||
| 191 | + {isBaseLayer:true,visibility:false} | ||
| 192 | + ); | ||
| 193 | + var bra = new OpenLayers.Layer.WMS( | ||
| 194 | + "Base carto MMA", | ||
| 195 | + "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", | ||
| 196 | + {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false}, | ||
| 197 | + {isBaseLayer:true,visibility:false} | ||
| 198 | + ); | ||
| 199 | + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [oce,ims,wsm,bra]; | ||
| 200 | +})(); | ||
| 201 | +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; | ||
| 202 | +i3GEO.inicia(); | ||
| 184 | </script> | 203 | </script> |
| 185 | </body> | 204 | </body> |
| 186 | -</html> | ||
| 187 | \ No newline at end of file | 205 | \ No newline at end of file |
| 206 | +</html> |
exemplos/index.html
| @@ -14,7 +14,7 @@ padding-bottom:10px; | @@ -14,7 +14,7 @@ padding-bottom:10px; | ||
| 14 | } | 14 | } |
| 15 | </style> | 15 | </style> |
| 16 | </head> | 16 | </head> |
| 17 | -<body> | 17 | +<body class="yui-skin-sam fundoPonto"> |
| 18 | <center> | 18 | <center> |
| 19 | <div class="bordaSuperior"> </div> | 19 | <div class="bordaSuperior"> </div> |
| 20 | <div class="mascaraPrincipal" id="divGeral" style="width: 700px; height: 2000px;"> <img src="../imagens/i3geo1.jpg"><br> | 20 | <div class="mascaraPrincipal" id="divGeral" style="width: 700px; height: 2000px;"> <img src="../imagens/i3geo1.jpg"><br> |
| @@ -48,12 +48,15 @@ de um layer de fundo</a></p> | @@ -48,12 +48,15 @@ de um layer de fundo</a></p> | ||
| 48 | <p><a href="openlayers5.htm" target="_blank">Modifica | 48 | <p><a href="openlayers5.htm" target="_blank">Modifica |
| 49 | a extensão geográfica máxima de apresentação</a> <i>i3GEO.Interface.openlayers.MAXEXTENT | 49 | a extensão geográfica máxima de apresentação</a> <i>i3GEO.Interface.openlayers.MAXEXTENT |
| 50 | = [-63.712484, -20.765721, -42.385294, -9.136698];</i></p> | 50 | = [-63.712484, -20.765721, -42.385294, -9.136698];</i></p> |
| 51 | -<p><b>Menu</b></p><p><a href="menus1.htm" target="_blank">Modifica | ||
| 52 | -o menu suspenso</a></p><p><b>Guias e janelas </b></p> | 51 | +<p><b>Menu</b></p> |
| 52 | +<p><a href="menus1.htm" target="_blank">Modifica | ||
| 53 | +o menu suspenso</a></p> | ||
| 54 | +<p><b>Guias e janelas </b></p> | ||
| 53 | <p><span style="font-weight: bold;"></span><a href="guias3.htm" target="_blank">Modificação na guia | 55 | <p><span style="font-weight: bold;"></span><a href="guias3.htm" target="_blank">Modificação na guia |
| 54 | que mostra o catálogo de dados. Uso de combo ao invés de árvore</a></p> | 56 | que mostra o catálogo de dados. Uso de combo ao invés de árvore</a></p> |
| 55 | <p><a href="guias2.htm" target="_blank">Guias | 57 | <p><a href="guias2.htm" target="_blank">Guias |
| 56 | -do tipo sanfona</a></p><p><a href="fotos1.htm" target="_blank">Guias | 58 | +do tipo sanfona</a></p> |
| 59 | +<p><a href="fotos1.htm" target="_blank">Guias | ||
| 57 | do tipo sanfona com fotos</a></p> | 60 | do tipo sanfona com fotos</a></p> |
| 58 | <p><a href="guias1.htm" target="_blank">Retorna | 61 | <p><a href="guias1.htm" target="_blank">Retorna |
| 59 | à guia padrão após adicionar um tema</a></p> | 62 | à guia padrão após adicionar um tema</a></p> |
| @@ -77,13 +80,14 @@ ser incluídos e estilo diferente</a></p> | @@ -77,13 +80,14 @@ ser incluídos e estilo diferente</a></p> | ||
| 77 | <p><a href="legenda1.htm" target="_blank">Legenda | 80 | <p><a href="legenda1.htm" target="_blank">Legenda |
| 78 | com grupos</a></p> | 81 | com grupos</a></p> |
| 79 | <p><b>Customização de ferramentas existentes</b></p> | 82 | <p><b>Customização de ferramentas existentes</b></p> |
| 80 | -<p><a href="mashup8.htm" target="_blank">Mapa | 83 | +<p><a href="fotos.htm" target="_blank">Mapa |
| 81 | com a ferramenta "carousel" posicionada início do mapa</a></p> | 84 | com a ferramenta "carousel" posicionada início do mapa</a></p> |
| 82 | -<h2>Interface Google Maps</h2> | ||
| 83 | -<p><a href="googlemapssanfona.phtml" target="_blank">Guias | ||
| 84 | -do tipo sanfona</a></p> | ||
| 85 | -<h2>Interface normal</h2> | ||
| 86 | -<p><b>Inclusão de um mapa dentro de uma página usando DIV</b></p> | 85 | +<p><a href="fotos.htm" target="_blank">Lista |
| 86 | +de fotos em uma guia</a></p> | ||
| 87 | +<p><a href="aplic1.htm" target="_blank">Busca | ||
| 88 | +rápida</a></p> | ||
| 89 | +<p><a href="aplic2.htm" target="_blank">Adiciona | ||
| 90 | +uma camada extra via javascript</a></p><b>Inclusão de um mapa dentro de uma página usando DIV</b> | ||
| 87 | <p><a href="mashup1.htm" target="_blank">Exemplo | 91 | <p><a href="mashup1.htm" target="_blank">Exemplo |
| 88 | 1 </a>- Botões com destaque laranja, em dois grupos na parte | 92 | 1 </a>- Botões com destaque laranja, em dois grupos na parte |
| 89 | superior e mapa com zoom</p> | 93 | superior e mapa com zoom</p> |
| @@ -106,14 +110,9 @@ guias e apenas com os botões de naveção em uma janela flutuante</p> | @@ -106,14 +110,9 @@ guias e apenas com os botões de naveção em uma janela flutuante</p> | ||
| 106 | <p><a href="iframe1.htm" target="_blank">Exemplo | 110 | <p><a href="iframe1.htm" target="_blank">Exemplo |
| 107 | 1</a> - Sem controle de tamanho</p> | 111 | 1</a> - Sem controle de tamanho</p> |
| 108 | <p><a href="iframe2.htm" target="_blank">Exemplo | 112 | <p><a href="iframe2.htm" target="_blank">Exemplo |
| 109 | -2</a> - Com tamanho controlado</p> | ||
| 110 | -<p><b>Aplicativos customizados</b></p> | ||
| 111 | -<p><a href="fotos.htm" target="_blank">Lista | ||
| 112 | -de fotos em uma guia</a></p> | ||
| 113 | -<p><a href="aplic1.htm" target="_blank">Busca | ||
| 114 | -rápida</a></p> | ||
| 115 | -<p><a href="aplic2.htm" target="_blank">Adiciona | ||
| 116 | -uma camada extra via javascript</a></p> | 113 | +2</a> - Com tamanho controlado<br></p><h2>Interface Google Maps</h2> |
| 114 | +<p><a href="googlemapssanfona.phtml" target="_blank">Guias | ||
| 115 | +do tipo sanfona</a></p> | ||
| 117 | <h2>Configuração de janelas, árvores de camadas e adição de temas</h2> | 116 | <h2>Configuração de janelas, árvores de camadas e adição de temas</h2> |
| 118 | <p><a href="janelas.htm" target="_blank">Opções | 117 | <p><a href="janelas.htm" target="_blank">Opções |
| 119 | de criação de janelas flutuantes</a></p> | 118 | de criação de janelas flutuantes</a></p> |
exemplos/janelas.htm
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | 5 | <script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> |
| 6 | 6 | ||
| 7 | </head> | 7 | </head> |
| 8 | -<body id="i3geo" style=background-color:white;padding:20px; > | 8 | +<body id="i3geo" style=background-color:white;padding:20px; class="yui-skin-sam" > |
| 9 | <div class=paragrafo style=top:50px; > | 9 | <div class=paragrafo style=top:50px; > |
| 10 | <p class=paragrafo > | 10 | <p class=paragrafo > |
| 11 | <b>Cria uma janela de aguarde padrão</b><br></br> | 11 | <b>Cria uma janela de aguarde padrão</b><br></br> |
exemplos/mashup1.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| 5 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | 5 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| 6 | <title>MMA - Mapa interativo</title> | 6 | <title>MMA - Mapa interativo</title> |
| 7 | -<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | ||
| 8 | -<script src="../pacotes/openlayers/OpenLayers211.js.php"></script> | ||
| 9 | </head> | 7 | </head> |
| 10 | <body style="background-color:rgb(200,200,200);z-index:0;" class=yui-skin-sam > | 8 | <body style="background-color:rgb(200,200,200);z-index:0;" class=yui-skin-sam > |
| 11 | <div style=position:absolute;left:10px;top:50px;width:200px; > | 9 | <div style=position:absolute;left:10px;top:50px;width:200px; > |
| @@ -85,6 +83,9 @@ | @@ -85,6 +83,9 @@ | ||
| 85 | </center> | 83 | </center> |
| 86 | </div> | 84 | </div> |
| 87 | <div id=posicaoDomouse ></div> | 85 | <div id=posicaoDomouse ></div> |
| 86 | +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | ||
| 87 | +<script src="../pacotes/openlayers/OpenLayers211.js.php"></script> | ||
| 88 | + | ||
| 88 | <script type="text/javascript"> | 89 | <script type="text/javascript"> |
| 89 | i3GEO.configura.locaplic = "http://"+window.location.host+"/i3geo"; | 90 | i3GEO.configura.locaplic = "http://"+window.location.host+"/i3geo"; |
| 90 | i3GEO.configura.mapaRefDisplay = "none" | 91 | i3GEO.configura.mapaRefDisplay = "none" |
| @@ -106,6 +107,8 @@ i3GEO.Interface.openlayers.GADGETS = { | @@ -106,6 +107,8 @@ i3GEO.Interface.openlayers.GADGETS = { | ||
| 106 | }; | 107 | }; |
| 107 | i3GEO.Interface.openlayers.TILES = true; | 108 | i3GEO.Interface.openlayers.TILES = true; |
| 108 | i3GEO.cria() | 109 | i3GEO.cria() |
| 110 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 111 | + | ||
| 109 | i3GEO.inicia(); | 112 | i3GEO.inicia(); |
| 110 | </script> | 113 | </script> |
| 111 | 114 |
exemplos/mashup2.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| @@ -89,7 +89,8 @@ i3GEO.Interface.openlayers.GADGETS = { | @@ -89,7 +89,8 @@ i3GEO.Interface.openlayers.GADGETS = { | ||
| 89 | OverviewMap:false | 89 | OverviewMap:false |
| 90 | }; | 90 | }; |
| 91 | i3GEO.Interface.openlayers.TILES = true; | 91 | i3GEO.Interface.openlayers.TILES = true; |
| 92 | -i3GEO.cria() | 92 | +i3GEO.cria(); |
| 93 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 93 | i3GEO.inicia(); | 94 | i3GEO.inicia(); |
| 94 | </script> | 95 | </script> |
| 95 | 96 |
exemplos/mashup3.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| @@ -87,7 +87,9 @@ i3GEO.Interface.openlayers.GADGETS = { | @@ -87,7 +87,9 @@ i3GEO.Interface.openlayers.GADGETS = { | ||
| 87 | OverviewMap:false | 87 | OverviewMap:false |
| 88 | }; | 88 | }; |
| 89 | i3GEO.Interface.openlayers.TILES = true; | 89 | i3GEO.Interface.openlayers.TILES = true; |
| 90 | -i3GEO.cria() | 90 | +i3GEO.cria(); |
| 91 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 92 | + | ||
| 91 | i3GEO.inicia(); | 93 | i3GEO.inicia(); |
| 92 | </script> | 94 | </script> |
| 93 | 95 |
exemplos/mashup4.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| @@ -82,7 +82,9 @@ i3GEO.Interface.openlayers.GADGETS = { | @@ -82,7 +82,9 @@ i3GEO.Interface.openlayers.GADGETS = { | ||
| 82 | OverviewMap:false | 82 | OverviewMap:false |
| 83 | }; | 83 | }; |
| 84 | i3GEO.Interface.openlayers.TILES = true; | 84 | i3GEO.Interface.openlayers.TILES = true; |
| 85 | -i3GEO.cria() | 85 | +i3GEO.cria(); |
| 86 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 87 | + | ||
| 86 | i3GEO.inicia(); | 88 | i3GEO.inicia(); |
| 87 | i3GEO.mapa.legendaHTML.libera(); | 89 | i3GEO.mapa.legendaHTML.libera(); |
| 88 | 90 |
exemplos/mashup5.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| @@ -85,7 +85,9 @@ i3GEO.Interface.openlayers.GADGETS = { | @@ -85,7 +85,9 @@ i3GEO.Interface.openlayers.GADGETS = { | ||
| 85 | }; | 85 | }; |
| 86 | i3GEO.Interface.openlayers.TILES = true; | 86 | i3GEO.Interface.openlayers.TILES = true; |
| 87 | i3GEO.configura.mashuppar = "&mapext=-53 -26 -42 -18"; | 87 | i3GEO.configura.mashuppar = "&mapext=-53 -26 -42 -18"; |
| 88 | -i3GEO.cria() | 88 | +i3GEO.cria(); |
| 89 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 90 | + | ||
| 89 | i3GEO.inicia(); | 91 | i3GEO.inicia(); |
| 90 | 92 | ||
| 91 | 93 |
exemplos/mashup6.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| @@ -78,7 +78,9 @@ i3GEO.Interface.openlayers.GADGETS = { | @@ -78,7 +78,9 @@ i3GEO.Interface.openlayers.GADGETS = { | ||
| 78 | }; | 78 | }; |
| 79 | i3GEO.Interface.openlayers.TILES = true; | 79 | i3GEO.Interface.openlayers.TILES = true; |
| 80 | i3GEO.configura.mashuppar = "&mapext=-53 -26 -42 -18"; | 80 | i3GEO.configura.mashuppar = "&mapext=-53 -26 -42 -18"; |
| 81 | -i3GEO.cria() | 81 | +i3GEO.cria(); |
| 82 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 83 | + | ||
| 82 | i3GEO.inicia(); | 84 | i3GEO.inicia(); |
| 83 | 85 | ||
| 84 | 86 |
exemplos/mashup7.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| @@ -73,7 +73,9 @@ i3GEO.configura.iniciaJanelaMensagens = false | @@ -73,7 +73,9 @@ i3GEO.configura.iniciaJanelaMensagens = false | ||
| 73 | i3GEO.idioma.MOSTRASELETOR = false | 73 | i3GEO.idioma.MOSTRASELETOR = false |
| 74 | i3GEO.configura.mashuppar = "&mapext=-53 -26 -42 -18"; | 74 | i3GEO.configura.mashuppar = "&mapext=-53 -26 -42 -18"; |
| 75 | i3GEO.configura.visual = "laranja"; | 75 | i3GEO.configura.visual = "laranja"; |
| 76 | -i3GEO.cria() | 76 | +i3GEO.cria(); |
| 77 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 78 | + | ||
| 77 | i3GEO.inicia(); | 79 | i3GEO.inicia(); |
| 78 | i3GEO.mapa.legendaHTML.incluiBotaoLibera = false | 80 | i3GEO.mapa.legendaHTML.incluiBotaoLibera = false |
| 79 | i3GEO.mapa.legendaHTML.cria("legendaDoMapa"); | 81 | i3GEO.mapa.legendaHTML.cria("legendaDoMapa"); |
exemplos/mashup8.htm
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | 4 | <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> |
| @@ -126,7 +126,9 @@ i3GEO.configura.iniciaJanelaMensagens = false | @@ -126,7 +126,9 @@ i3GEO.configura.iniciaJanelaMensagens = false | ||
| 126 | i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja" | 126 | i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja" |
| 127 | i3GEO.idioma.MOSTRASELETOR = false | 127 | i3GEO.idioma.MOSTRASELETOR = false |
| 128 | 128 | ||
| 129 | -i3GEO.cria() | 129 | +i3GEO.cria(); |
| 130 | +OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | ||
| 131 | + | ||
| 130 | i3GEO.inicia(); | 132 | i3GEO.inicia(); |
| 131 | var js = i3GEO.configura.locaplic+"/ferramentas/carouseltemas/index.js.php"; | 133 | var js = i3GEO.configura.locaplic+"/ferramentas/carouseltemas/index.js.php"; |
| 132 | i3GEO.util.scriptTag(js,"abreCarousel()","i3GEOF.carouseltemas_script"); | 134 | i3GEO.util.scriptTag(js,"abreCarousel()","i3GEOF.carouseltemas_script"); |
ferramentas/buscarapida/gadget.php
| @@ -12,12 +12,12 @@ if(!isset($locaplic)) | @@ -12,12 +12,12 @@ if(!isset($locaplic)) | ||
| 12 | <title></title> | 12 | <title></title> |
| 13 | </head> | 13 | </head> |
| 14 | <body name="ancora" class="yui-skin-sam;" style="overflow:auto;"> | 14 | <body name="ancora" class="yui-skin-sam;" style="overflow:auto;"> |
| 15 | -<div style="top:5px;left:1px;display:block;width:90%;" id="resultadoTemas" >Aguarde...</div> | 15 | +<div style="top:5px;left:1px;display:block;width:90%;" id="resultado" >Aguarde...</div> |
| 16 | <script src="../../classesjs/i3geo.js" type="text/javascript"></script> | 16 | <script src="../../classesjs/i3geo.js" type="text/javascript"></script> |
| 17 | <script language="JavaScript" type="text/javascript" src="index.js"></script> | 17 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
| 18 | 18 | ||
| 19 | <script type="text/javascript"> | 19 | <script type="text/javascript"> |
| 20 | - | 20 | +i3GEObuscaRapida.idresultado |
| 21 | 21 | ||
| 22 | var mapaLugar = function(wkt,layer,gid,nm) | 22 | var mapaLugar = function(wkt,layer,gid,nm) |
| 23 | { | 23 | { |
| @@ -31,7 +31,7 @@ var mapaLugar = function(wkt,layer,gid,nm) | @@ -31,7 +31,7 @@ var mapaLugar = function(wkt,layer,gid,nm) | ||
| 31 | window.open(url) | 31 | window.open(url) |
| 32 | } | 32 | } |
| 33 | i3GEObuscaRapida.funcaozoom = "mapaLugar" | 33 | i3GEObuscaRapida.funcaozoom = "mapaLugar" |
| 34 | -i3GEObuscaRapida.inicia("<?php echo $palavra;?>","<?php echo $locaplic;?>",mapaLugar,true,false) | 34 | +i3GEObuscaRapida.inicia("<?php echo $palavra;?>","<?php echo $locaplic;?>",i3GEObuscaRapida.montaResultado,true,false) |
| 35 | </script> | 35 | </script> |
| 36 | 36 | ||
| 37 | 37 |
ferramentas/buscarapida/index.js
| @@ -152,7 +152,9 @@ i3GEObuscaRapida = { | @@ -152,7 +152,9 @@ i3GEObuscaRapida = { | ||
| 152 | i3GEObuscaRapida.palavra = palavra; | 152 | i3GEObuscaRapida.palavra = palavra; |
| 153 | i3GEObuscaRapida.locaplic = locaplic; | 153 | i3GEObuscaRapida.locaplic = locaplic; |
| 154 | if(servicosexternos === true){ | 154 | if(servicosexternos === true){ |
| 155 | - //aguarde("block") | 155 | + try |
| 156 | + {aguarde("block");} | ||
| 157 | + catch(e){} | ||
| 156 | i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); | 158 | i3GEO.php.buscaRapida(resultado,locaplic,i3GEObuscaRapida.servico,palavra); |
| 157 | } | 159 | } |
| 158 | if(temasmapa === true){ | 160 | if(temasmapa === true){ |
| @@ -198,7 +200,7 @@ i3GEObuscaRapida = { | @@ -198,7 +200,7 @@ i3GEObuscaRapida = { | ||
| 198 | catch(e){var ins = "Nada encontrado nos temas ou nenhum tema permite busca.<br>";} | 200 | catch(e){var ins = "Nada encontrado nos temas ou nenhum tema permite busca.<br>";} |
| 199 | $i("resultadoTemas").style.display = "block"; | 201 | $i("resultadoTemas").style.display = "block"; |
| 200 | $i("resultadoTemas").innerHTML = ins; | 202 | $i("resultadoTemas").innerHTML = ins; |
| 201 | - aguarde("none"); | 203 | + try{aguarde("none");}catch(e){} |
| 202 | }, | 204 | }, |
| 203 | /* | 205 | /* |
| 204 | Function: montaResultado | 206 | Function: montaResultado |
| @@ -238,7 +240,8 @@ i3GEObuscaRapida = { | @@ -238,7 +240,8 @@ i3GEObuscaRapida = { | ||
| 238 | catch(e){var ins = "Erro ao acessar o serviço "+i3GEObuscaRapida.servico+"<br>";} | 240 | catch(e){var ins = "Erro ao acessar o serviço "+i3GEObuscaRapida.servico+"<br>";} |
| 239 | $i(i3GEObuscaRapida.idresultado).style.display = "block"; | 241 | $i(i3GEObuscaRapida.idresultado).style.display = "block"; |
| 240 | $i(i3GEObuscaRapida.idresultado).innerHTML = ins | 242 | $i(i3GEObuscaRapida.idresultado).innerHTML = ins |
| 241 | - aguarde("none") | 243 | + try{aguarde("none");} |
| 244 | + catch(e){} | ||
| 242 | if(i3GEObuscaRapida.buscaemtemas){ | 245 | if(i3GEObuscaRapida.buscaemtemas){ |
| 243 | try{ | 246 | try{ |
| 244 | window.parent.i3GEO.php.procurartemas2(i3GEObuscaRapida.resultadoTemas,i3GEObuscaRapida.palavra,i3GEObuscaRapida.locaplic); | 247 | window.parent.i3GEO.php.procurartemas2(i3GEObuscaRapida.resultadoTemas,i3GEObuscaRapida.palavra,i3GEObuscaRapida.locaplic); |