Commit a2f08508a05c68537032ef698139ac22c653094b
1 parent
ca32beaf
Exists in
master
and in
7 other branches
--no commit message
Showing
23 changed files
with
1206 additions
and
904 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,191 @@ |
| 1 | +<?php | |
| 2 | +include_once("../ms_configura.php"); | |
| 3 | +?> | |
| 4 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| 5 | +<html> | |
| 6 | +<head> | |
| 7 | +<meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> | |
| 8 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| 9 | + <style type="text/css"> | |
| 10 | + .olControlEditingToolbar { | |
| 11 | + float:left; | |
| 12 | + right: 0px; | |
| 13 | + height:30px; | |
| 14 | + width: 150px; | |
| 15 | + } | |
| 16 | +</style> | |
| 17 | +<title>MMA - Mapa interativo</title> | |
| 18 | +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> | |
| 19 | + | |
| 20 | +</head> | |
| 21 | +<body id="i3geo" > | |
| 22 | +<center> | |
| 23 | +<table id='mst' summary="" style='display:none' width=100% cellspacing='0'> | |
| 24 | +<tr style="border:0px"> | |
| 25 | + <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | |
| 26 | +</tr> | |
| 27 | +<tr> | |
| 28 | +<td> | |
| 29 | + <table width=100% cellspacing=0 cellpadding=0 > | |
| 30 | + <tr> | |
| 31 | + <td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td> | |
| 32 | + <td> | |
| 33 | + <div class=verdeescuro style="top:0px;cursor:pointer;"> | |
| 34 | + <div id=guia1 class=guia >Temas</div> | |
| 35 | + <div id=guia2 class=guia >Adiciona</div> | |
| 36 | + <div id=guia4 class=guia >Legenda</div> | |
| 37 | + <div id=guia5 class=guia >Mapas</div> | |
| 38 | + </div> | |
| 39 | + </td> | |
| 40 | + </tr> | |
| 41 | + </table> | |
| 42 | +</td> | |
| 43 | +<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
| 44 | + <div id="menus" ></div> | |
| 45 | +</td> | |
| 46 | +</tr> | |
| 47 | +<tr> | |
| 48 | + <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:268px;text-align:left;"> | |
| 49 | + <div id='guia1obj' > | |
| 50 | + <div style='left:5px;top:10px;' id=buscaRapida ></div> | |
| 51 | + <div id=listaPropriedades style='top:15px;' ></div> | |
| 52 | + <div id=listaTemas style='top:15px;'></div> | |
| 53 | + </div> | |
| 54 | + <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | |
| 55 | + <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | |
| 56 | + <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | |
| 57 | + </td> | |
| 58 | + <td style="vertical-align:top;border-width:0px;"> | |
| 59 | + <table width="100%" style="vertical-align:top;border-width:0px"> | |
| 60 | + <tr><td class=verdeclaro id=contemImg > | |
| 61 | + <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | |
| 62 | + </td></tr> | |
| 63 | + </table> | |
| 64 | + </td> | |
| 65 | + </tr> | |
| 66 | +<tr> | |
| 67 | + <td class=tdbranca > | |
| 68 | + <div id=visual ></div> | |
| 69 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | |
| 70 | + </td> | |
| 71 | + <td class=tdbranca > | |
| 72 | + <table width=100% ><tr> | |
| 73 | + <td class=tdbranca ></td> | |
| 74 | + <td class=tdbranca style=text-align:center > | |
| 75 | + | |
| 76 | + </td> | |
| 77 | + <td class=tdbranca ></td> | |
| 78 | + <td class=tdbranca ><div id=ondeestou ></div></td> | |
| 79 | + </tr> | |
| 80 | + <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> | |
| 81 | + </table> | |
| 82 | + </td> | |
| 83 | +</tr> | |
| 84 | +<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | |
| 85 | +<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> | |
| 86 | +<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | |
| 87 | + | |
| 88 | +</table> | |
| 89 | +</center> | |
| 90 | +<div id=barraDeBotoes2 style='display:none'> | |
| 91 | + <table style="width:100%"><caption style="text-align:center"> </caption> | |
| 92 | + <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr> | |
| 93 | + </table> | |
| 94 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 95 | + <p style='font-size:6px;'> </p> | |
| 96 | + <img title="identifica" alt="" src="../imagens/branco.gif" id='identifica'/> | |
| 97 | + </div> | |
| 98 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 99 | + <p style='font-size:6px;'> </p> | |
| 100 | + <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/> | |
| 101 | + </div> | |
| 102 | + | |
| 103 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 104 | + <p style='font-size:6px;'> </p> | |
| 105 | + <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/> | |
| 106 | + </div> | |
| 107 | + | |
| 108 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 109 | + <p style='font-size:6px;'> </p> | |
| 110 | + <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/> | |
| 111 | + </div> | |
| 112 | + | |
| 113 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 114 | + <p style='font-size:6px;'> </p> | |
| 115 | + <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/> | |
| 116 | + </div> | |
| 117 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 118 | + <p style='font-size:6px;'> </p> | |
| 119 | + <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/> | |
| 120 | + </div> | |
| 121 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 122 | + <p style='font-size:6px;'> </p> | |
| 123 | + <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/> | |
| 124 | + </div> | |
| 125 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 126 | + <p style='font-size:6px;'> </p> | |
| 127 | + <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/> | |
| 128 | + </div> | |
| 129 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 130 | + <p style='font-size:6px;'> </p> | |
| 131 | + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/> | |
| 132 | + </div> | |
| 133 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 134 | + <p style='font-size:6px;'> </p> | |
| 135 | + <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/> | |
| 136 | + </div> | |
| 137 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 138 | + <p style='font-size:6px;'> </p> | |
| 139 | + <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/> | |
| 140 | + </div> | |
| 141 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 142 | + <p style='font-size:6px;'> </p> | |
| 143 | + <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/> | |
| 144 | + </div> | |
| 145 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 146 | + <p style='font-size:6px;'> </p> | |
| 147 | + <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/> | |
| 148 | + </div> | |
| 149 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 150 | + <p style='font-size:6px;'> </p> | |
| 151 | + <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/> | |
| 152 | + </div> | |
| 153 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 154 | + <p style='font-size:6px;'> </p> | |
| 155 | + <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/> | |
| 156 | + </div> | |
| 157 | + <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> | |
| 158 | +</div> | |
| 159 | + | |
| 160 | +<!-- Variáveis globais e inicialização do mapa--> | |
| 161 | +<script type="text/javascript"> | |
| 162 | +/* | |
| 163 | +Title: OpenLayers (experimental) | |
| 164 | + | |
| 165 | +Abre o i3geo com a navegação controlada pelo OpenLayers. | |
| 166 | + | |
| 167 | +File: i3geo/aplicmap/googleearth.htm | |
| 168 | + | |
| 169 | +Exemplo: | |
| 170 | + | |
| 171 | +http://<host>/i3geo/ms_criamapa.php?interface=googleearth.phtml | |
| 172 | + | |
| 173 | +*/ | |
| 174 | +g_locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
| 175 | +g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens"; | |
| 176 | +g_barraFerramentas1 = "nao" | |
| 177 | +g_barraFerramentas2 = "sim" | |
| 178 | +g_mapaRefDisplay = "none" | |
| 179 | +g_janelaMen = "nao"; | |
| 180 | +g_mostraRosa = "nao" | |
| 181 | +g_opcoesTemas = "sim"; | |
| 182 | +g_3dmap = "3dmap.map"; | |
| 183 | +i3GEO.interface.ATUAL = "googleearth"; | |
| 184 | +i3GEO.interface.IDCORPO = "contemImg"; | |
| 185 | + | |
| 186 | +i3GEO.cria(); | |
| 187 | +i3GEO.inicia(); | |
| 188 | +</script> | |
| 189 | + | |
| 190 | +</body> | |
| 191 | +</html> | |
| 0 | 192 | \ No newline at end of file | ... | ... |
aplicmap/googlemaps.phtml
| ... | ... | @@ -15,48 +15,152 @@ include_once("../ms_configura.php"); |
| 15 | 15 | } |
| 16 | 16 | </style> |
| 17 | 17 | <title>MMA - Mapa interativo</title> |
| 18 | -<!-- Leitura dos programas javaScript e estilos. Pode-se ler os arquivos não compactados, bastando excluir a palavra _compacto --> | |
| 19 | 18 | <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2.x&key=<?php echo $googleApiKey; ?>"></script> |
| 19 | + | |
| 20 | 20 | <script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script> |
| 21 | 21 | |
| 22 | 22 | </head> |
| 23 | -<body id=i3geo > | |
| 23 | +<body id="i3geo" > | |
| 24 | 24 | <center> |
| 25 | -<table id='mst' width=100% cellspacing='0'> | |
| 26 | -<tr style="border:0px"><td colspan=2 style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td></tr> | |
| 25 | +<table id='mst' summary="" style='display:none' width=100% cellspacing='0'> | |
| 26 | +<tr style="border:0px"> | |
| 27 | + <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | |
| 28 | +</tr> | |
| 27 | 29 | <tr> |
| 28 | - <td class=tdbranca id=contemFerramentas style="border:0px;vertical-align:top;width:268px;text-align:left;"> | |
| 30 | +<td> | |
| 29 | 31 | <table width=100% cellspacing=0 cellpadding=0 > |
| 30 | - <tr><td style="background-color:white;border-bottom:0px solid rgb(230,230,230);height:45px"> | |
| 31 | - <!-- Guias principais, não mude o ID, apenas o nome se for desejado --> | |
| 32 | - <div style="top:0px;cursor:pointer;"> | |
| 33 | - <div id=guia1 class=guia value="Mostra os temas atualmente inseridos no mapa e que podem estar visíveis ou não." > Temas </div> | |
| 34 | - <div id=guia2 class=guia value="Mostra a lista de temas disponíveis no servidor de dados, possibilitando que novos temas sejam adicionados ao mapa."> Adiciona </div> | |
| 35 | - <div id=guia4 class=guia value="Mostra a legnda do mapa atual." > Legenda </div> | |
| 36 | - <div id=guia5 class=guia value="Lista mapas já preparados, com temáticas específicas,que podem ser abertos no I3Geo"> Mapas </div> | |
| 32 | + <tr> | |
| 33 | + <td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td> | |
| 34 | + <td> | |
| 35 | + <div class=verdeescuro style="top:0px;cursor:pointer;"> | |
| 36 | + <div id=guia1 class=guia >Temas</div> | |
| 37 | + <div id=guia2 class=guia >Adiciona</div> | |
| 38 | + <div id=guia4 class=guia >Legenda</div> | |
| 39 | + <div id=guia5 class=guia >Mapas</div> | |
| 37 | 40 | </div> |
| 38 | - </td></tr> | |
| 41 | + </td> | |
| 42 | + </tr> | |
| 39 | 43 | </table> |
| 40 | - <div id='guia1obj' ><div id=listaTemas ></div></div> | |
| 44 | +</td> | |
| 45 | +<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
| 46 | + <div id="menus" ></div> | |
| 47 | +</td> | |
| 48 | +</tr> | |
| 49 | +<tr> | |
| 50 | + <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:268px;text-align:left;"> | |
| 51 | + <div id='guia1obj' > | |
| 52 | + <div style='left:5px;top:10px;' id=buscaRapida ></div> | |
| 53 | + <div id=listaPropriedades style='top:15px;' ></div> | |
| 54 | + <div id=listaTemas style='top:15px;'></div> | |
| 55 | + </div> | |
| 41 | 56 | <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> |
| 42 | 57 | <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> |
| 43 | 58 | <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> |
| 44 | 59 | </td> |
| 45 | - <td class=verdeclaro style="background-color:white;vertical-align:top;border-width:0px;"> | |
| 46 | - <table width="100%" style="vertical-align:top;"> | |
| 47 | - <!-- Corpo do mapa. Pode ser reposicionado, mas não mude os IDs --> | |
| 48 | - <tr><td></td></tr> | |
| 60 | + <td style="vertical-align:top;border-width:0px;"> | |
| 61 | + <table width="100%" style="vertical-align:top;border-width:0px"> | |
| 49 | 62 | <tr><td class=verdeclaro id=contemImg > |
| 63 | + <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> | |
| 50 | 64 | </td></tr> |
| 51 | 65 | </table> |
| 52 | 66 | </td> |
| 53 | 67 | </tr> |
| 54 | -<tr style="border:0px"><td colspan=2 style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | |
| 68 | +<tr> | |
| 69 | + <td class=tdbranca > | |
| 70 | + <div id=visual ></div> | |
| 71 | + <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div> | |
| 72 | + </td> | |
| 73 | + <td class=tdbranca > | |
| 74 | + <table width=100% ><tr> | |
| 75 | + <td class=tdbranca ></td> | |
| 76 | + <td class=tdbranca style=text-align:center > | |
| 77 | + <div id=localizarxy > | |
| 78 | + Aguarde... | |
| 79 | + </div> | |
| 80 | + </td> | |
| 81 | + <td class=tdbranca ></div></td> | |
| 82 | + <td class=tdbranca ><div id=ondeestou ></div></td> | |
| 83 | + </tr> | |
| 84 | + <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> | |
| 85 | + </table> | |
| 86 | + </td> | |
| 87 | +</tr> | |
| 88 | +<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> | |
| 89 | +<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> | |
| 90 | +<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr> | |
| 91 | + | |
| 55 | 92 | </table> |
| 56 | -<a style=text-align:center;color:white href="mailto:edmar.moretti@mma.gov.br">Críticas e sugestões</a> | |
| 57 | 93 | </center> |
| 58 | -<div id="panel" class="olControlEditingToolbar" style="position:absolute;top:12px;left:265px;"></div> | |
| 59 | -<div id=botoesadic ></div> | |
| 94 | +<div id=barraDeBotoes2 style='display:none'> | |
| 95 | + <table style="width:100%"><caption style="text-align:center"> </caption> | |
| 96 | + <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr> | |
| 97 | + </table> | |
| 98 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 99 | + <p style='font-size:6px;'> </p> | |
| 100 | + <img title="identifica" alt="" src="../imagens/branco.gif" id='identifica'/> | |
| 101 | + </div> | |
| 102 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 103 | + <p style='font-size:6px;'> </p> | |
| 104 | + <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/> | |
| 105 | + </div> | |
| 106 | + | |
| 107 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 108 | + <p style='font-size:6px;'> </p> | |
| 109 | + <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/> | |
| 110 | + </div> | |
| 111 | + | |
| 112 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 113 | + <p style='font-size:6px;'> </p> | |
| 114 | + <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/> | |
| 115 | + </div> | |
| 116 | + | |
| 117 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 118 | + <p style='font-size:6px;'> </p> | |
| 119 | + <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/> | |
| 120 | + </div> | |
| 121 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 122 | + <p style='font-size:6px;'> </p> | |
| 123 | + <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/> | |
| 124 | + </div> | |
| 125 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 126 | + <p style='font-size:6px;'> </p> | |
| 127 | + <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/> | |
| 128 | + </div> | |
| 129 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 130 | + <p style='font-size:6px;'> </p> | |
| 131 | + <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/> | |
| 132 | + </div> | |
| 133 | + <div style='display:inline;background-color:rgb(250,250,250);'> | |
| 134 | + <p style='font-size:6px;'> </p> | |
| 135 | + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/> | |
| 136 | + </div> | |
| 137 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 138 | + <p style='font-size:6px;'> </p> | |
| 139 | + <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/> | |
| 140 | + </div> | |
| 141 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 142 | + <p style='font-size:6px;'> </p> | |
| 143 | + <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/> | |
| 144 | + </div> | |
| 145 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 146 | + <p style='font-size:6px;'> </p> | |
| 147 | + <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/> | |
| 148 | + </div> | |
| 149 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 150 | + <p style='font-size:6px;'> </p> | |
| 151 | + <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/> | |
| 152 | + </div> | |
| 153 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 154 | + <p style='font-size:6px;'> </p> | |
| 155 | + <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/> | |
| 156 | + </div> | |
| 157 | + <div style='display:none;background-color:rgb(250,250,250);'> | |
| 158 | + <p style='font-size:6px;'> </p> | |
| 159 | + <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/> | |
| 160 | + </div> | |
| 161 | + <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> | |
| 162 | +</div> | |
| 163 | + | |
| 60 | 164 | <!-- Variáveis globais e inicialização do mapa--> |
| 61 | 165 | <script type="text/javascript"> |
| 62 | 166 | /* |
| ... | ... | @@ -74,7 +178,7 @@ http://<host>/i3geo/ms_criamapa.php?interface=googlemaps.phtml |
| 74 | 178 | g_locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; |
| 75 | 179 | g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens"; |
| 76 | 180 | g_barraFerramentas1 = "nao" |
| 77 | -g_barraFerramentas2 = "nao" | |
| 181 | +g_barraFerramentas2 = "sim" | |
| 78 | 182 | g_mapaRefDisplay = "none" |
| 79 | 183 | g_janelaMen = "nao"; |
| 80 | 184 | g_mostraRosa = "nao" | ... | ... |
classesjs/classe_arvoredecamadas.js
| ... | ... | @@ -736,14 +736,17 @@ i3GEO.arvoreDeCamadas = { |
| 736 | 736 | {Boolean} |
| 737 | 737 | */ |
| 738 | 738 | comparaTemas: function(novo,atual){ |
| 739 | - var novon = novo.length; | |
| 740 | - if(novon != atual.length){return (false);} | |
| 741 | - for (i=0;i<novon;i++){ | |
| 742 | - if(novo[i].name != atual[i].name){return (false);} | |
| 743 | - if(novo[i].tema != atual[i].tema){return (false);} | |
| 744 | - if(novo[i].sel != atual[i].sel){return (false);} | |
| 739 | + try{ | |
| 740 | + var novon = novo.length; | |
| 741 | + if(novon != atual.length){return (false);} | |
| 742 | + for (i=0;i<novon;i++){ | |
| 743 | + if(novo[i].name != atual[i].name){return (false);} | |
| 744 | + if(novo[i].tema != atual[i].tema){return (false);} | |
| 745 | + if(novo[i].sel != atual[i].sel){return (false);} | |
| 746 | + } | |
| 747 | + return(true); | |
| 745 | 748 | } |
| 746 | - return(true); | |
| 749 | + catch(e){return true;} | |
| 747 | 750 | }, |
| 748 | 751 | /* |
| 749 | 752 | Function: pegaTema | ... | ... |
classesjs/classe_barradebotoes.js
| ... | ... | @@ -33,16 +33,22 @@ Constrói a barra de botões flutuante |
| 33 | 33 | */ |
| 34 | 34 | i3GEO.barraDeBotoes = { |
| 35 | 35 | /* |
| 36 | + Variable: BARRAS | |
| 37 | + | |
| 38 | + Array com os objetos YAHOO.janelaBotoes.xp.panel criados | |
| 39 | + */ | |
| 40 | + BARRAS: new Array(), | |
| 41 | + /* | |
| 36 | 42 | Property: LISTABOTOES |
| 37 | 43 | |
| 38 | 44 | Objeto com a lista de botões. |
| 39 | 45 | |
| 40 | - Por default utiliza os botoes definidos em g_listaFuncoesBotoes.botoes | |
| 46 | + Por default utiliza os botoes definidos em i3GEO.configura.funcoesBotoes.botoes | |
| 41 | 47 | |
| 42 | 48 | Type: |
| 43 | 49 | {JSON} |
| 44 | 50 | */ |
| 45 | - LISTABOTOES: g_listaFuncoesBotoes.botoes, | |
| 51 | + LISTABOTOES: i3GEO.configura.funcoesBotoes.botoes, | |
| 46 | 52 | /* |
| 47 | 53 | Property: BOTAOPADRAO |
| 48 | 54 | |
| ... | ... | @@ -143,6 +149,11 @@ i3GEO.barraDeBotoes = { |
| 143 | 149 | |
| 144 | 150 | i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2); |
| 145 | 151 | |
| 152 | + Os objetos criados são armazenados no array BARRAS, dessa forma, para acessar uma barra utilize | |
| 153 | + por exemplo: | |
| 154 | + | |
| 155 | + i3GEO.barraDeBotoes.BARRAS[1].show(); | |
| 156 | + | |
| 146 | 157 | Parameters: |
| 147 | 158 | |
| 148 | 159 | idconteudo {String} - id do elemento existente no HTML e que contém as definições dos botões |
| ... | ... | @@ -356,6 +367,27 @@ i3GEO.barraDeBotoes = { |
| 356 | 367 | } |
| 357 | 368 | }; |
| 358 | 369 | } |
| 370 | + i3GEO.barraDeBotoes.BARRAS.push(YAHOO.janelaBotoes.xp.panel); | |
| 359 | 371 | YAHOO.janelaBotoes.xp.panel.show(); |
| 372 | + }, | |
| 373 | + /* | |
| 374 | + Function: reativa | |
| 375 | + | |
| 376 | + Reativa as barras de ferramentas já criadas | |
| 377 | + | |
| 378 | + Parameters: | |
| 379 | + | |
| 380 | + indice {Integer} - índice do array BARRAS que guarda os objetos YAHOO com | |
| 381 | + as barras Se não for definido, todas as barras serão reativadas | |
| 382 | + */ | |
| 383 | + reativa: function(indice){ | |
| 384 | + if(arguments.length == 1) | |
| 385 | + i3GEO.barraDeBotoes.BARRAS[indice].show(); | |
| 386 | + else{ | |
| 387 | + var n = i3GEO.barraDeBotoes.BARRAS.length; | |
| 388 | + for(i=0;i<n;i++){ | |
| 389 | + i3GEO.barraDeBotoes.BARRAS[i].show(); | |
| 390 | + } | |
| 391 | + } | |
| 360 | 392 | } |
| 361 | 393 | } |
| 362 | 394 | \ No newline at end of file | ... | ... |
classesjs/classe_configura.js
| ... | ... | @@ -36,6 +36,141 @@ o funcionamento do i3geo. |
| 36 | 36 | */ |
| 37 | 37 | i3GEO.configura = { |
| 38 | 38 | /* |
| 39 | + Variable: oMenuData | |
| 40 | + | |
| 41 | + Itens incluídos no menu suspenso. Define os parâmetros para o gadget menu suspenso | |
| 42 | + | |
| 43 | + Parâmetros: | |
| 44 | + | |
| 45 | + text - texto que serámostrado na tela | |
| 46 | + | |
| 47 | + url - função que será executada | |
| 48 | + */ | |
| 49 | + oMenuData: { | |
| 50 | + "ajudas": [ | |
| 51 | + { text: $trad("u1"), url: "http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332" }, | |
| 52 | + { text: $trad("u2"), url: "javascript:i3GEO.ajuda.abreDoc()" }, | |
| 53 | + { text: $trad("u3"), url: "http://pt.wikibooks.org/wiki/I3geo" }, | |
| 54 | + { text: $trad("u4"), url: "http://mapas.mma.gov.br/wikibooki3geo" }, | |
| 55 | + { text: $trad("u5a"), url: "http://www.softwarepublico.gov.br" }, | |
| 56 | + { text: "i3Geo Blog", url: "http://sistemas.mma.gov.br/blogs/index.php?blog=6" } | |
| 57 | + ], | |
| 58 | + "analise": [ | |
| 59 | + { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u22")+'</b></span>',url: "#"}, | |
| 60 | + { text: $trad("u7"), url: "javascript:i3GEO.analise.dialogo.gradePol()"}, | |
| 61 | + { text: $trad("u8"), url: "javascript:i3GEO.analise.dialogo.gradePontos()" }, | |
| 62 | + { text: $trad("u9"), url: "javascript:i3GEO.analise.dialogo.gradeHex()" }, | |
| 63 | + { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u23")+'</b></span>',url: "#"}, | |
| 64 | + { text: $trad("u11a"), url: "javascript:i3GEO.analise.dialogo.distanciaptpt()" }, | |
| 65 | + { text: $trad("u12"), url: "javascript:i3GEO.analise.dialogo.nptPol()" }, | |
| 66 | + { text: $trad("u13"), url: "javascript:i3GEO.analise.dialogo.pontoempoligono()" }, | |
| 67 | + { text: $trad("u14"), url: "javascript:i3GEO.analise.dialogo.pontosdistri()" }, | |
| 68 | + { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u24")+'</b></span>',url: "#"}, | |
| 69 | + { text: $trad("u11"), url: "javascript:i3GEO.analise.dialogo.centroide()" }, | |
| 70 | + { text: $trad("u25"), url: "javascript:i3GEO.analise.dialogo.dissolve()" }, | |
| 71 | + { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u27")+'</b></span>',url: "#"}, | |
| 72 | + { text: $trad("u6"), url: "javascript:i3GEO.analise.dialogo.analisaGeometrias()" }, | |
| 73 | + { text: $trad("u10"), url: "javascript:i3GEO.analise.dialogo.buffer()" }, | |
| 74 | + { text: $trad("u26"), url: "javascript:i3GEO.analise.dialogo.agrupaElementos()" } | |
| 75 | + ], | |
| 76 | + "janelas": [ | |
| 77 | + { text: $trad("u15"), url: "javascript:initJanelaZoom('1');initJanelaZoom('2')" }, | |
| 78 | + { text: $trad("u16"), url: "javascript:i3GEO.ajuda.abreJanela()" } | |
| 79 | + ], | |
| 80 | + "arquivo": [ | |
| 81 | + { text: $trad("u17"), url: "javascript:i3GEO.mapa.dialogo.salvaMapa()" }, | |
| 82 | + { text: $trad("u18"), url: "javascript:i3GEO.mapa.dialogo.carregaMapa()" }, | |
| 83 | + { text: $trad("u19"), url: "javascript:i3GEO.gadgets.quadros.listaImagens()" }, | |
| 84 | + { text: $trad("u20"), url: "javascript:i3GEO.mapa.dialogo.convertews()" }, | |
| 85 | + { text: $trad("u21"), url: "../geradordelinks.htm" } | |
| 86 | + ] | |
| 87 | + }, | |
| 88 | + /* | |
| 89 | + Variable: tipoimagem | |
| 90 | + | |
| 91 | + Indica o tipo de filtro de imagem que está ativo. | |
| 92 | + O filtro ativo é aplicado sobre a imagem toda a vez que o mapa é refeito. | |
| 93 | + */ | |
| 94 | + tipoimagem: "nenhum", | |
| 95 | + /* | |
| 96 | + Variable: tipotip | |
| 97 | + | |
| 98 | + Tipo de tip que é mostrado na função de identificação quando o usuário estaciona o mouse sobre o mapa | |
| 99 | + | |
| 100 | + Type: | |
| 101 | + {completo|simples|balao} | |
| 102 | + */ | |
| 103 | + tipotip: "balao", | |
| 104 | + /* | |
| 105 | + Variable: funcaoTip | |
| 106 | + | |
| 107 | + Função que será executada na operação de identificação quando o usuário estaciona o mouse sobre o mapa | |
| 108 | + | |
| 109 | + Type: | |
| 110 | + {String} | |
| 111 | + */ | |
| 112 | + funcaoTip: "verificaTipDefault()", | |
| 113 | + /* | |
| 114 | + Variable: diminuixM | |
| 115 | + | |
| 116 | + Diminui a largura do mapa em pixels no caso do navegador ser o IE. | |
| 117 | + Valores definidos em pixel. | |
| 118 | + */ | |
| 119 | + diminuixM: 20, | |
| 120 | + /* | |
| 121 | + Variable: diminuixN | |
| 122 | + | |
| 123 | + Diminui a largura do mapa em pixels no caso do navegador ser o FF. | |
| 124 | + Valores definidos em pixel. | |
| 125 | + */ | |
| 126 | + diminuixN: 25, | |
| 127 | + /* | |
| 128 | + Variable: diminuiyM | |
| 129 | + | |
| 130 | + Diminui a altura do mapa em pixels no caso do navegador ser o IE. | |
| 131 | + Valores definidos em pixel. | |
| 132 | + */ | |
| 133 | + diminuiyM: 106, | |
| 134 | + /* | |
| 135 | + Variable: diminuiyN | |
| 136 | + | |
| 137 | + Diminui a altura do mapa em pixels no caso do navegador ser o FF. | |
| 138 | + Valores definidos em pixel. | |
| 139 | + */ | |
| 140 | + diminuiyN: 103, | |
| 141 | + /* | |
| 142 | + Variable: map3d | |
| 143 | + | |
| 144 | + Variável que define o nome do map_file que possuí o layer para uso na função 3d. | |
| 145 | + Pode ser utilizado o caminho completo, se não, busca no diretório aplicmap. | |
| 146 | + | |
| 147 | + O mapfile deve conter um layer para cálculo dos valores de Z para compor o modelo do relevo | |
| 148 | + sobre o qual o mapa será desenhado. | |
| 149 | + | |
| 150 | + Por padrão, o i3geo utiliza o mapfile aplicmpa/3dmap.map | |
| 151 | + */ | |
| 152 | + map3d: "", | |
| 153 | + /* | |
| 154 | + Variable: embedLegenda | |
| 155 | + | |
| 156 | + Indica se a legenda deve ser incluida no corpo do mapa. | |
| 157 | + | |
| 158 | + Type: | |
| 159 | + {sim|nao} | |
| 160 | + */ | |
| 161 | + embedLegenda: "nao", | |
| 162 | + /* | |
| 163 | + Variable: templateLegenda | |
| 164 | + | |
| 165 | + Template HTML que será utilizado na geração da legenda HTML. | |
| 166 | + | |
| 167 | + A sintaxe utilizada na montagem do template é baseado na sintaxe do próprio Mapserver. | |
| 168 | + O HTML pode ser armazenado em i3geo/aplicmap ou em um outro endereço no servidor. | |
| 169 | + O template serve para definir o layout da legenda que é mostrada quando a guia legenda é ativada. | |
| 170 | + Se for definido como "", é utilizado o template i3geo/aplicmapa/legenda.htm. | |
| 171 | + */ | |
| 172 | + templateLegenda: "", | |
| 173 | + /* | |
| 39 | 174 | Variable: mashuppar |
| 40 | 175 | |
| 41 | 176 | Define os parâmetros que devem ser aplicados no modo mashup |
| ... | ... | @@ -197,5 +332,526 @@ i3GEO.configura = { |
| 197 | 332 | Type: |
| 198 | 333 | {sim|nao} |
| 199 | 334 | */ |
| 200 | - entorno: "nao" | |
| 335 | + entorno: "nao", | |
| 336 | + /* | |
| 337 | + Variable: funcoesBotoes | |
| 338 | + | |
| 339 | + Objeto com a lista de funcionalidades que serão adicionadas ao mapa. | |
| 340 | + | |
| 341 | + Essa lista pode ser modificada antes da inicialização do mapa. | |
| 342 | + | |
| 343 | + A montagem das operações é feita no iniciamma.js. | |
| 344 | + | |
| 345 | + As funcionalidades apenas são incluídas se o elemento HTML indicado em iddiv existir. Por isso, caso uma função não seja desejada, basta excluir o div do HTML utilizado no mapa. | |
| 346 | + | |
| 347 | + Type: | |
| 348 | + {JSON} | |
| 349 | + | |
| 350 | + Parâmetros: | |
| 351 | + | |
| 352 | + iddiv - id do elemento onde a ferramenta será incluída | |
| 353 | + | |
| 354 | + dica - dica de tela que será acrescentada ao evento onmouseover | |
| 355 | + | |
| 356 | + conteudo - conteudo de iddiv que será acrescentado como innerHTML | |
| 357 | + | |
| 358 | + funcaoonclick - funcao que será incluida no onclick | |
| 359 | + | |
| 360 | + constroiconteudo - função que ativará a opção. Essa opção atua como a opção conteúdo, porém, executa uma função para preenchimento do div. | |
| 361 | + | |
| 362 | + */ | |
| 363 | + funcoesBotoes: { | |
| 364 | + "botoes": [ | |
| 365 | + { | |
| 366 | + //Insere a opção de zoom anterior e posterior. | |
| 367 | + iddiv:"historicozoom", | |
| 368 | + tipo:"", | |
| 369 | + dica:$trad("d1"), | |
| 370 | + constroiconteudo:'i3GEO.gadgets.mostraHistoricoZoom()' | |
| 371 | + }, | |
| 372 | + { | |
| 373 | + //Ativa o botão que realiza a operação de zoom para a extensão total do mapa. | |
| 374 | + iddiv:"zoomtot", | |
| 375 | + tipo:"", | |
| 376 | + dica:$trad("d2"), | |
| 377 | + funcaoonclick:function(){ | |
| 378 | + i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,i3GEO.parametros.extentTotal); | |
| 379 | + marcadorZoom = ""; | |
| 380 | + } | |
| 381 | + }, | |
| 382 | + { | |
| 383 | + //Ativa o botão que realiza a operação de zoom interativo. | |
| 384 | + iddiv:"zoomli", | |
| 385 | + tipo:"dinamico", | |
| 386 | + dica:$trad("d3"), | |
| 387 | + funcaoonclick:function(){ | |
| 388 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
| 389 | + if(!$i("i3geoboxZoom")) | |
| 390 | + i3GEO.navega.zoomBox.criaBox(); | |
| 391 | + g_operacao='navega'; | |
| 392 | + g_tipoacao='zoomli'; | |
| 393 | + i3GEO.barraDeBotoes.ativaIcone("zoomli"); | |
| 394 | + marcadorZoom = ""; | |
| 395 | + if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()") < 0) | |
| 396 | + {i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()");} | |
| 397 | + } | |
| 398 | + }, | |
| 399 | + { | |
| 400 | + //Ativa o botão que realiza a operação de deslocamento (pan). | |
| 401 | + iddiv:"pan", | |
| 402 | + tipo:"dinamico", | |
| 403 | + dica:$trad("d4"), | |
| 404 | + funcaoonclick:function(){ | |
| 405 | + g_tipoacao='pan'; | |
| 406 | + g_operacao='navega'; | |
| 407 | + i3GEO.barraDeBotoes.ativaIcone("pan"); | |
| 408 | + if($i(i3GEO.interface.IDMAPA)){ | |
| 409 | + $i(i3GEO.interface.IDMAPA).title = ""; | |
| 410 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan",i3GEO.interface.IDMAPA,i3GEO.configura.locaplic); | |
| 411 | + } | |
| 412 | + marcadorZoom = ""; | |
| 413 | + panMapaInicia = function(){ | |
| 414 | + if ($i("img") && (g_tipoacao == "pan")){ | |
| 415 | + g_panM = "sim"; | |
| 416 | + if($i("corpoMapa")){ | |
| 417 | + leftinicial = parseInt($i(i3GEO.interface.IDCORPO).style.left); | |
| 418 | + topinicial = parseInt($i(i3GEO.interface.IDCORPO).style.top); | |
| 419 | + } | |
| 420 | + clicinicialx = objposicaocursor.imgx; | |
| 421 | + clicinicialy = objposicaocursor.imgy; | |
| 422 | + ddinicialx = objposicaocursor.ddx; | |
| 423 | + ddinicialy = objposicaocursor.ddy; | |
| 424 | + } | |
| 425 | + }; | |
| 426 | + panMapaDesloca = function(){ | |
| 427 | + if ($i(i3GEO.interface.IDMAPA) && (g_panM == "sim")){ | |
| 428 | + var nx = objposicaocursor.telax - leftinicial - clicinicialx; | |
| 429 | + var ny = objposicaocursor.telay - topinicial - clicinicialy; | |
| 430 | + if (i3GEO.configura.entorno == "nao"){ | |
| 431 | + var l = 0; | |
| 432 | + if (parseInt($i("i3geo").style.left)) | |
| 433 | + {var l = parseInt($i("i3geo").style.left);} | |
| 434 | + $i(i3GEO.interface.IDMAPA).style.left = nx - l; | |
| 435 | + var t = 0; | |
| 436 | + if (parseInt($i("i3geo").style.top)) | |
| 437 | + {var t = parseInt($i("i3geo").style.top);} | |
| 438 | + $i(i3GEO.interface.IDMAPA).style.top = ny - t; | |
| 439 | + } | |
| 440 | + else{ | |
| 441 | + $left("img",i3GEO.parametros.w*-1 + nx); | |
| 442 | + $left("imgS",i3GEO.parametros.w*-1 + nx); | |
| 443 | + $left("imgL",i3GEO.parametros.w + nx); | |
| 444 | + $left("imgO",i3GEO.parametros.w*-3 + nx); | |
| 445 | + $left("imgN",i3GEO.parametros.w*-1 + nx); | |
| 446 | + $top("img",i3GEO.parametros.h*-1 + ny); | |
| 447 | + $top("imgS",i3GEO.parametros.h*-1 + ny); | |
| 448 | + $top("imgL",i3GEO.parametros.h*-1 + ny); | |
| 449 | + $top("imgN",i3GEO.parametros.h*-1 + ny); | |
| 450 | + $top("imgO",i3GEO.parametros.h*-1 + ny); | |
| 451 | + } | |
| 452 | + } | |
| 453 | + }; | |
| 454 | + panMapaTermina = function(){ | |
| 455 | + if (g_tipoacao == "pan"){ | |
| 456 | + marcadorZoom = ""; | |
| 457 | + g_panM = "nao"; | |
| 458 | + var res = i3GEO.navega.xy2xy(i3GEO.configura.locaplic,i3GEO.configura.sid,ddinicialx,ddinicialy,objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.parametros.mapexten,i3GEO.configura.tipoimagem); | |
| 459 | + if(res == false){i3GEO.navega.zoompontoIMG(i3GEO.configura.locaplic,i3GEO.configura.sid,objposicaocursor.imgx,objposicaocursor.imgy)} | |
| 460 | + } | |
| 461 | + }; | |
| 462 | + if(i3GEO.eventos.MOUSEDOWN.toString().search("panMapaInicia()") < 0) | |
| 463 | + {i3GEO.eventos.MOUSEDOWN.push("panMapaInicia()");} | |
| 464 | + if(i3GEO.eventos.MOUSEMOVE.toString().search("panMapaDesloca()") < 0) | |
| 465 | + {i3GEO.eventos.MOUSEMOVE.push("panMapaDesloca()");} | |
| 466 | + if(i3GEO.eventos.MOUSEUP.toString().search("panMapaTermina()") < 0) | |
| 467 | + {i3GEO.eventos.MOUSEUP.push("panMapaTermina()");} | |
| 468 | + } | |
| 469 | + }, | |
| 470 | + { | |
| 471 | + //botão que realiza a operação de zoom in. | |
| 472 | + iddiv:"zoomiauto", | |
| 473 | + tipo:"", | |
| 474 | + dica:$trad("d5"), | |
| 475 | + funcaoonclick:function(){ | |
| 476 | + i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid); | |
| 477 | + marcadorZoom = ""; | |
| 478 | + } | |
| 479 | + }, | |
| 480 | + { | |
| 481 | + //botão que realiza a operação de zoom out | |
| 482 | + iddiv:"zoomoauto", | |
| 483 | + tipo:"", | |
| 484 | + dica:$trad("d6"), | |
| 485 | + funcaoonclick:function(){ | |
| 486 | + i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid); | |
| 487 | + marcadorZoom = ""; | |
| 488 | + } | |
| 489 | + }, | |
| 490 | + { | |
| 491 | + //botão que abre a função de identificação. | |
| 492 | + iddiv:"identifica", | |
| 493 | + tipo:"dinamico", | |
| 494 | + dica:$trad("d7"), | |
| 495 | + funcaoonclick:function() | |
| 496 | + { | |
| 497 | + if($i("img")){ | |
| 498 | + $i("img").title = ""; | |
| 499 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic); | |
| 500 | + } | |
| 501 | + i3GEO.barraDeBotoes.ativaIcone("identifica"); | |
| 502 | + g_tipoacao='identifica'; | |
| 503 | + g_operacao='identifica'; | |
| 504 | + cliqueIdentifica = function(){ | |
| 505 | + if (g_tipoacao == "identifica"){ | |
| 506 | + i3GEO.eventos.MOUSEPARADO.remove("verificaTip()"); | |
| 507 | + var janela = i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/identifica/index.htm?&x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy+'&escala='+i3GEO.parametros.mapscale,"","","Identifica"); | |
| 508 | + var temp = function(){ | |
| 509 | + i3GEO.eventos.MOUSECLIQUE.remove("cliqueIdentifica()"); | |
| 510 | + i3GEO.barraDeBotoes.ativaBotoes(); | |
| 511 | + }; | |
| 512 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | |
| 513 | + } | |
| 514 | + }; | |
| 515 | + verificaTip = function(){ | |
| 516 | + if (g_operacao != "identifica"){return;} | |
| 517 | + //funcao default para pegar os dados | |
| 518 | + verificaTipDefault = function(){ | |
| 519 | + var retorna = function(retorno){ | |
| 520 | + var i = $i("i3geo_rosa"); | |
| 521 | + if(i){i.style.display="none";} | |
| 522 | + var mostra = false; | |
| 523 | + try{ | |
| 524 | + var retorno = retorno.data; | |
| 525 | + if ($i("img")) | |
| 526 | + {$i("img").title = "";} | |
| 527 | + if (retorno != ""){ | |
| 528 | + var res = ""; | |
| 529 | + var temas = retorno.split("!"); | |
| 530 | + var tema = temas.length-1; | |
| 531 | + if(tema >= 0){ | |
| 532 | + do{ | |
| 533 | + var titulo = temas[tema].split("@"); | |
| 534 | + if (i3GEO.configura.tipotip == "completo" || i3GEO.configura.tipotip == "balao") | |
| 535 | + {res += "<span style='text-align:left;font-size:9pt'><b>"+titulo[0]+"</b></span><br>";} | |
| 536 | + var ocorrencias = titulo[1].split("*"); | |
| 537 | + var ocorrencia = ocorrencias.length-1; | |
| 538 | + if(ocorrencia >= 0){ | |
| 539 | + do{ | |
| 540 | + if (ocorrencias[ocorrencia] != ""){ | |
| 541 | + var pares = ocorrencias[ocorrencia].split("##"); | |
| 542 | + var paresi = pares.length; | |
| 543 | + for (var par=0;par<paresi; par++){ | |
| 544 | + var valores = pares[par].split("#"); | |
| 545 | + if (i3GEO.configura.tipotip == "completo" || i3GEO.configura.tipotip == "balao"){ | |
| 546 | + res = res + "<span class='tiptexto' style='text-align:left;font-size:9pt'>" + valores[0] + " <i>" + valores[1] + "</i></span><br>"; | |
| 547 | + var mostra = true; | |
| 548 | + } | |
| 549 | + else{ | |
| 550 | + res = res + "<span class='tiptexto' style='text-align:left;font-size:9pt'><i>" + valores[1] + "</i></span><br>"; | |
| 551 | + var mostra = true; | |
| 552 | + } | |
| 553 | + } | |
| 554 | + } | |
| 555 | + } | |
| 556 | + while(ocorrencia--) | |
| 557 | + } | |
| 558 | + } | |
| 559 | + while(tema--) | |
| 560 | + } | |
| 561 | + if(!mostra){$i("tip").style.display="none";return;} | |
| 562 | + else{ | |
| 563 | + if(i3GEO.configura.tipotip != "balao"){ | |
| 564 | + var n = i3GEO.janela.tip(); | |
| 565 | + $i(n).style.textAlign="left"; | |
| 566 | + $i(n).innerHTML += res; | |
| 567 | + } | |
| 568 | + else{ | |
| 569 | + var n = i3GEO.janela.tip("<img src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />"); | |
| 570 | + balloon = new Balloon; | |
| 571 | + balloon.delayTime = 0; | |
| 572 | + var res = "<div style=text-align:left >"+res+"</div>"; | |
| 573 | + $i(n+"cabecatip").onmouseover = function(evt){balloon.showTooltip(evt,res);}; | |
| 574 | + } | |
| 575 | + } | |
| 576 | + } | |
| 577 | + } | |
| 578 | + catch(e){} | |
| 579 | + }; | |
| 580 | + i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5"); | |
| 581 | + }; | |
| 582 | + if (g_operacao == "identifica"){ | |
| 583 | + eval(i3GEO.configura.funcaoTip); | |
| 584 | + } | |
| 585 | + }; | |
| 586 | + if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()") < 0) | |
| 587 | + {i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()");} | |
| 588 | + if(i3GEO.eventos.MOUSEPARADO.toString().search("verificaTip()") < 0) | |
| 589 | + {i3GEO.eventos.MOUSEPARADO.push("verificaTip()");} | |
| 590 | + } | |
| 591 | + }, | |
| 592 | + { | |
| 593 | + //botão que abre a janela com o valor da extensão geográfica do mapa atual | |
| 594 | + iddiv:"exten", | |
| 595 | + tipo:"", | |
| 596 | + dica:$trad("d8"), | |
| 597 | + funcaoonclick:function() | |
| 598 | + {i3GEO.janela.cria("450px","340px",i3GEO.configura.locaplic+"/ferramentas/mostraexten/index.htm","","","Extensão geográfica");} | |
| 599 | + }, | |
| 600 | + { | |
| 601 | + //botão que abre a janela com o mapa de referência | |
| 602 | + iddiv:"referencia", | |
| 603 | + tipo:"", | |
| 604 | + dica:$trad("d9"), | |
| 605 | + funcaoonclick:function() | |
| 606 | + {i3GEO.maparef.inicia();} | |
| 607 | + }, | |
| 608 | + { | |
| 609 | + //botão de busca na wikipedia | |
| 610 | + iddiv:"wiki", | |
| 611 | + tipo:"", | |
| 612 | + dica:$trad("d11"), | |
| 613 | + funcaoonclick:function(){ | |
| 614 | + g_operacao = "navega"; | |
| 615 | + i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki"); | |
| 616 | + atualizawiki = function(){ | |
| 617 | + var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | |
| 618 | + if (docel.getElementById("resultadowiki")) | |
| 619 | + {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm";} | |
| 620 | + else | |
| 621 | + {i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()");} | |
| 622 | + }; | |
| 623 | + if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizawiki()") < 0) | |
| 624 | + {i3GEO.eventos.NAVEGAMAPA.push("atualizawiki()");} | |
| 625 | + } | |
| 626 | + }, | |
| 627 | + { | |
| 628 | + //botão de busca de fotos | |
| 629 | + iddiv:"buscafotos", | |
| 630 | + tipo:"", | |
| 631 | + dica:"Fotos", | |
| 632 | + funcaoonclick:function(){ | |
| 633 | + g_operacao = "navega"; | |
| 634 | + i3GEO.janela.cria("550px","400px",i3GEO.configura.locaplic+"/ferramentas/buscafotos/index.htm","","","Fotos"); | |
| 635 | + i3GEO.util.criaPin(); | |
| 636 | + } | |
| 637 | + }, | |
| 638 | + { | |
| 639 | + //botão de impressão | |
| 640 | + iddiv:"imprimir", | |
| 641 | + tipo:"", | |
| 642 | + dica:$trad("d12"), | |
| 643 | + funcaoonclick:function() | |
| 644 | + {i3GEO.janela.cria("320px","180px",i3GEO.configura.locaplic+"/ferramentas/imprimir/index.htm","","","Imprimir");} | |
| 645 | + }, | |
| 646 | + { | |
| 647 | + //botão de localização do usuário pelo IP | |
| 648 | + iddiv:"ondeestou", | |
| 649 | + tipo:"", | |
| 650 | + dica:$trad("d13"), | |
| 651 | + funcaoonclick:function() | |
| 652 | + {i3GEO.navega.zoomIP(i3GEO.configura.locaplic,i3GEO.configura.sid);} | |
| 653 | + }, | |
| 654 | + { | |
| 655 | + //abre a opção de geração de um modelo virtual de elevação | |
| 656 | + iddiv:"v3d", | |
| 657 | + tipo:"", | |
| 658 | + dica:$trad("d14"), | |
| 659 | + funcaoonclick:function() | |
| 660 | + {i3GEO.janela.cria("400px","200px",i3GEO.configura.locaplic+"/ferramentas/3d/index.htm","","","3d");} | |
| 661 | + }, | |
| 662 | + { | |
| 663 | + //Ativa o botão que realiza a operação de de busca no Google | |
| 664 | + iddiv:"google", | |
| 665 | + tipo:"", | |
| 666 | + dica:$trad("d15"), | |
| 667 | + funcaoonclick:function(){ | |
| 668 | + i3GEO.util.criaBox(); | |
| 669 | + g_operacao = "navega"; | |
| 670 | + if(navn){i3GEO.janela.cria((i3GEO.parametros.w/2)+40+"px",(i3GEO.parametros.h/2)+50+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} | |
| 671 | + else | |
| 672 | + {i3GEO.janela.cria("500px","380px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} | |
| 673 | + atualizagoogle = function(){ | |
| 674 | + try{ | |
| 675 | + if (navn){ | |
| 676 | + if ($i("wdocai")) | |
| 677 | + {var doc = $i("wdocai").contentDocument;} | |
| 678 | + } | |
| 679 | + else{ | |
| 680 | + if(document.frames("wdocai")) | |
| 681 | + {var doc = document.frames("wdocai").document;} | |
| 682 | + } | |
| 683 | + if(window.parent.frames["wdocai"].panTogoogle) | |
| 684 | + {window.parent.frames["wdocai"].panTogoogle();} | |
| 685 | + else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()");} | |
| 686 | + | |
| 687 | + } | |
| 688 | + catch(e){} | |
| 689 | + }; | |
| 690 | + if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()") < 0) | |
| 691 | + {i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()");} | |
| 692 | + } | |
| 693 | + }, | |
| 694 | + { | |
| 695 | + //Ativa o botão que realiza a operação de de busca no site Scielo | |
| 696 | + iddiv:"scielo", | |
| 697 | + tipo:"", | |
| 698 | + dica:$trad("d16"), | |
| 699 | + funcaoonclick:function(){ | |
| 700 | + g_operacao = "navega"; | |
| 701 | + i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm","","","Scielo"); | |
| 702 | + atualizascielo = function(){ | |
| 703 | + try{ | |
| 704 | + var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | |
| 705 | + if (docel.getElementById("resultadoscielo")) | |
| 706 | + {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm";} | |
| 707 | + else | |
| 708 | + {i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()");} | |
| 709 | + } | |
| 710 | + catch(e){} | |
| 711 | + }; | |
| 712 | + if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()") < 0) | |
| 713 | + {i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()");} | |
| 714 | + } | |
| 715 | + }, | |
| 716 | + { | |
| 717 | + //Ativa o botão que realiza a operação de de busca no site confluence | |
| 718 | + iddiv:"confluence", | |
| 719 | + tipo:"", | |
| 720 | + dica:$trad("d17"), | |
| 721 | + funcaoonclick:function(){ | |
| 722 | + g_operacao = "navega"; | |
| 723 | + i3GEO.janela.cria("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","confluence"); | |
| 724 | + i3GEO.util.criaBox(); | |
| 725 | + atualizaconfluence = function(){ | |
| 726 | + var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | |
| 727 | + if (docel.getElementById("resultadoconfluence")) | |
| 728 | + {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm";} | |
| 729 | + else | |
| 730 | + {i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()")} | |
| 731 | + }; | |
| 732 | + if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaconfluence()") < 0) | |
| 733 | + {i3GEO.eventos.NAVEGAMAPA.push("atualizaconfluence()");} | |
| 734 | + } | |
| 735 | + }, | |
| 736 | + { | |
| 737 | + //Ativa o botão que abre a lente de aumento | |
| 738 | + iddiv:"lentei", | |
| 739 | + tipo:"", | |
| 740 | + dica:$trad("d18"), | |
| 741 | + funcaoonclick:function() | |
| 742 | + { | |
| 743 | + if (i3GEO.navega.lente.ESTAATIVA == "nao"){ | |
| 744 | + i3GEO.navega.lente.inicia();} | |
| 745 | + else | |
| 746 | + i3GEO.navega.lente.desativa(); | |
| 747 | + } | |
| 748 | + }, | |
| 749 | + { | |
| 750 | + //Coloca as guias em uma janela móvel | |
| 751 | + iddiv:"encolheFerramentas", | |
| 752 | + tipo:"", | |
| 753 | + dica:$trad("d19"), | |
| 754 | + funcaoonclick:function() | |
| 755 | + {docaguias();} | |
| 756 | + }, | |
| 757 | + { | |
| 758 | + //botão de reinicialização do mapa que restaura as condições iniciais do mapa | |
| 759 | + iddiv:"reinicia", | |
| 760 | + tipo:"", | |
| 761 | + dica:$trad("d20"), | |
| 762 | + funcaoonclick:function(){ | |
| 763 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 764 | + i3GEO.php.reiniciaMapa(i3GEO.atualiza); | |
| 765 | + } | |
| 766 | + }, | |
| 767 | + { | |
| 768 | + //botão de medição de distâncias | |
| 769 | + iddiv:"mede", | |
| 770 | + tipo:"dinamico", | |
| 771 | + dica:$trad("d21"), | |
| 772 | + funcaoonclick:function(){ | |
| 773 | + i3GEO.barraDeBotoes.ativaIcone("mede"); | |
| 774 | + if($i("img")){ | |
| 775 | + $i("img").title = ""; | |
| 776 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"distancia","img",i3GEO.configura.locaplic); | |
| 777 | + } | |
| 778 | + g_tipoacao = ""; | |
| 779 | + i3GEO.analise.medeDistancia.inicia(); | |
| 780 | + } | |
| 781 | + }, | |
| 782 | + { | |
| 783 | + //botão de medição de área | |
| 784 | + iddiv:"area", | |
| 785 | + tipo:"dinamico", | |
| 786 | + dica:$trad("d21a"), | |
| 787 | + funcaoonclick:function(){ | |
| 788 | + i3GEO.barraDeBotoes.ativaIcone("area"); | |
| 789 | + if($i("img")){ | |
| 790 | + $i("img").title = ""; | |
| 791 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"area","img",i3GEO.configura.locaplic); | |
| 792 | + } | |
| 793 | + g_tipoacao = ""; | |
| 794 | + i3GEO.analise.medeArea.inicia(); | |
| 795 | + } | |
| 796 | + }, | |
| 797 | + { | |
| 798 | + //botão de digitalização | |
| 799 | + iddiv:"inserexy", | |
| 800 | + tipo:"dinamico", | |
| 801 | + dica:$trad("d22"), | |
| 802 | + funcaoonclick:function(){ | |
| 803 | + i3GEO.barraDeBotoes.ativaIcone("inserexy"); | |
| 804 | + g_tipoacao = ""; | |
| 805 | + i3GEO.mapa.dialogo.cliquePonto(); | |
| 806 | + if($i("img")){ | |
| 807 | + $i("img").title = "clique para inserir um ponto"; | |
| 808 | + $i("img").style.cursor="crosshair"; | |
| 809 | + } | |
| 810 | + } | |
| 811 | + }, | |
| 812 | + { | |
| 813 | + //botão de inclusão de gráficos | |
| 814 | + iddiv:"inseregrafico", | |
| 815 | + tipo:"dinamico", | |
| 816 | + dica:$trad("d23"), | |
| 817 | + funcaoonclick:function(){ | |
| 818 | + i3GEO.barraDeBotoes.ativaIcone("inseregrafico"); | |
| 819 | + g_tipoacao = ""; | |
| 820 | + i3GEO.mapa.dialogo.cliqueGrafico(); | |
| 821 | + if($i("img")){ | |
| 822 | + $i("img").title = "clique para incluir o gráfico"; | |
| 823 | + $i("img").style.cursor="pointer"; | |
| 824 | + } | |
| 825 | + } | |
| 826 | + }, | |
| 827 | + { | |
| 828 | + //botão de seleção | |
| 829 | + iddiv:"selecao", | |
| 830 | + tipo:"dinamico", | |
| 831 | + dica:$trad("d24"), | |
| 832 | + funcaoonclick:function(){ | |
| 833 | + i3GEO.barraDeBotoes.ativaIcone("selecao"); | |
| 834 | + i3GEO.selecao.janelaOpcoes(); | |
| 835 | + if($i("img")){ | |
| 836 | + $i("img").title = ""; | |
| 837 | + $i("img").style.cursor="pointer"; | |
| 838 | + } | |
| 839 | + } | |
| 840 | + }, | |
| 841 | + { | |
| 842 | + //botão de inserção de toponímia | |
| 843 | + iddiv:"textofid", | |
| 844 | + tipo:"dinamico", | |
| 845 | + dica:$trad("d25"), | |
| 846 | + funcaoonclick:function(){ | |
| 847 | + i3GEO.barraDeBotoes.ativaIcone("textofid"); | |
| 848 | + g_tipoacao = ""; | |
| 849 | + i3GEO.mapa.dialogo.cliqueTexto(); | |
| 850 | + if($i("img")){ | |
| 851 | + $i("img").title = "clique para inserir o texto"; | |
| 852 | + $i("img").style.cursor="pointer"; | |
| 853 | + } | |
| 854 | + } | |
| 855 | + } | |
| 856 | + ]} | |
| 201 | 857 | }; |
| 202 | 858 | \ No newline at end of file | ... | ... |
classesjs/classe_eventos.js
| ... | ... | @@ -282,8 +282,8 @@ i3GEO.eventos = { |
| 282 | 282 | if (e.target) |
| 283 | 283 | {var targ = e.target;} |
| 284 | 284 | else if (e.srcElement) var targ = e.srcElement; |
| 285 | - if(targ.id == "" && $i("img")) | |
| 286 | - {var targ = $i("img");} | |
| 285 | + if(targ.id == "" && $i(i3GEO.interface.IDMAPA)) | |
| 286 | + {var targ = $i(i3GEO.interface.IDMAPA);} | |
| 287 | 287 | // |
| 288 | 288 | //se estiver no modo pan, o movimento deve ser obtido do elemento |
| 289 | 289 | //onde está a imagem do mapa e não diretamente sobre o elemento 'img' | ... | ... |
classesjs/classe_gadgets.js
| ... | ... | @@ -158,8 +158,8 @@ i3GEO.gadgets = { |
| 158 | 158 | } |
| 159 | 159 | catch(m){}; |
| 160 | 160 | }; |
| 161 | - if($i("img")) | |
| 162 | - {YAHOO.util.Event.addListener($i("img"),"mousemove", atualizaLocalizarxy);} | |
| 161 | + if($i(i3GEO.interface.IDMAPA)) | |
| 162 | + {YAHOO.util.Event.addListener($i(i3GEO.interface.IDMAPA),"mousemove", atualizaLocalizarxy);} | |
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | 165 | } |
| ... | ... | @@ -679,7 +679,7 @@ i3GEO.gadgets = { |
| 679 | 679 | |
| 680 | 680 | O objeto YAHOO.widget.MenuBar resultante pode ser obtido na variável i3GEOoMenuBar |
| 681 | 681 | |
| 682 | - O conteúdo do menu é baseado na variável oMenuData | |
| 682 | + O conteúdo do menu é baseado na variável i3GEO.configura.oMenuData | |
| 683 | 683 | |
| 684 | 684 | Parameters: |
| 685 | 685 | |
| ... | ... | @@ -694,7 +694,7 @@ i3GEO.gadgets = { |
| 694 | 694 | var objid = $i(id); |
| 695 | 695 | if(objid){ |
| 696 | 696 | objid.className="yuimenubar"; |
| 697 | - if(oMenuData.ajudas){ | |
| 697 | + if(i3GEO.configura.oMenuData.ajudas){ | |
| 698 | 698 | var ins = ""; |
| 699 | 699 | ins += '<div class="bd" style="align:right;border: 0px solid white;z-index:6000;line-height:1.4" >'; |
| 700 | 700 | ins += '<ul class="first-of-type" style="border:0px solid white;top:10px;">'; |
| ... | ... | @@ -713,8 +713,8 @@ i3GEO.gadgets = { |
| 713 | 713 | {var conta = 0;} |
| 714 | 714 | else |
| 715 | 715 | {var conta = 0;} |
| 716 | - for(var nomeMenu in oMenuData){ | |
| 717 | - i3GEOoMenuBar.getItem(conta).cfg.setProperty('submenu',{id:nomeMenu,itemdata: oMenuData[nomeMenu]}); | |
| 716 | + for(var nomeMenu in i3GEO.configura.oMenuData){ | |
| 717 | + i3GEOoMenuBar.getItem(conta).cfg.setProperty('submenu',{id:nomeMenu,itemdata: i3GEO.configura.oMenuData[nomeMenu]}); | |
| 718 | 718 | var conta=conta+1; |
| 719 | 719 | } |
| 720 | 720 | } | ... | ... |
classesjs/classe_i3geo.js
| ... | ... | @@ -127,8 +127,8 @@ i3GEO = { |
| 127 | 127 | catch(e){g_locaplic = i3GEO.configura.locaplic;}; |
| 128 | 128 | // |
| 129 | 129 | //calcula o tamanho do mapa |
| 130 | - var diminuix = (navm) ? g_diminuixM : g_diminuixN; | |
| 131 | - var diminuiy = (navm) ? g_diminuiyM : g_diminuiyN; | |
| 130 | + var diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN; | |
| 131 | + var diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN; | |
| 132 | 132 | if (e == undefined){ |
| 133 | 133 | var menos = 0; |
| 134 | 134 | if ($i("contemFerramentas")) |
| ... | ... | @@ -312,7 +312,7 @@ i3GEO = { |
| 312 | 312 | else{ |
| 313 | 313 | //YAHOO.log("Chamada AJAX para obter o mapa inicial", "i3geo"); |
| 314 | 314 | i3GEO.janela.abreAguarde("montaMapa",$trad("o5")); |
| 315 | - i3GEO.php.inicia(montaMapa,g_embedLegenda,i3GEO.parametros.w,i3GEO.parametros.h); | |
| 315 | + i3GEO.php.inicia(montaMapa,i3GEO.configura.embedLegenda,i3GEO.parametros.w,i3GEO.parametros.h); | |
| 316 | 316 | } |
| 317 | 317 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.fechaAguarde()") < 0) |
| 318 | 318 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.fechaAguarde()");} |
| ... | ... | @@ -336,7 +336,7 @@ i3GEO = { |
| 336 | 336 | if(arguments.length == 0 || retorno == ""){ |
| 337 | 337 | var legimagem = ""; |
| 338 | 338 | i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1")); |
| 339 | - i3GEO.php.corpo(i3GEO.atualiza,g_tipoimagem); | |
| 339 | + i3GEO.php.corpo(i3GEO.atualiza,i3GEO.configura.tipoimagem); | |
| 340 | 340 | } |
| 341 | 341 | else{ |
| 342 | 342 | if(arguments.length == 0){return;} | ... | ... |
classesjs/classe_interface.js
| ... | ... | @@ -91,11 +91,18 @@ i3GEO.interface = { |
| 91 | 91 | Function: inicia |
| 92 | 92 | |
| 93 | 93 | Inicia a interface |
| 94 | - | |
| 95 | 94 | */ |
| 96 | 95 | inicia: function(w,h){ |
| 97 | 96 | eval("i3GEO.interface."+i3GEO.interface.ATUAL+".inicia()"); |
| 98 | 97 | }, |
| 98 | + /* | |
| 99 | + Function: ativaBotoes | |
| 100 | + | |
| 101 | + Ativa os botões de ferramentas | |
| 102 | + */ | |
| 103 | + ativaBotoes: function(){ | |
| 104 | + eval("i3GEO.interface."+i3GEO.interface.ATUAL+".ativaBotoes()"); | |
| 105 | + }, | |
| 99 | 106 | padrao:{ |
| 100 | 107 | redesenha:function(){ |
| 101 | 108 | $i("img").onload = function() |
| ... | ... | @@ -169,9 +176,15 @@ i3GEO.interface = { |
| 169 | 176 | i3GEO.gadgets.visual.inicia(); |
| 170 | 177 | i3GEO.idioma.mostraSeletor(); |
| 171 | 178 | i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens); |
| 172 | - // | |
| 173 | - //inicia as barras de ferramentas | |
| 174 | - // | |
| 179 | + i3GEO.interface.padrao.ativaBotoes(); | |
| 180 | + i3GEO.maparef.atualiza(); | |
| 181 | + if (i3GEO.configura.mapaRefDisplay != "none") | |
| 182 | + { | |
| 183 | + if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");} | |
| 184 | + if (i3GEO.configura.mapaRefDisplay == "block"){i3GEO.maparef.inicia();} | |
| 185 | + } | |
| 186 | + }, | |
| 187 | + ativaBotoes: function(){ | |
| 175 | 188 | var imagemxy = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO)); |
| 176 | 189 | if ($i("barraDeBotoes1")){ |
| 177 | 190 | var x1 = imagemxy[0]+40; |
| ... | ... | @@ -195,13 +208,7 @@ i3GEO.interface = { |
| 195 | 208 | i3GEO.barraDeBotoes.ativaBotoes(); |
| 196 | 209 | if (document.getElementById("botao3d")) |
| 197 | 210 | { |
| 198 | - if (g_3dmap == ""){document.getElementById("botao3d").style.display="none";} | |
| 199 | - } | |
| 200 | - i3GEO.maparef.atualiza(); | |
| 201 | - if (i3GEO.configura.mapaRefDisplay != "none") | |
| 202 | - { | |
| 203 | - if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");} | |
| 204 | - if (i3GEO.configura.mapaRefDisplay == "block"){i3GEO.maparef.inicia();} | |
| 211 | + if (i3GEO.configura.map3d == ""){document.getElementById("botao3d").style.display="none";} | |
| 205 | 212 | } |
| 206 | 213 | } |
| 207 | 214 | }, |
| ... | ... | @@ -252,6 +259,8 @@ i3GEO.interface = { |
| 252 | 259 | if (i3GEO.configura.mapaRefDisplay == "block"){i3GEO.maparef.inicia();} |
| 253 | 260 | } |
| 254 | 261 | |
| 262 | + }, | |
| 263 | + ativaBotoes: function(){ | |
| 255 | 264 | } |
| 256 | 265 | }, |
| 257 | 266 | /* |
| ... | ... | @@ -376,20 +385,24 @@ i3GEO.interface = { |
| 376 | 385 | } |
| 377 | 386 | }; |
| 378 | 387 | i3GEO.php.openlayers(montaMapa); |
| 388 | + }, | |
| 389 | + ativaBotoes: function(){ | |
| 379 | 390 | } |
| 380 | 391 | }, |
| 381 | 392 | /* |
| 382 | 393 | Function: googlemaps |
| 383 | 394 | |
| 384 | 395 | Interface baseada no software googlemaps |
| 396 | + | |
| 397 | + O objeto criado com a API do google maps pode ser acessado na variável i3GeoMap | |
| 385 | 398 | */ |
| 386 | 399 | googlemaps:{ |
| 387 | 400 | redesenha: function(){ |
| 388 | - if(map != ""){ | |
| 389 | - map.removeOverlay(wmsmap); | |
| 401 | + if(i3GeoMap != ""){ | |
| 402 | + i3GeoMap.removeOverlay(wmsmap); | |
| 390 | 403 | posfixo = posfixo + "&"; |
| 391 | - wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS()+posfixo, map.getBounds()); | |
| 392 | - map.addOverlay(wmsmap); | |
| 404 | + wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS()+posfixo, i3GeoMap.getBounds()); | |
| 405 | + i3GeoMap.addOverlay(wmsmap); | |
| 393 | 406 | } |
| 394 | 407 | }, |
| 395 | 408 | cria: function(w,h){ |
| ... | ... | @@ -405,7 +418,7 @@ i3GEO.interface = { |
| 405 | 418 | f.style.width = w; |
| 406 | 419 | f.style.height = h; |
| 407 | 420 | } |
| 408 | - map = ""; | |
| 421 | + i3GeoMap = ""; | |
| 409 | 422 | i3GEO.interface.IDMAPA = "googlemaps"; |
| 410 | 423 | }, |
| 411 | 424 | inicia: function(){ |
| ... | ... | @@ -413,27 +426,31 @@ i3GEO.interface = { |
| 413 | 426 | var ret = pol.split(" "); |
| 414 | 427 | var pt1 = (( (ret[0] * -1) - (ret[2] * -1) ) / 2) + ret[0] *1; |
| 415 | 428 | var pt2 = (((ret[1] - ret[3]) / 2)* -1) + ret[1] *1; |
| 416 | - map = new GMap2($i("googlemaps")); | |
| 417 | - map.setMapType(G_SATELLITE_MAP); | |
| 418 | - map.addControl(new GLargeMapControl()); | |
| 419 | - map.addControl(new GMapTypeControl()); | |
| 420 | - map.addControl(new GScaleControl()); | |
| 421 | - map.setCenter(new GLatLng(pt2,pt1), 8); | |
| 422 | - wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(), map.getBounds()); | |
| 423 | - map.addOverlay(wmsmap); | |
| 424 | - GEvent.addListener(map, "zoomend", function() { | |
| 425 | - map.removeOverlay(wmsmap); | |
| 426 | - wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(), map.getBounds()); | |
| 427 | - map.addOverlay(wmsmap); | |
| 429 | + i3GeoMap = new GMap2($i("googlemaps")); | |
| 430 | + i3GeoMap.setMapType(G_SATELLITE_MAP); | |
| 431 | + i3GeoMap.addControl(new GLargeMapControl()); | |
| 432 | + i3GeoMap.addControl(new GMapTypeControl()); | |
| 433 | + i3GeoMap.addControl(new GScaleControl()); | |
| 434 | + i3GeoMap.setCenter(new GLatLng(pt2,pt1), 8); | |
| 435 | + wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(), i3GeoMap.getBounds()); | |
| 436 | + i3GeoMap.addOverlay(wmsmap); | |
| 437 | + GEvent.addListener(i3GeoMap, "zoomend", function() { | |
| 438 | + i3GeoMap.removeOverlay(wmsmap); | |
| 439 | + wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(), i3GeoMap.getBounds()); | |
| 440 | + i3GeoMap.addOverlay(wmsmap); | |
| 428 | 441 | }); |
| 429 | - GEvent.addListener(map, "dragend", function() { | |
| 430 | - map.removeOverlay(wmsmap); | |
| 431 | - wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(), map.getBounds()); | |
| 432 | - map.addOverlay(wmsmap); | |
| 442 | + GEvent.addListener(i3GeoMap, "dragend", function() { | |
| 443 | + i3GeoMap.removeOverlay(wmsmap); | |
| 444 | + wmsmap = new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(), i3GeoMap.getBounds()); | |
| 445 | + i3GeoMap.addOverlay(wmsmap); | |
| 433 | 446 | }); |
| 447 | + i3GEO.interface.googlemaps.ativaBotoes(); | |
| 448 | + i3GEO.eventos.ativa($i("googlemaps")); | |
| 449 | + i3GEO.gadgets.mostraCoordenadasGEO(); | |
| 450 | + i3GEO.gadgets.mostraMenuSuspenso(); | |
| 434 | 451 | }, |
| 435 | 452 | bbox: function(){ |
| 436 | - var bd = map.getBounds(); | |
| 453 | + var bd = i3GeoMap.getBounds(); | |
| 437 | 454 | var so = bd.getSouthWest(); |
| 438 | 455 | var ne = bd.getNorthEast(); |
| 439 | 456 | var bbox = so.lng()+" "+so.lat()+" "+ne.lng()+" "+ne.lat(); |
| ... | ... | @@ -446,6 +463,45 @@ i3GEO.interface = { |
| 446 | 463 | parametros += "&mapext="+i3GEO.interface.googlemaps.bbox(); |
| 447 | 464 | parametros += "&map_imagecolor=-1 -1 -1&map_transparent=on"; |
| 448 | 465 | return(cgi+parametros); |
| 466 | + }, | |
| 467 | + ativaBotoes: function(){ | |
| 468 | + var imagemxy = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO)); | |
| 469 | + if ($i("barraDeBotoes2")){ | |
| 470 | + var x2 = imagemxy[0]+80; | |
| 471 | + var y2 = imagemxy[1]+10; | |
| 472 | + } | |
| 473 | + if ($i("barraDeBotoes2")) | |
| 474 | + i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2); | |
| 475 | + //ativa as funções dos botões | |
| 476 | + i3GEO.barraDeBotoes.ativaBotoes(); | |
| 477 | + } | |
| 478 | + }, | |
| 479 | + /* | |
| 480 | + Function: googleearth | |
| 481 | + | |
| 482 | + Interface baseada no software googlemaps | |
| 483 | + | |
| 484 | + O objeto criado com a API do google maps pode ser acessado na variável i3GeoMap | |
| 485 | + */ | |
| 486 | + googleearth:{ | |
| 487 | + redesenha: function(){ | |
| 488 | + }, | |
| 489 | + cria: function(w,h){ | |
| 490 | + var i = $i(i3GEO.interface.IDCORPO); | |
| 491 | + if(i){ | |
| 492 | + i3GeoMap = document.createElement("iframe"); | |
| 493 | + i3GeoMap.style.width = w; | |
| 494 | + i3GeoMap.style.height = h; | |
| 495 | + i.appendChild(i3GeoMap); | |
| 496 | + } | |
| 497 | + i3GEO.interface.IDMAPA = "googleearth"; | |
| 498 | + }, | |
| 499 | + inicia: function(){ | |
| 500 | + //http://mapas.mma.gov.br/i3geo/pacotes/kmlmapserver/kmlservice.php?map=bioma&typename=bioma&request=kml | |
| 501 | + i3GeoMap.src = "http://www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/114026893455619160549/embedkmlgadget.xml&up_kml_url=http%3A%2F%2Fmapas.mma.gov.br%2Fi3geo%2Fpacotes%2Fkmlmapserver%2Fkmlservice.php%3Fmap%3Dbioma%26typename%3Dbioma%26request%3Dkml&up_view_mode=earth&up_earth_2d_fallback=0&up_earth_fly_from_space=1&up_earth_show_buildings=0&synd=open&w=320&h=400&title=Embedded+KML+Viewer&border=%23ffffff%7C3px%2C1px+solid+%23999999&source=http%3A%2F%2Fwww.gmodules.com%2Fig%2Fcreator%3Fsynd%3Dopen%26url%3Dhttp%3A%2F%2Fhosting.gmodules.com%2Fig%2Fgadgets%2Ffile%2F114026893455619160549%2Fembedkmlgadget.xml"; | |
| 502 | + | |
| 503 | + }, | |
| 504 | + ativaBotoes: function(){ | |
| 449 | 505 | } |
| 450 | 506 | } |
| 451 | -} | |
| 452 | 507 | \ No newline at end of file |
| 508 | +} | ... | ... |
classesjs/classe_mapa.js
| ... | ... | @@ -325,7 +325,7 @@ i3GEO.mapa = { |
| 325 | 325 | funcao {function} - função que receberá o resultado da chamada AJAX. O objeto CPAINT é enviado como parâmetro. |
| 326 | 326 | */ |
| 327 | 327 | obtem: function(funcao){ |
| 328 | - i3GEO.php.criaLegendaHTML(funcao,"",g_templateLegenda) | |
| 328 | + i3GEO.php.criaLegendaHTML(funcao,"",i3GEO.configura.templateLegenda) | |
| 329 | 329 | }, |
| 330 | 330 | /* |
| 331 | 331 | Function: libera | ... | ... |
classesjs/classe_maparef.js
| ... | ... | @@ -110,15 +110,15 @@ i3GEO.maparef = { |
| 110 | 110 | if ($i("mapaReferencia")){ |
| 111 | 111 | //YAHOO.log("Atualizando o mapa de referência", "i3geo"); |
| 112 | 112 | if(dinamico){ |
| 113 | - i3GEO.php.referenciadinamica(this.processaImagem,i3GEO.maparef.fatorZoomDinamico); | |
| 113 | + i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico); | |
| 114 | 114 | } |
| 115 | 115 | else{ |
| 116 | 116 | if(($i("imagemReferencia").src == "") || (i3GEO.parametros.cgi != "sim")){ |
| 117 | - i3GEO.php.referencia(this.processaImagem); | |
| 117 | + i3GEO.php.referencia(i3GEO.maparef.processaImagem); | |
| 118 | 118 | } |
| 119 | 119 | else{ |
| 120 | 120 | var re = new RegExp("&mode=map", "g"); |
| 121 | - $i("imagemReferencia").src = $i("img").src.replace(re,'&mode=reference'); | |
| 121 | + $i("imagemReferencia").src = $i(i3GEO.interface.IDMAPA).src.replace(re,'&mode=reference'); | |
| 122 | 122 | i3GEO.gadgets.quadros.grava("referencia",$i("imagemReferencia").src); |
| 123 | 123 | } |
| 124 | 124 | } | ... | ... |
classesjs/classe_navega.js
| ... | ... | @@ -601,7 +601,7 @@ i3GEO.navega = { |
| 601 | 601 | i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()"); |
| 602 | 602 | i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()"); |
| 603 | 603 | //i3GEO.eventos.MOUSEDOWN.remove("i3GEO.navega.zoomBox.inicia()"); |
| 604 | - i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,g_tipoimagem,v); | |
| 604 | + i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,v); | |
| 605 | 605 | } |
| 606 | 606 | catch(e){limpa.call();return;} |
| 607 | 607 | } | ... | ... |
classesjs/compactados/configura_compacto.js
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -g_templateLegenda="";g_autoRedesenho=0;g_embedLegenda="nao";g_3dmap="";g_fatordezoom=0;g_diminuixM=20;g_diminuixN=25;g_diminuiyM=106;g_diminuiyN=103;g_funcaoTip="verificaTipDefault()";g_tipotip="balao";g_tipoimagem="nenhum";g_sistemas="";oMenuData={"ajudas":[{text:$trad("u1"),url:"http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332"},{text:$trad("u2"),url:"javascript:i3GEO.ajuda.abreDoc()"},{text:$trad("u3"),url:"http://pt.wikibooks.org/wiki/I3geo"},{text:$trad("u4"),url:"http://mapas.mma.gov.br/wikibooki3geo"},{text:$trad("u5a"),url:"http://www.softwarepublico.gov.br"},{text:"i3Geo Blog",url:"http://sistemas.mma.gov.br/blogs/index.php?blog=6"}],"analise":[{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u22")+'</b></span>',url:"#"},{text:$trad("u7"),url:"javascript:i3GEO.analise.dialogo.gradePol()"},{text:$trad("u8"),url:"javascript:i3GEO.analise.dialogo.gradePontos()"},{text:$trad("u9"),url:"javascript:i3GEO.analise.dialogo.gradeHex()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u23")+'</b></span>',url:"#"},{text:$trad("u11a"),url:"javascript:i3GEO.analise.dialogo.distanciaptpt()"},{text:$trad("u12"),url:"javascript:i3GEO.analise.dialogo.nptPol()"},{text:$trad("u13"),url:"javascript:i3GEO.analise.dialogo.pontoempoligono()"},{text:$trad("u14"),url:"javascript:i3GEO.analise.dialogo.pontosdistri()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u24")+'</b></span>',url:"#"},{text:$trad("u11"),url:"javascript:i3GEO.analise.dialogo.centroide()"},{text:$trad("u25"),url:"javascript:i3GEO.analise.dialogo.dissolve()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u27")+'</b></span>',url:"#"},{text:$trad("u6"),url:"javascript:i3GEO.analise.dialogo.analisaGeometrias()"},{text:$trad("u10"),url:"javascript:i3GEO.analise.dialogo.buffer()"},{text:$trad("u26"),url:"javascript:i3GEO.analise.dialogo.agrupaElementos()"}]};oMenuData.janelas=[{text:$trad("u15"),url:"javascript:initJanelaZoom('1');initJanelaZoom('2')"},{text:$trad("u16"),url:"javascript:i3GEO.ajuda.abreJanela()"}];oMenuData.arquivo=[{text:$trad("u17"),url:"javascript:i3GEO.mapa.dialogo.salvaMapa()"},{text:$trad("u18"),url:"javascript:i3GEO.mapa.dialogo.carregaMapa()"},{text:$trad("u19"),url:"javascript:i3GEO.gadgets.quadros.listaImagens()"},{text:$trad("u20"),url:"javascript:i3GEO.mapa.dialogo.convertews()"},{text:$trad("u21"),url:"../geradordelinks.htm"}];g_listaFuncoesBotoes={"botoes":[{iddiv:"historicozoom",tipo:"",dica:$trad("d1"),constroiconteudo:'i3GEO.gadgets.mostraHistoricoZoom()'},{iddiv:"zoomtot",tipo:"",dica:$trad("d2"),funcaoonclick:function(){i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,g_tipoimagem,objmapa.extentTotal);marcadorZoom=""}},{iddiv:"zoomli",tipo:"dinamico",dica:$trad("d3"),funcaoonclick:function(){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic);if(!$i("i3geoboxZoom"))i3GEO.navega.zoomBox.criaBox();g_operacao='navega';g_tipoacao='zoomli';i3GEO.barraDeBotoes.ativaIcone("zoomli");marcadorZoom="";if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()")<0){i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()")}}},{iddiv:"pan",tipo:"dinamico",dica:$trad("d4"),funcaoonclick:function(){g_tipoacao='pan';g_operacao='navega';i3GEO.barraDeBotoes.ativaIcone("pan");if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan","img",i3GEO.configura.locaplic)}marcadorZoom="";panMapaInicia=function(){if($i("img")&&(g_tipoacao=="pan")){g_panM="sim";if($i("corpoMapa")){leftinicial=parseInt($i("corpoMapa").style.left);topinicial=parseInt($i("corpoMapa").style.top)}clicinicialx=objposicaocursor.imgx;clicinicialy=objposicaocursor.imgy;ddinicialx=objposicaocursor.ddx;ddinicialy=objposicaocursor.ddy}};panMapaDesloca=function(){if($i("img")&&(g_panM=="sim")){var nx=objposicaocursor.telax-leftinicial-clicinicialx;var ny=objposicaocursor.telay-topinicial-clicinicialy;if(i3GEO.configura.entorno=="nao"){var l=0;if(parseInt($i("i3geo").style.left)){var l=parseInt($i("i3geo").style.left)}$i("img").style.left=nx-l;var t=0;if(parseInt($i("i3geo").style.top)){var t=parseInt($i("i3geo").style.top)}$i("img").style.top=ny-t}else{$left("img",objmapa.w*-1+nx);$left("imgS",objmapa.w*-1+nx);$left("imgL",objmapa.w+nx);$left("imgO",objmapa.w*-3+nx);$left("imgN",objmapa.w*-1+nx);$top("img",objmapa.h*-1+ny);$top("imgS",objmapa.h*-1+ny);$top("imgL",objmapa.h*-1+ny);$top("imgN",objmapa.h*-1+ny);$top("imgO",objmapa.h*-1+ny)}}};panMapaTermina=function(){if($i("img")&&(g_tipoacao=="pan")){marcadorZoom="";g_panM="nao";var res=i3GEO.navega.xy2xy(i3GEO.configura.locaplic,i3GEO.configura.sid,ddinicialx,ddinicialy,objposicaocursor.ddx,objposicaocursor.ddy,objmapa.extent,g_tipoimagem);if(res==false){i3GEO.navega.zoompontoIMG(i3GEO.configura.locaplic,i3GEO.configura.sid,objposicaocursor.imgx,objposicaocursor.imgy)}}};if(i3GEO.eventos.MOUSEDOWN.toString().search("panMapaInicia()")<0){i3GEO.eventos.MOUSEDOWN.push("panMapaInicia()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("panMapaDesloca()")<0){i3GEO.eventos.MOUSEMOVE.push("panMapaDesloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("panMapaTermina()")<0){i3GEO.eventos.MOUSEUP.push("panMapaTermina()")}}},{iddiv:"zoomiauto",tipo:"",dica:$trad("d5"),funcaoonclick:function(){i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid);marcadorZoom=""}},{iddiv:"zoomoauto",tipo:"",dica:$trad("d6"),funcaoonclick:function(){i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid);marcadorZoom=""}},{iddiv:"identifica",tipo:"dinamico",dica:$trad("d7"),funcaoonclick:function(){if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic)}i3GEO.barraDeBotoes.ativaIcone("identifica");g_tipoacao='identifica';g_operacao='identifica';cliqueIdentifica=function(){if(g_tipoacao=="identifica"){i3GEO.eventos.MOUSEPARADO.remove("verificaTip()");var janela=i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/identifica/index.htm?&x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy+'&escala='+objmapa.scale,"","","Identifica");var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("cliqueIdentifica()");i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)}};verificaTip=function(){if(g_operacao!="identifica"){return}verificaTipDefault=function(){var retorna=function(retorno){var i=$i("i3geo_rosa");if(i){i.style.display="none"}var mostra=false;try{var retorno=retorno.data;if($i("img")){$i("img").title=""}if(retorno!=""){var res="";var temas=retorno.split("!");var tema=temas.length-1;if(tema>=0){do{var titulo=temas[tema].split("@");if(g_tipotip=="completo"||g_tipotip=="balao"){res+="<span style='text-align:left;font-size:9pt'><b>"+titulo[0]+"</b></span><br>"}var ocorrencias=titulo[1].split("*");var ocorrencia=ocorrencias.length-1;if(ocorrencia>=0){do{if(ocorrencias[ocorrencia]!=""){var pares=ocorrencias[ocorrencia].split("##");var paresi=pares.length;for(var par=0;par<paresi;par++){var valores=pares[par].split("#");if(g_tipotip=="completo"||g_tipotip=="balao"){res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'>"+valores[0]+" <i>"+valores[1]+"</i></span><br>";var mostra=true}else{res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'><i>"+valores[1]+"</i></span><br>";var mostra=true}}}}while(ocorrencia--)}}while(tema--)}if(!mostra){$i("tip").style.display="none";return}else{if(g_tipotip!="balao"){var n=i3GEO.janela.tip();$i(n).style.textAlign="left";$i(n).innerHTML+=res}else{var n=i3GEO.janela.tip("<img src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />");balloon=new Balloon;balloon.delayTime=0;var res="<div style=text-align:left >"+res+"</div>";$i(n+"cabecatip").onmouseover=function(evt){balloon.showTooltip(evt,res)}}}}}catch(e){}};i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5")};if(g_operacao=="identifica"){eval(g_funcaoTip)}};if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()")<0){i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()")}if(i3GEO.eventos.MOUSEPARADO.toString().search("verificaTip()")<0){i3GEO.eventos.MOUSEPARADO.push("verificaTip()")}}},{iddiv:"exten",tipo:"",dica:$trad("d8"),funcaoonclick:function(){wdocaf("450px","340px",i3GEO.configura.locaplic+"/ferramentas/mostraexten/index.htm","","","Extensão geográfica")}},{iddiv:"referencia",tipo:"",dica:$trad("d9"),funcaoonclick:function(){i3GEO.maparef.inicia()}},{iddiv:"wiki",tipo:"",dica:$trad("d11"),funcaoonclick:function(){g_operacao="navega";wdocaf("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki");atualizawiki=function(){var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadowiki")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizawiki()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizawiki()")}}},{iddiv:"buscafotos",tipo:"",dica:"Fotos",funcaoonclick:function(){g_operacao="navega";wdocaf("550px","400px",i3GEO.configura.locaplic+"/ferramentas/buscafotos/index.htm","","","Fotos");i3GEO.util.criaPin()}},{iddiv:"imprimir",tipo:"",dica:$trad("d12"),funcaoonclick:function(){wdocaf("320px","180px",i3GEO.configura.locaplic+"/ferramentas/imprimir/index.htm","","","Imprimir")}},{iddiv:"ondeestou",tipo:"",dica:$trad("d13"),funcaoonclick:function(){i3GEO.navega.zoomIP(i3GEO.configura.locaplic,i3GEO.configura.sid)}},{iddiv:"v3d",tipo:"",dica:$trad("d14"),funcaoonclick:function(){wdocaf("400px","200px",i3GEO.configura.locaplic+"/ferramentas/3d/index.htm","","","3d")}},{iddiv:"google",tipo:"",dica:$trad("d15"),funcaoonclick:function(){i3GEO.util.criaBox();g_operacao="navega";if(navn){wdocaf((objmapa.w/2)+40+"px",(objmapa.h/2)+50+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps")}else{wdocaf("500px","380px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps")}atualizagoogle=function(){try{if(navn){if($i("wdocai")){var doc=$i("wdocai").contentDocument}}else{if(document.frames("wdocai")){var doc=document.frames("wdocai").document}}if(window.parent.frames["wdocai"].panTogoogle){window.parent.frames["wdocai"].panTogoogle()}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}}catch(e){}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()")}}},{iddiv:"scielo",tipo:"",dica:$trad("d16"),funcaoonclick:function(){g_operacao="navega";wdocaf("450px","190px",i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm","","","Scielo");atualizascielo=function(){try{var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadoscielo")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()")}}catch(e){}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()")}}},{iddiv:"confluence",tipo:"",dica:$trad("d17"),funcaoonclick:function(){g_operacao="navega";wdocaf("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","confluence");i3GEO.util.criaBox();atualizaconfluence=function(){var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadoconfluence")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaconfluence()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizaconfluence()")}}},{iddiv:"lentei",tipo:"",dica:$trad("d18"),funcaoonclick:function(){if(i3GEO.navega.lente.ESTAATIVA=="nao"){i3GEO.navega.lente.inicia()}else i3GEO.navega.lente.desativa()}},{iddiv:"encolheFerramentas",tipo:"",dica:$trad("d19"),funcaoonclick:function(){docaguias()}},{iddiv:"reinicia",tipo:"",dica:$trad("d20"),funcaoonclick:function(){i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1"));i3GEO.php.reiniciaMapa(ajaxredesenha)}},{iddiv:"mede",tipo:"dinamico",dica:$trad("d21"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("mede");if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"distancia","img",i3GEO.configura.locaplic)}g_tipoacao="";i3GEO.analise.medeDistancia.inicia()}},{iddiv:"area",tipo:"dinamico",dica:$trad("d21a"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("area");if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"area","img",i3GEO.configura.locaplic)}g_tipoacao="";i3GEO.analise.medeArea.inicia()}},{iddiv:"inserexy",tipo:"dinamico",dica:$trad("d22"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("inserexy");g_tipoacao="";i3GEO.mapa.dialogo.cliquePonto();if($i("img")){$i("img").title="clique para inserir um ponto";$i("img").style.cursor="crosshair"}}},{iddiv:"inseregrafico",tipo:"dinamico",dica:$trad("d23"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("inseregrafico");g_tipoacao="";i3GEO.mapa.dialogo.cliqueGrafico();if($i("img")){$i("img").title="clique para incluir o gráfico";$i("img").style.cursor="pointer"}}},{iddiv:"selecao",tipo:"dinamico",dica:$trad("d24"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("selecao");i3GEO.selecao.janelaOpcoes();if($i("img")){$i("img").title="";$i("img").style.cursor="pointer"}}},{iddiv:"textofid",tipo:"dinamico",dica:$trad("d25"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("textofid");g_tipoacao="";i3GEO.mapa.dialogo.cliqueTexto();if($i("img")){$i("img").title="clique para inserir o texto";$i("img").style.cursor="pointer"}}},{iddiv:"menus",tipo:"",constroiconteudo:'montaMenuSuspenso("menus")'}]}; | |
| 2 | 0 | \ No newline at end of file |
classesjs/compactados/iniciamma_compacto.js
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -imagemxi=0;imagemyi=0;navm=false;navn=false;var app=navigator.appName.substring(0,1);if(app=='N')navn=true;else navm=true;atuaLeg="nao";g_zoomRefDinamico=-3;g_mashuppar="";g_operacao="";g_zoomProximo=new Array();g_nomepin="";g_arvoreClick="";g_arvoreClicks="";g_tipoacao="zoomli";g_realca="nao";g_panM="nao";g_r="nao";g_postpx="px";g_tipotop="top";g_tipoleft="left";if(navm){g_postpx="";g_tipotop="pixelTop";g_tipoleft="pixelLeft"}function Mapa(e,m){try{i3GEO.configura.locaplic=g_locaplic}catch(e){g_locaplic=i3GEO.configura.locaplic};var diminuix=(navm)?g_diminuixM:g_diminuixN;var diminuiy=(navm)?g_diminuiyM:g_diminuiyN;if(e==undefined){var menos=0;if($i("contemFerramentas")){menos=menos+parseInt($i("contemFerramentas").style.width)}if($i("ferramentas")){menos=menos+parseInt($i("ferramentas").style.width)}var novow=parseInt(screen.availWidth)-diminuix;var novoh=parseInt(screen.availHeight)-diminuiy;if(novow>=1024){novow=1000}if(novoh>=700){novoh=700}try{if(document.body.style.width<400){var novow=parseInt(screen.availWidth)-diminuix;var novoh=parseInt(screen.availHeight)-diminuiy;window.resizeTo(screen.availWidth,screen.availHeight);window.moveTo(0,0)}}catch(e){var e=""}document.body.style.width=novow;document.body.style.height=novoh;this.w=novow-menos-diminuix;this.h=novoh-diminuiy;if(document.getElementById("corpoMapa")){if(document.getElementById("corpoMapa").style.width){this.w=parseInt(document.getElementById("corpoMapa").style.width);this.h=parseInt(document.getElementById("corpoMapa").style.width)}if(document.getElementById("corpoMapa").style.height){this.h=parseInt(document.getElementById("corpoMapa").style.height)}}}else{this.w=document.body.offsetWidth-parseInt($i("contemFerramentas").style.width)-diminuix;this.h=document.body.offsetHeight-diminuiy}if($i("openlayers")){$i("openlayers").style.width=this.w;$i("openlayers").style.height=this.h}if($i("flamingo")){$i("flamingo").style.width=this.w;$i("flamingo").style.height=this.h}if($i("contemImg")){$i("contemImg").style.height=this.h+"px";$i("contemImg").style.width=this.w+"px"}this.navegacaoDir="nao";this.listavisual="";this.visualatual="default";this.funcoesClickMapa=new Array();this.objtips=new Array();this.tempo="";this.tempoRedesenho="";this.contaTempoRedesenho="";this.temaAtivo="";this.pinmarca="marca";this.pintamanho="5";this.scale=50000;this.legenda="";this.finaliza="";this.cgi="";this.utilizacgi="";this.versaoms="";this.inicializa=function(){i3GEOmantemCompatibilidade();if(!$i("i3geo")){document.body.id="i3geo"}$i("i3geo").className="yui-skin-sam";if($i("mst"))$i("mst").style.visibility="hidden";if(i3GEO.configura.sid==""){var mashup=function(retorno){i3GEO.configura.sid=retorno.data;objmapa.inicializa()};var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=criaMapa&"+g_mashuppar;cpObj.call(p,"",mashup)}else{i3GEO.janela.abreAguarde("montaMapa",$trad("o5"));var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=inicia&embedLegenda="+g_embedLegenda+"&w="+this.w+"&h="+this.h+"&g_sid="+i3GEO.configura.sid;cpObj.call(p,"iniciaMapa",this.montaMapa)}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.fechaAguarde()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.fechaAguarde()")}};this.montaMapa=function(retorno){if(retorno==""){alert("Ocorreu um erro no mapa - montaMapa");retorno={data:{erro:"erro"}}}if(retorno.data.erro){i3GEO.janela.fechaAguarde("montaMapa");document.body.style.backgroundColor="white";document.body.innerHTML="<br>Para abrir o i3Geo utilize o link:<br><a href="+i3GEO.configura.locaplic+"/ms_criamapa.php >"+i3GEO.configura.locaplic+"/ms_criamapa.php</a>";return("linkquebrado")}else{if(retorno.data.variaveis){var tempo="";var titulo="";eval(retorno.data.variaveis);try{if(titulo!=""){top.document.title=titulo}}catch(e){var e=""}i3GEO.ajuda.mostraJanela("Tempo de desenho em segundos: "+tempo,"");objmapa.scale=parseInt(mapscale);objmapa.cellsize=g_celula;objmapa.extent=mapexten;objmapa.extentTotal=mapexten;objmapa.criaCorpoMapa();i3GEO.gadgets.quadros.inicia(10);i3GEO.gadgets.quadros.grava("extensao",mapexten);i3GEO.arvoreDeCamadas.cria("",retorno.data.temas,i3GEO.configura.sid,i3GEO.configura.locaplic);i3GEO.maparef.atualiza();i3GEO.util.arvore("<b>"+$trad("p13")+"</b>","listaPropriedades",i3GEO.configura.listaDePropriedadesDoMapa);i3GEO.gadgets.mostraCoordenadasGEO();i3GEO.gadgets.mostraEscalaNumerica();i3GEO.gadgets.mostraBuscaRapida();i3GEO.gadgets.visual.inicia();i3GEO.guias.cria();if($i("arvoreAdicionaTema"))i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,"arvoreAdicionaTema");i3GEO.ajuda.ativaLetreiro(objmapa.mensagens);objmapa.criaEscalaGrafica();objmapa.atualizaEscalaGrafica();ajaxCorpoMapa(retorno);if($i("corpoMapa")){var i=$i("img");if(i){i.style.width=objmapa.w+"px";i.style.height=objmapa.h+"px";var i=$i("corpoMapa").style;i.width=objmapa.w+"px";i.height=objmapa.h+"px";i.clip='rect('+0+" "+(objmapa.w)+" "+(objmapa.h)+" "+0+')'}}var temp=0;if($i("contemFerramentas")){temp=temp+parseInt($i("contemFerramentas").style.width)}if($i("ferramentas")){temp=temp+parseInt($i("ferramentas").style.width)}if($i("mst")){$i("mst").style.width=objmapa.w+temp+"px"}i3GEO.mapa.ajustaPosicao();var imagemxy=i3GEO.util.pegaPosicaoObjeto($i("corpoMapa"));if($i("barraDeBotoes1")){var x1=imagemxy[0]+40;var y1=imagemxy[1]+10}if($i("barraDeBotoes2")){var x2=imagemxy[0];var y2=imagemxy[1]+10}else{if($i("barraDeBotoes1")){var x1=imagemxy[0];var x2=imagemxy[1]+10}}if($i("barraDeBotoes1"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes1","i3geo_barra1",true,x1,y1);if($i("barraDeBotoes2"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2);i3GEO.barraDeBotoes.ativaBotoes();if(i3GEO.configura.entorno=="sim"){i3GEO.configura.entorno=="nao";i3GEO.navega.entorno.ativaDesativa()}i3GEO.navega.autoRedesenho.ativa();if($i("i3geo_escalanum")){$i("i3geo_escalanum").value=objmapa.scale}if((objmapa.geoip=="nao")&&($i("ondeestou"))){$i("ondeestou").style.display="none"}}else{alert("Erro. Impossivel criar o mapa "+retorno.data);return}if(document.getElementById("ajuda")){i3GEO.ajuda.DIVAJUDA="ajuda"}var abreJM="sim";if(i3GEO.util.pegaCookie("g_janelaMen")){var abreJM=i3GEO.util.pegaCookie("g_janelaMen");if(abreJM=="sim")i3GEO.configura.iniciaJanelaMensagens=true;else i3GEO.configura.iniciaJanelaMensagens=false}if(i3GEO.configura.iniciaJanelaMensagens==true){i3GEO.ajuda.abreJanela()}if(i3GEO.configura.mapaRefDisplay!="none"){if(i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay=i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")}if(i3GEO.configura.mapaRefDisplay=="block"){i3GEO.maparef.inicia()}}i3GEO.janela.fechaAguarde("montaMapa");if(i3GEO.configura.liberaGuias=="sim"){i3GEO.guias.libera()}if(document.getElementById("botao3d")){if(g_3dmap==""){document.getElementById("botao3d").style.display="none"}}}if($i("mst"))$i("mst").style.visibility="visible"};this.criaEscalaGrafica=function(){if(($i("escalaGrafica"))&&(!$i("imagemEscalaGrafica"))){$i("escalaGrafica").innerHTML="<img class='menuarrow' src=\""+g_localimg+"/branco.gif\" title='opções' onclick='opcoesEscala()' style='cursor:pointer'/><img id=imagemEscalaGrafica src='' />"}};this.atualizaEscalaGrafica=function(){if($i("escalaGrafica")){var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=escalagrafica&g_sid="+i3GEO.configura.sid;cpObj.call(p,"retornaBarraEscala",ajaxEscalaGrafica)}};this.criaCorpoMapa=function(){if($i("corpoMapa")){var ins="<table>";ins+="<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgN' /></td><td class=verdeclaro ></td></tr>";ins+="<tr><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgL' /></td><td class=verdeclaro ><input style='position:relative;top:0px;left:0px'' type=image src='' id='img' /></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgO' /></td></tr>";ins+="<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgS' /></td><td class=verdeclaro ></td></tr>";ins+="</table>";$i("corpoMapa").innerHTML=ins}var docMapa="";if(document.getElementById("openlayers")){i3GEO.eventos.ativa($i("openlayers"))}if(document.getElementById("img")){this.parado="nao";i3GEO.eventos.ativa($i("img"))}if(objmapa.finaliza){eval(objmapa.finaliza)}};this.atualizaCorpoMapa=function(){i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o1"));var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=corpo&g_sid="+i3GEO.configura.sid+"&tipoimagem="+g_tipoimagem;cpObj.call(p,"redesenhaCorpo",ajaxCorpoMapa)}} | |
| 2 | 0 | \ No newline at end of file |
classesjs/compactados/menususpenso_compacto.js
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -function montaMenuSuspenso(iddiv){if($i(iddiv)){$i(iddiv).className="yuimenubar";if(oMenuData.ajudas){var ins="";ins+='<div class="bd" style="align:right;border: 0px solid white;z-index:6000;line-height:1.4" >';ins+='<ul class="first-of-type" style="border:0px solid white;top:10px;">';var sobe="";if(navn){var sobe="line-height:0px;"}if(objmapa.w>=500){ins+='<li class="yuimenubaritem first-of-type" style="'+sobe+'float:left;border: 0px solid white;" >';ins+=' <img style="border: 1px solid white;padding:0 0px;top:-7px;" src="'+i3GEO.util.$im("branco.gif")+'" onclick="i3GEO.idioma.trocaIdioma(\'pt\')" id="brasil" alt="Portugues"/>';ins+='</li><li class="yuimenubaritem" style="'+sobe+'float:left;border: 0px solid white;" > <img style="padding:0 0px;top:-7px;padding-right:0px;border: 1px solid white;" src="'+i3GEO.util.$im("branco.gif")+'" onclick="i3GEO.idioma.trocaIdioma(\'en\')" alt"Ingles" id="uk" />';ins+='</li><li class="yuimenubaritem" style="'+sobe+'float:left;border: 0px solid white;" > <img style="padding:0 0px;top:-7px;padding-right:0px;border: 1px solid white;" src="'+i3GEO.util.$im("branco.gif")+'" onclick="i3GEO.idioma.trocaIdioma(\'es\')" id="espanhol" alt="Espanhol" />';ins+='</li><li class="yuimenubaritem" style="'+sobe+'float:left;border: 0px solid white;" > <img style="padding:0 0px;top:-7px;padding-right:0px;border: 1px solid white;" src="'+i3GEO.util.$im("branco.gif")+'" onclick="i3GEO.idioma.trocaIdioma(\'it\')" id="italiano" alt="Italiano" />';ins+='</li>'}ins+='<li class="yuimenubaritem" style="padding-bottom:5px" ><a style="border: 0px solid white;" href="#" class="yuimenubaritemlabel" id="menuajuda" > '+$trad("s1")+'</a></li>';ins+='<li class="yuimenubaritem" style="padding-bottom:5px"><a style="border: 0px solid white;" href="#" class="yuimenubaritemlabel" id="menuanalise" > '+$trad("s2")+'</a></li>';ins+='<li class="yuimenubaritem" style="padding-bottom:5px"><a style="border: 0px solid white;" href="#" class="yuimenubaritemlabel" id="menujanelas" > '+$trad("s3")+'</a></li>';ins+='<li class="yuimenubaritem" style="padding-bottom:5px"><a style="border: 0px solid white;" href="#" class="yuimenubaritemlabel" id="menuarquivos" > '+$trad("s4")+'</a></li>';ins+='</ul>';ins+='</div>';$i("menus").innerHTML=ins}function onMenuBarBeforeRender(p_sType,p_sArgs){if(objmapa.w>=500){var conta=4}else{var conta=0}for(var nomeMenu in oMenuData){var v="this.getItem("+conta+").cfg.setProperty('submenu',{id:'"+nomeMenu+"',itemdata: oMenuData['"+nomeMenu+"']})";eval(v);var conta=conta+1}}var oMenuBar=new YAHOO.widget.MenuBar(iddiv,{autosubmenudisplay:true,showdelay:150,hidedelay:250,lazyload:false});oMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender);oMenuBar.render();var temp=$i("menus").style;temp.backgroundPosition="0px -5px";temp.border="0px solid white";var temp=$i(iddiv).style;temp.backgroundPosition="0px -5px";temp.border="0px solid white";if($i("contemMenu")){$i("contemMenu").className="yui-navset"}}}function testamenususpenso(){} | |
| 2 | 0 | \ No newline at end of file |
classesjs/compactados/redesenho_compacto.js
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -function ajaxEscalaGrafica(retorno){if((retorno.data!="erro")&&(retorno.data!=undefined)){eval(retorno.data);if($i("imagemEscalaGrafica")){var m=new Image();m.src=scaimagem;$i("imagemEscalaGrafica").src=m.src;i3GEO.gadgets.quadros.grava("escala",scaimagem)}}}function ajaxCorpoMapa(retorno){i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas);if($i("mst")){$i("mst").style.display="block"}if(objmapa.OL){$i("openlayers").innerHTML="";var b=objmapa.OL.getExtent();criaOL(Math.random()+Math.random()+Math.random()+Math.random());objmapa.OL.zoomToExtent(b)}if($i("flamingo")){atualizaFL();i3GEO.janela.fechaAguarde()}if(!$i("img")){return}try{i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o3"));if(retorno.data){var retorno=retorno.data}if(retorno.variaveis){var retorno=retorno.variaveis}if((retorno!="erro")&&(retorno!=undefined)){eval(retorno);$i("img").onload=function(){$i("img").onload="";i3GEO.gadgets.quadros.grava("imagem",mapimagem);var temp=function(retorno){eval(retorno.data);i3GEO.gadgets.quadros.grava("legenda",legimagem)};i3GEO.mapa.legendaIMAGEM.obtem(temp);if($i("banners")){$i("banners").style.height=objmapa.h}if($i("legenda")){$i("legenda").style.height=objmapa.h}if($i("imgtemp")){$i("imgtemp").style.display="none"}if($i("imgClone"))$i("imgClone").style.display="none";$i("img").style.display="block";i3GEO.janela.fechaAguarde("ajaxCorpoMapa")};$i("img").src=mapimagem}else{i3GEO.mapa.ajustaPosicao();i3GEO.janela.fechaAguarde();i3GEO.mapa.recupera.inicia()}i3GEO.mapa.recupera.TENTATIVA=0}catch(e){if(i3GEO.mapa.recupera.TENTATIVA==0){alert("Erro no mapa. Sera feita uma tentativa de recuperacao.");i3GEO.mapa.recupera.inicia()}else{alert("Recuperacao impossivel. Sera feita uma tentativa de reiniciar o mapa.");if(i3GEO.mapa.recupera.TENTATIVA==1){i3GEO.mapa.recupera.TENTATIVA=2;var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=reiniciaMapa&g_sid="+i3GEO.configura.sid;var cp=new cpaint();cp.set_response_type("JSON");cp.call(p,"recuperamapa",ajaxredesenha)}}}}function ajaxredesenha(retorno){try{i3GEO.desenho.richdraw.clearWorkspace()}catch(e){};try{if(retorno&&retorno.data.temas){i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1"));ajaxIniciaParametros(retorno)}else{var legimagem="";if($i("img")){i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1"));var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=corpo&tipoimagem="+g_tipoimagem+"&g_sid="+i3GEO.configura.sid;var cp=new cpaint();cp.set_response_type("JSON");cp.call(p,"redesenhaCorpo",ajaxIniciaParametros)}if($i("openlayers")){$i("openlayers").innerHTML="";var b=objmapa.OL.getExtent();criaOL(Math.random()+Math.random()+Math.random()+Math.random());objmapa.OL.zoomToExtent(b)}if($i("flamingo")){atualizaFL()}}}catch(e){alert("ajaxredesenha "+e)}}function ajaxIniciaParametros(retorno){var tempo="";try{mapscale="";mapexten="";eval(retorno.data.variaveis);if($i("img")){if(!$i("imgtemp")){var ndiv=document.createElement("div");ndiv.id="imgtemp";ndiv.style.position="absolute";ndiv.style.border="1px solid blue";document.getElementById("corpoMapa").appendChild(ndiv)}if(g_tipoacao=="pan"){$i("imgtemp").style.left=parseInt($i("img").style.left);$i("imgtemp").style.top=parseInt($i("img").style.top);$i("imgtemp").style.width=objmapa.w;$i("imgtemp").style.height=objmapa.h;$i("imgtemp").style.display="block";$i("imgtemp").style.backgroundImage='url("'+$i("img").src+'")'}$i("img").style.left=0;$i("img").style.top=0;ajaxCorpoMapa(retorno)}i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas);if(objmapa.scale!=mapscale)i3GEO.arvoreDeCamadas.atualizaFarol(mapscale);objmapa.scale=mapscale;g_operacao="";i3GEO.arvoreDeCamadas.CAMADAS=retorno.data.temas;objmapa.cellsize=g_celula;objmapa.extent=mapexten;if($i("mensagemt")){$i("mensagemt").value=objmapa.extent}i3GEO.eventos.navegaMapa();if(i3GEO.configura.entorno=="sim"){i3GEO.navega.entorno.geraURL();i3GEO.navega.entorno.ajustaPosicao()}i3GEO.mapa.recupera.TENTATIVA=0}catch(e){if(i3GEO.mapa.recupera.TENTATIVA==0){alert("Erro no mapa. Sera feita uma tentativa de recuperacao.");i3GEO.mapa.recupera.inicia()}else{alert("Recuperacao impossivel. Sera feita uma tentativa de reiniciar o mapa.");if(i3GEO.mapa.recupera.TENTATIVA==1){i3GEO.mapa.recupera.TENTATIVA=2;var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=reiniciaMapa&g_sid="+i3GEO.configura.sid;var cp=new cpaint();cp.set_response_type("JSON");cp.call(p,"recuperamapa",ajaxredesenha)}}}i3GEO.ajuda.mostraJanela("Tempo de redesenho em segundos: "+tempo,"")}function testaajax(){} | |
| 2 | 0 | \ No newline at end of file |
classesjs/compactajs.php
| ... | ... | @@ -81,30 +81,30 @@ packer("classe_i3geo.js","compactados/classe_i3geo_compacto.js","Normal"); |
| 81 | 81 | //gera um único js para a inicialização do I3Geo |
| 82 | 82 | // |
| 83 | 83 | $jsfiles = array( |
| 84 | -"../pacotes/yui252/build/yahoo/yahoo.js", | |
| 84 | +"../pacotes/yui252/build/yahoo/yahoo-min.js", | |
| 85 | 85 | "../pacotes/yui252/build/yahoo-dom-event/yahoo-dom-event.js", |
| 86 | -"../pacotes/yui252/build/dom/dom.js", | |
| 87 | -"../pacotes/yui252/build/container/container_core.js", | |
| 88 | -"../pacotes/yui252/build/menu/menu.js", | |
| 89 | -"../pacotes/yui252/build/logger/logger.js", | |
| 90 | -"../pacotes/yui252/build/dragdrop/dragdrop.js", | |
| 91 | -"../pacotes/yui252/build/slider/slider.js", | |
| 92 | -"../pacotes/yui252/build/animation/animation.js", | |
| 93 | -"../pacotes/yui252/build/container/container.js", | |
| 86 | +"../pacotes/yui252/build/dom/dom-min.js", | |
| 87 | +"../pacotes/yui252/build/container/container_core-min.js", | |
| 88 | +"../pacotes/yui252/build/menu/menu-min.js", | |
| 89 | +"../pacotes/yui252/build/logger/logger-min.js", | |
| 90 | +"../pacotes/yui252/build/dragdrop/dragdrop-min.js", | |
| 91 | +"../pacotes/yui252/build/slider/slider-debug.js", | |
| 92 | +"../pacotes/yui252/build/animation/animation-min.js", | |
| 93 | +"../pacotes/yui252/build/container/container-min.js", | |
| 94 | 94 | "../pacotes/yui252/build/element/element-beta.js", |
| 95 | -"../pacotes/yui252/build/tabview/tabview.js", | |
| 95 | +"../pacotes/yui252/build/tabview/tabview-min.js", | |
| 96 | 96 | "../pacotes/yui252/build/utilities/utilities.js", |
| 97 | -"../pacotes/yui252/build/autocomplete/autocomplete.js", | |
| 98 | 97 | "../pacotes/cpaint/cpaint2.inc.compressed.js", |
| 99 | -"../pacotes/yui252/build/treeview/treeview.js", | |
| 100 | -"../pacotes/richdraw/richdraw_tudo_compacto.js", | |
| 98 | +"../pacotes/yui252/build/treeview/treeview-min.js", | |
| 101 | 99 | "../pacotes/balloon-tooltips/htdocs/js/balloon.config.js", |
| 102 | 100 | "../pacotes/balloon-tooltips/htdocs/js/balloon.js", |
| 103 | 101 | "classe_i3geo.js", |
| 102 | +"classe_util.js", | |
| 103 | +"dicionario.js", | |
| 104 | +"classe_idioma.js", | |
| 104 | 105 | "classe_php.js", |
| 105 | 106 | "classe_configura.js", |
| 106 | 107 | "depreciados.js", |
| 107 | -"classe_util.js", | |
| 108 | 108 | "classe_calculo.js", |
| 109 | 109 | "classe_desenho.js", |
| 110 | 110 | "classe_interface.js", |
| ... | ... | @@ -112,8 +112,6 @@ $jsfiles = array( |
| 112 | 112 | "classe_tema.js", |
| 113 | 113 | "classe_analise.js", |
| 114 | 114 | "classe_maparef.js", |
| 115 | -"dicionario.js", | |
| 116 | -"classe_idioma.js", | |
| 117 | 115 | "classe_ajuda.js", |
| 118 | 116 | "classe_janela.js", |
| 119 | 117 | "classe_guias.js", |
| ... | ... | @@ -122,8 +120,8 @@ $jsfiles = array( |
| 122 | 120 | "classe_selecao.js", |
| 123 | 121 | "classe_eventos.js", |
| 124 | 122 | "classe_arvoredetemas.js", |
| 125 | -"configura.js", | |
| 126 | 123 | "classe_barradebotoes.js", |
| 124 | +"../pacotes/richdraw/richdraw_tudo_compacto.js", | |
| 127 | 125 | "classe_gadgets.js" |
| 128 | 126 | ); |
| 129 | 127 | ... | ... |
classesjs/configura.js
| ... | ... | @@ -1,790 +0,0 @@ |
| 1 | -/* | |
| 2 | -Title: configura.js | |
| 3 | - | |
| 4 | -Definição das variáveis de configuração da interface. | |
| 5 | - | |
| 6 | -Aqui é feita a definição dos têrmos utilizados nos vários idiomas suportados pelo i3geo, definição dos | |
| 7 | -valores padrão das variáveis de configuração, definição do conteúdo do menu suspenso, definição das funções | |
| 8 | -que são executadas quando determinados eventos ocorrem, definição das funcionalidades dos botões, etc. | |
| 9 | - | |
| 10 | -O I3Geo utiliza variáveis (veja o item específico na documentação) globais que possibilitam | |
| 11 | -alterar algumas das características da interface. | |
| 12 | -Essas variáveis recebem valores default quando o I3Geo é iniciado mas podem ser alterados | |
| 13 | -antes da inicialização do mapa (método objmapa.inicializa()). | |
| 14 | -No arquivo aplicmapa/geral.htm existem exemplos de como fazer isso. | |
| 15 | -As variáveis globais podem também ser alteradas em tempo de execução. | |
| 16 | - | |
| 17 | -Pode-se criar interfaces específicas com o i3geo onde essas variáveis são modificadas para atender | |
| 18 | -uma necessidade específica. Uma interface é um arquivo HTML que pode ser inicializado diretamente no navegador. | |
| 19 | -Veja o diretório i3geo/exemplos onde podem ser encontradas algumas interfaces. | |
| 20 | - | |
| 21 | -Exemplo: | |
| 22 | - | |
| 23 | -g_janelaMen = "nao" | |
| 24 | - | |
| 25 | -objmapa = new Mapa() | |
| 26 | - | |
| 27 | -objmapa.inicializa() | |
| 28 | - | |
| 29 | -File: i3geo/classesjs/configura.js | |
| 30 | - | |
| 31 | -About: Licença | |
| 32 | - | |
| 33 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
| 34 | - | |
| 35 | -Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | |
| 36 | -Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | |
| 37 | - | |
| 38 | -Este programa é software livre; você pode redistribuí-lo | |
| 39 | -e/ou modificá-lo sob os termos da Licença Pública Geral | |
| 40 | -GNU conforme publicada pela Free Software Foundation; | |
| 41 | -tanto a versão 2 da Licença. | |
| 42 | -Este programa é distribuído na expectativa de que seja útil, | |
| 43 | -porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
| 44 | -de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | |
| 45 | -Consulte a Licença Pública Geral do GNU para mais detalhes. | |
| 46 | -Você deve ter recebido uma cópia da Licença Pública Geral do | |
| 47 | -GNU junto com este programa; se não, escreva para a | |
| 48 | -Free Software Foundation, Inc., no endereço | |
| 49 | -59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | |
| 50 | -*/ | |
| 51 | -/* | |
| 52 | -Section: Variáveis de configuração | |
| 53 | -*/ | |
| 54 | -/* | |
| 55 | -Variable: g_templateLegenda | |
| 56 | - | |
| 57 | -Template HTML que será utilizado na geração da legenda HTML. | |
| 58 | - | |
| 59 | -A sintaxe utilizada na montagem do template é baseado na sintaxe do próprio Mapserver. | |
| 60 | -O HTML pode ser armazenado em i3geo/aplicmap ou em um outro endereço no servidor. | |
| 61 | -O template serve para definir o layout da legenda que é mostrada quando a guia legenda é ativada. | |
| 62 | -Se for definido como "", é utilizado o template i3geo/aplicmapa/legenda.htm. | |
| 63 | -*/ | |
| 64 | -g_templateLegenda = ""; | |
| 65 | -/* | |
| 66 | -Variable: g_autoRedesenho | |
| 67 | - | |
| 68 | -Ativa o auto redesenho do mapa conforme o intervalo de tempo definido em segundos. | |
| 69 | - | |
| 70 | -Após decorrido o tempo definido, o mapa é redesenhado. Se for 0 o temporizador não é ativado. | |
| 71 | - | |
| 72 | -Veja: | |
| 73 | - | |
| 74 | -<funcoes.js> | |
| 75 | -*/ | |
| 76 | -g_autoRedesenho = 0; | |
| 77 | -/* | |
| 78 | -Variable: g_tempo_aplicar (depreciado) | |
| 79 | -*/ | |
| 80 | -/* | |
| 81 | -Variable: g_embedLegenda | |
| 82 | - | |
| 83 | -Indica se a legenda deve ser incluida no corpo do mapa. | |
| 84 | - | |
| 85 | -Veja: | |
| 86 | - | |
| 87 | -<iniciamma.js> | |
| 88 | - | |
| 89 | -Values: | |
| 90 | - | |
| 91 | -sim|nao | |
| 92 | - | |
| 93 | -*/ | |
| 94 | -g_embedLegenda = "nao"; | |
| 95 | -/* | |
| 96 | -Variable: g_3dmap | |
| 97 | - | |
| 98 | -Variável que define o nome do map_file que possuí o layer para uso na função 3d. | |
| 99 | -Pode ser utilizado o caminho completo, se não, busca no diretório aplicmap. | |
| 100 | - | |
| 101 | -O mapfile deve conter um layer para cálculo dos valores de Z para compor o modelo do relevo | |
| 102 | -sobre o qual o mapa será desenhado. | |
| 103 | - | |
| 104 | -Por padrão, o i3geo utiliza o mapfile aplicmpa/3dmap.map | |
| 105 | - | |
| 106 | -Veja: | |
| 107 | - | |
| 108 | -<ferramentas/3d/index.js> | |
| 109 | - | |
| 110 | -*/ | |
| 111 | -g_3dmap = ""; | |
| 112 | -/* | |
| 113 | -Variable: g_fatordezoom | |
| 114 | - | |
| 115 | -Variável interna para a barra de zoom. | |
| 116 | - | |
| 117 | -*/ | |
| 118 | -g_fatordezoom = 0; | |
| 119 | -/* | |
| 120 | -Variable: g_diminuixM | |
| 121 | - | |
| 122 | -Diminui a largura do mapa em pixels no caso do navegador ser o IE. | |
| 123 | -Valores definidos em pixel. | |
| 124 | - | |
| 125 | -Veja: | |
| 126 | - | |
| 127 | -<iniciamma.js> | |
| 128 | -*/ | |
| 129 | -g_diminuixM = 20; | |
| 130 | -/* | |
| 131 | -Variable: g_diminuixN | |
| 132 | - | |
| 133 | -Diminui a largura do mapa em pixels no caso do navegador ser o FF. | |
| 134 | -Valores definidos em pixel. | |
| 135 | - | |
| 136 | -Veja: | |
| 137 | - | |
| 138 | -<iniciamma.js> | |
| 139 | -*/ | |
| 140 | -g_diminuixN = 25; | |
| 141 | -/* | |
| 142 | -Variable: g_diminuiyM | |
| 143 | - | |
| 144 | -Diminui a altura do mapa em pixels no caso do navegador ser o IE. | |
| 145 | -Valores definidos em pixel. | |
| 146 | - | |
| 147 | -Veja: | |
| 148 | - | |
| 149 | -<iniciamma.js> | |
| 150 | -*/ | |
| 151 | -g_diminuiyM = 106; | |
| 152 | -/* | |
| 153 | -Variable: g_diminuiyN | |
| 154 | - | |
| 155 | -Diminui a altura do mapa em pixels no caso do navegador ser o FF. | |
| 156 | -Valores definidos em pixel. | |
| 157 | - | |
| 158 | -Veja: | |
| 159 | - | |
| 160 | -<iniciamma.js> | |
| 161 | -*/ | |
| 162 | -g_diminuiyN = 103; | |
| 163 | -/* | |
| 164 | -Variable: g_funcaoTip | |
| 165 | - | |
| 166 | -Função ajax que será executada para mostrar informações em etiquetas. | |
| 167 | - | |
| 168 | -A função é executada pelo CPAINT e avaliada com "eval". | |
| 169 | - | |
| 170 | -Por padrão a função é a verificaTipDefault. Vc pode especificar uma outra função se for desejado. | |
| 171 | - | |
| 172 | -Veja: | |
| 173 | - | |
| 174 | -<funcoes.js> | |
| 175 | -*/ | |
| 176 | -g_funcaoTip = "verificaTipDefault()"; | |
| 177 | -/* | |
| 178 | -Variable: g_tipotip | |
| 179 | - | |
| 180 | -Define como o tip será mostrado. O tipo simples mostra apenas os dados, sem o cabeçalho. | |
| 181 | - | |
| 182 | -Veja: | |
| 183 | - | |
| 184 | -<funcoes.js> | |
| 185 | - | |
| 186 | -Values: | |
| 187 | - | |
| 188 | -simples|completo|balao | |
| 189 | -*/ | |
| 190 | -g_tipotip = "balao"; | |
| 191 | -/* | |
| 192 | -Variable: g_tipoimagem | |
| 193 | - | |
| 194 | -Indica o tipo de filtro de imagem que está ativo. | |
| 195 | -O filtro ativo é aplicado sobre a imagem toda a vez que o mapa é refeito. | |
| 196 | - | |
| 197 | -Veja: | |
| 198 | - | |
| 199 | -<funcoes.js>, <iniciamma.js>, <redesenho.js> | |
| 200 | -*/ | |
| 201 | -g_tipoimagem = "nenhum"; | |
| 202 | -/* | |
| 203 | -Variable: g_sistemas | |
| 204 | - | |
| 205 | -Nome do arquivo xml com a lista de sistemas que serão mostrados na guia de adição de temas. | |
| 206 | -O valor dessa variável é definido no arquivo "ms_configura.php" e é preenchida utilizando o ajax logo na inicialização do i3geo. | |
| 207 | -*/ | |
| 208 | -g_sistemas = ""; | |
| 209 | -/* | |
| 210 | -Section: Funcionalidades | |
| 211 | -*/ | |
| 212 | -/* | |
| 213 | -Variable: oMenuData | |
| 214 | - | |
| 215 | -Itens incluídos no menu suspenso | |
| 216 | - | |
| 217 | -Veja: | |
| 218 | - | |
| 219 | -<iniciamma.js>, <menususpenso.js> | |
| 220 | - | |
| 221 | -Parâmetros: | |
| 222 | - | |
| 223 | -text - texto que serámostrado na tela | |
| 224 | - | |
| 225 | -url - função que será executada | |
| 226 | -*/ | |
| 227 | -oMenuData = { | |
| 228 | - "ajudas": [ | |
| 229 | - { text: $trad("u1"), url: "http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332" }, | |
| 230 | - { text: $trad("u2"), url: "javascript:i3GEO.ajuda.abreDoc()" }, | |
| 231 | - { text: $trad("u3"), url: "http://pt.wikibooks.org/wiki/I3geo" }, | |
| 232 | - { text: $trad("u4"), url: "http://mapas.mma.gov.br/wikibooki3geo" }, | |
| 233 | - { text: $trad("u5a"), url: "http://www.softwarepublico.gov.br" }, | |
| 234 | - { text: "i3Geo Blog", url: "http://sistemas.mma.gov.br/blogs/index.php?blog=6" } | |
| 235 | - ], | |
| 236 | - "analise": [ | |
| 237 | - { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u22")+'</b></span>',url: "#"}, | |
| 238 | - { text: $trad("u7"), url: "javascript:i3GEO.analise.dialogo.gradePol()"}, | |
| 239 | - { text: $trad("u8"), url: "javascript:i3GEO.analise.dialogo.gradePontos()" }, | |
| 240 | - { text: $trad("u9"), url: "javascript:i3GEO.analise.dialogo.gradeHex()" }, | |
| 241 | - { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u23")+'</b></span>',url: "#"}, | |
| 242 | - { text: $trad("u11a"), url: "javascript:i3GEO.analise.dialogo.distanciaptpt()" }, | |
| 243 | - { text: $trad("u12"), url: "javascript:i3GEO.analise.dialogo.nptPol()" }, | |
| 244 | - { text: $trad("u13"), url: "javascript:i3GEO.analise.dialogo.pontoempoligono()" }, | |
| 245 | - { text: $trad("u14"), url: "javascript:i3GEO.analise.dialogo.pontosdistri()" }, | |
| 246 | - { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u24")+'</b></span>',url: "#"}, | |
| 247 | - { text: $trad("u11"), url: "javascript:i3GEO.analise.dialogo.centroide()" }, | |
| 248 | - { text: $trad("u25"), url: "javascript:i3GEO.analise.dialogo.dissolve()" }, | |
| 249 | - { text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("u27")+'</b></span>',url: "#"}, | |
| 250 | - { text: $trad("u6"), url: "javascript:i3GEO.analise.dialogo.analisaGeometrias()" }, | |
| 251 | - { text: $trad("u10"), url: "javascript:i3GEO.analise.dialogo.buffer()" }, | |
| 252 | - { text: $trad("u26"), url: "javascript:i3GEO.analise.dialogo.agrupaElementos()" } | |
| 253 | - ] | |
| 254 | -}; | |
| 255 | -oMenuData.janelas = [ | |
| 256 | - { text: $trad("u15"), url: "javascript:initJanelaZoom('1');initJanelaZoom('2')" }, | |
| 257 | - { text: $trad("u16"), url: "javascript:i3GEO.ajuda.abreJanela()" } | |
| 258 | - ]; | |
| 259 | -oMenuData.arquivo = [ | |
| 260 | - { text: $trad("u17"), url: "javascript:i3GEO.mapa.dialogo.salvaMapa()" }, | |
| 261 | - { text: $trad("u18"), url: "javascript:i3GEO.mapa.dialogo.carregaMapa()" }, | |
| 262 | - { text: $trad("u19"), url: "javascript:i3GEO.gadgets.quadros.listaImagens()" }, | |
| 263 | - { text: $trad("u20"), url: "javascript:i3GEO.mapa.dialogo.convertews()" }, | |
| 264 | - //{ text: $trad("u20a"), url: "javascript:i3GEO.tema.dialogo.abreKml('mapfile')" }, | |
| 265 | - { text: $trad("u21"), url: "../geradordelinks.htm" } | |
| 266 | - ]; | |
| 267 | -/* | |
| 268 | -Variable: g_listaFuncoesBotoes | |
| 269 | - | |
| 270 | -Objeto com a lista de funcionalidades que serão adicionadas ao mapa. | |
| 271 | - | |
| 272 | -Essa lista pode ser modificada antes da inicialização do mapa. | |
| 273 | - | |
| 274 | -A montagem das operações é feita no iniciamma.js. | |
| 275 | - | |
| 276 | -As funcionalidades apenas são incluídas se o elemento HTML indicado em iddiv existir. Por isso, caso uma função não seja desejada, basta excluir o div do HTML utilizado no mapa. | |
| 277 | - | |
| 278 | - | |
| 279 | -Veja: | |
| 280 | - | |
| 281 | -<iniciamma.js> | |
| 282 | - | |
| 283 | -Parâmetros: | |
| 284 | - | |
| 285 | -iddiv - id do elemento onde a ferramenta será incluída | |
| 286 | - | |
| 287 | -dica - dica de tela que será acrescentada ao evento onmouseover | |
| 288 | - | |
| 289 | -conteudo - conteudo de iddiv que será acrescentado como innerHTML | |
| 290 | - | |
| 291 | -funcaoonclick - funcao que será incluida no onclick | |
| 292 | - | |
| 293 | -constroiconteudo - função que ativará a opção. Essa opção atua como a opção conteúdo, porém, executa uma função para preenchimento do div. | |
| 294 | - | |
| 295 | -*/ | |
| 296 | -g_listaFuncoesBotoes = { | |
| 297 | - "botoes": [ | |
| 298 | - { | |
| 299 | - //Insere a opção de zoom anterior e posterior. | |
| 300 | - iddiv:"historicozoom", | |
| 301 | - tipo:"", | |
| 302 | - dica:$trad("d1"), | |
| 303 | - constroiconteudo:'i3GEO.gadgets.mostraHistoricoZoom()' | |
| 304 | - }, | |
| 305 | - { | |
| 306 | - //Ativa o botão que realiza a operação de zoom para a extensão total do mapa. | |
| 307 | - iddiv:"zoomtot", | |
| 308 | - tipo:"", | |
| 309 | - dica:$trad("d2"), | |
| 310 | - funcaoonclick:function(){ | |
| 311 | - i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,g_tipoimagem,i3GEO.parametros.extentTotal); | |
| 312 | - marcadorZoom = ""; | |
| 313 | - } | |
| 314 | - }, | |
| 315 | - { | |
| 316 | - //Ativa o botão que realiza a operação de zoom interativo. | |
| 317 | - iddiv:"zoomli", | |
| 318 | - tipo:"dinamico", | |
| 319 | - dica:$trad("d3"), | |
| 320 | - funcaoonclick:function(){ | |
| 321 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
| 322 | - if(!$i("i3geoboxZoom")) | |
| 323 | - i3GEO.navega.zoomBox.criaBox(); | |
| 324 | - g_operacao='navega'; | |
| 325 | - g_tipoacao='zoomli'; | |
| 326 | - i3GEO.barraDeBotoes.ativaIcone("zoomli"); | |
| 327 | - marcadorZoom = ""; | |
| 328 | - if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()") < 0) | |
| 329 | - {i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()");} | |
| 330 | - } | |
| 331 | - }, | |
| 332 | - { | |
| 333 | - //Ativa o botão que realiza a operação de deslocamento (pan). | |
| 334 | - iddiv:"pan", | |
| 335 | - tipo:"dinamico", | |
| 336 | - dica:$trad("d4"), | |
| 337 | - funcaoonclick:function(){ | |
| 338 | - g_tipoacao='pan'; | |
| 339 | - g_operacao='navega'; | |
| 340 | - i3GEO.barraDeBotoes.ativaIcone("pan"); | |
| 341 | - if($i("img")){ | |
| 342 | - $i("img").title = ""; | |
| 343 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan","img",i3GEO.configura.locaplic); | |
| 344 | - } | |
| 345 | - marcadorZoom = ""; | |
| 346 | - panMapaInicia = function(){ | |
| 347 | - if ($i("img") && (g_tipoacao == "pan")){ | |
| 348 | - g_panM = "sim"; | |
| 349 | - if($i("corpoMapa")){ | |
| 350 | - leftinicial = parseInt($i("corpoMapa").style.left); | |
| 351 | - topinicial = parseInt($i("corpoMapa").style.top); | |
| 352 | - } | |
| 353 | - clicinicialx = objposicaocursor.imgx; | |
| 354 | - clicinicialy = objposicaocursor.imgy; | |
| 355 | - ddinicialx = objposicaocursor.ddx; | |
| 356 | - ddinicialy = objposicaocursor.ddy; | |
| 357 | - } | |
| 358 | - }; | |
| 359 | - panMapaDesloca = function(){ | |
| 360 | - if ($i("img") && (g_panM == "sim")){ | |
| 361 | - var nx = objposicaocursor.telax - leftinicial - clicinicialx; | |
| 362 | - var ny = objposicaocursor.telay - topinicial - clicinicialy; | |
| 363 | - if (i3GEO.configura.entorno == "nao"){ | |
| 364 | - var l = 0; | |
| 365 | - if (parseInt($i("i3geo").style.left)) | |
| 366 | - {var l = parseInt($i("i3geo").style.left);} | |
| 367 | - $i("img").style.left = nx - l; | |
| 368 | - var t = 0; | |
| 369 | - if (parseInt($i("i3geo").style.top)) | |
| 370 | - {var t = parseInt($i("i3geo").style.top);} | |
| 371 | - $i("img").style.top = ny - t; | |
| 372 | - } | |
| 373 | - else{ | |
| 374 | - $left("img",i3GEO.parametros.w*-1 + nx); | |
| 375 | - $left("imgS",i3GEO.parametros.w*-1 + nx); | |
| 376 | - $left("imgL",i3GEO.parametros.w + nx); | |
| 377 | - $left("imgO",i3GEO.parametros.w*-3 + nx); | |
| 378 | - $left("imgN",i3GEO.parametros.w*-1 + nx); | |
| 379 | - $top("img",i3GEO.parametros.h*-1 + ny); | |
| 380 | - $top("imgS",i3GEO.parametros.h*-1 + ny); | |
| 381 | - $top("imgL",i3GEO.parametros.h*-1 + ny); | |
| 382 | - $top("imgN",i3GEO.parametros.h*-1 + ny); | |
| 383 | - $top("imgO",i3GEO.parametros.h*-1 + ny); | |
| 384 | - } | |
| 385 | - } | |
| 386 | - }; | |
| 387 | - panMapaTermina = function(){ | |
| 388 | - if ($i("img") && (g_tipoacao == "pan")){ | |
| 389 | - marcadorZoom = ""; | |
| 390 | - g_panM = "nao"; | |
| 391 | - var res = i3GEO.navega.xy2xy(i3GEO.configura.locaplic,i3GEO.configura.sid,ddinicialx,ddinicialy,objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.parametros.mapexten,g_tipoimagem); | |
| 392 | - if(res == false){i3GEO.navega.zoompontoIMG(i3GEO.configura.locaplic,i3GEO.configura.sid,objposicaocursor.imgx,objposicaocursor.imgy)} | |
| 393 | - } | |
| 394 | - }; | |
| 395 | - if(i3GEO.eventos.MOUSEDOWN.toString().search("panMapaInicia()") < 0) | |
| 396 | - {i3GEO.eventos.MOUSEDOWN.push("panMapaInicia()");} | |
| 397 | - if(i3GEO.eventos.MOUSEMOVE.toString().search("panMapaDesloca()") < 0) | |
| 398 | - {i3GEO.eventos.MOUSEMOVE.push("panMapaDesloca()");} | |
| 399 | - if(i3GEO.eventos.MOUSEUP.toString().search("panMapaTermina()") < 0) | |
| 400 | - {i3GEO.eventos.MOUSEUP.push("panMapaTermina()");} | |
| 401 | - } | |
| 402 | - }, | |
| 403 | - { | |
| 404 | - //botão que realiza a operação de zoom in. | |
| 405 | - iddiv:"zoomiauto", | |
| 406 | - tipo:"", | |
| 407 | - dica:$trad("d5"), | |
| 408 | - funcaoonclick:function(){ | |
| 409 | - i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid); | |
| 410 | - marcadorZoom = ""; | |
| 411 | - } | |
| 412 | - }, | |
| 413 | - { | |
| 414 | - //botão que realiza a operação de zoom out | |
| 415 | - iddiv:"zoomoauto", | |
| 416 | - tipo:"", | |
| 417 | - dica:$trad("d6"), | |
| 418 | - funcaoonclick:function(){ | |
| 419 | - i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid); | |
| 420 | - marcadorZoom = ""; | |
| 421 | - } | |
| 422 | - }, | |
| 423 | - { | |
| 424 | - //botão que abre a função de identificação. | |
| 425 | - iddiv:"identifica", | |
| 426 | - tipo:"dinamico", | |
| 427 | - dica:$trad("d7"), | |
| 428 | - funcaoonclick:function() | |
| 429 | - { | |
| 430 | - if($i("img")){ | |
| 431 | - $i("img").title = ""; | |
| 432 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic); | |
| 433 | - } | |
| 434 | - i3GEO.barraDeBotoes.ativaIcone("identifica"); | |
| 435 | - g_tipoacao='identifica'; | |
| 436 | - g_operacao='identifica'; | |
| 437 | - cliqueIdentifica = function(){ | |
| 438 | - if (g_tipoacao == "identifica") | |
| 439 | - { | |
| 440 | - i3GEO.eventos.MOUSEPARADO.remove("verificaTip()"); | |
| 441 | - var janela = i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/identifica/index.htm?&x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy+'&escala='+i3GEO.parametros.mapscale,"","","Identifica"); | |
| 442 | - var temp = function(){ | |
| 443 | - i3GEO.eventos.MOUSECLIQUE.remove("cliqueIdentifica()"); | |
| 444 | - i3GEO.barraDeBotoes.ativaBotoes(); | |
| 445 | - }; | |
| 446 | - YAHOO.util.Event.addListener(janela[0].close, "click", temp); | |
| 447 | - } | |
| 448 | - }; | |
| 449 | - verificaTip = function(){ | |
| 450 | - if (g_operacao != "identifica"){return;} | |
| 451 | - //funcao default para pegar os dados | |
| 452 | - verificaTipDefault = function(){ | |
| 453 | - var retorna = function(retorno){ | |
| 454 | - var i = $i("i3geo_rosa"); | |
| 455 | - if(i){i.style.display="none";} | |
| 456 | - var mostra = false; | |
| 457 | - try{ | |
| 458 | - var retorno = retorno.data; | |
| 459 | - if ($i("img")) | |
| 460 | - {$i("img").title = "";} | |
| 461 | - if (retorno != ""){ | |
| 462 | - var res = ""; | |
| 463 | - var temas = retorno.split("!"); | |
| 464 | - var tema = temas.length-1; | |
| 465 | - if(tema >= 0){ | |
| 466 | - do{ | |
| 467 | - var titulo = temas[tema].split("@"); | |
| 468 | - if (g_tipotip == "completo" || g_tipotip == "balao") | |
| 469 | - {res += "<span style='text-align:left;font-size:9pt'><b>"+titulo[0]+"</b></span><br>";} | |
| 470 | - var ocorrencias = titulo[1].split("*"); | |
| 471 | - var ocorrencia = ocorrencias.length-1; | |
| 472 | - if(ocorrencia >= 0){ | |
| 473 | - do{ | |
| 474 | - if (ocorrencias[ocorrencia] != ""){ | |
| 475 | - var pares = ocorrencias[ocorrencia].split("##"); | |
| 476 | - var paresi = pares.length; | |
| 477 | - for (var par=0;par<paresi; par++){ | |
| 478 | - var valores = pares[par].split("#"); | |
| 479 | - if (g_tipotip == "completo" || g_tipotip == "balao"){ | |
| 480 | - res = res + "<span class='tiptexto' style='text-align:left;font-size:9pt'>" + valores[0] + " <i>" + valores[1] + "</i></span><br>"; | |
| 481 | - var mostra = true; | |
| 482 | - } | |
| 483 | - else{ | |
| 484 | - res = res + "<span class='tiptexto' style='text-align:left;font-size:9pt'><i>" + valores[1] + "</i></span><br>"; | |
| 485 | - var mostra = true; | |
| 486 | - } | |
| 487 | - } | |
| 488 | - } | |
| 489 | - } | |
| 490 | - while(ocorrencia--) | |
| 491 | - } | |
| 492 | - } | |
| 493 | - while(tema--) | |
| 494 | - } | |
| 495 | - if(!mostra){$i("tip").style.display="none";return;} | |
| 496 | - else{ | |
| 497 | - if(g_tipotip != "balao"){ | |
| 498 | - var n = i3GEO.janela.tip(); | |
| 499 | - $i(n).style.textAlign="left"; | |
| 500 | - $i(n).innerHTML += res; | |
| 501 | - } | |
| 502 | - else{ | |
| 503 | - var n = i3GEO.janela.tip("<img src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />"); | |
| 504 | - balloon = new Balloon; | |
| 505 | - balloon.delayTime = 0; | |
| 506 | - var res = "<div style=text-align:left >"+res+"</div>"; | |
| 507 | - $i(n+"cabecatip").onmouseover = function(evt){balloon.showTooltip(evt,res);}; | |
| 508 | - } | |
| 509 | - } | |
| 510 | - } | |
| 511 | - } | |
| 512 | - catch(e){} | |
| 513 | - }; | |
| 514 | - i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5"); | |
| 515 | - }; | |
| 516 | - if (g_operacao == "identifica"){ | |
| 517 | - eval(g_funcaoTip); | |
| 518 | - } | |
| 519 | - }; | |
| 520 | - if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()") < 0) | |
| 521 | - {i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()");} | |
| 522 | - if(i3GEO.eventos.MOUSEPARADO.toString().search("verificaTip()") < 0) | |
| 523 | - {i3GEO.eventos.MOUSEPARADO.push("verificaTip()");} | |
| 524 | - } | |
| 525 | - }, | |
| 526 | - { | |
| 527 | - //botão que abre a janela com o valor da extensão geográfica do mapa atual | |
| 528 | - iddiv:"exten", | |
| 529 | - tipo:"", | |
| 530 | - dica:$trad("d8"), | |
| 531 | - funcaoonclick:function() | |
| 532 | - {wdocaf("450px","340px",i3GEO.configura.locaplic+"/ferramentas/mostraexten/index.htm","","","Extensão geográfica");} | |
| 533 | - }, | |
| 534 | - { | |
| 535 | - //botão que abre a janela com o mapa de referência | |
| 536 | - iddiv:"referencia", | |
| 537 | - tipo:"", | |
| 538 | - dica:$trad("d9"), | |
| 539 | - funcaoonclick:function() | |
| 540 | - {i3GEO.maparef.inicia();} | |
| 541 | - }, | |
| 542 | - { | |
| 543 | - //botão de busca na wikipedia | |
| 544 | - iddiv:"wiki", | |
| 545 | - tipo:"", | |
| 546 | - dica:$trad("d11"), | |
| 547 | - funcaoonclick:function(){ | |
| 548 | - g_operacao = "navega"; | |
| 549 | - wdocaf("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki"); | |
| 550 | - atualizawiki = function(){ | |
| 551 | - var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | |
| 552 | - if (docel.getElementById("resultadowiki")) | |
| 553 | - {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm";} | |
| 554 | - else | |
| 555 | - {i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()");} | |
| 556 | - }; | |
| 557 | - if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizawiki()") < 0) | |
| 558 | - {i3GEO.eventos.NAVEGAMAPA.push("atualizawiki()");} | |
| 559 | - } | |
| 560 | - }, | |
| 561 | - { | |
| 562 | - //botão de busca de fotos | |
| 563 | - iddiv:"buscafotos", | |
| 564 | - tipo:"", | |
| 565 | - dica:"Fotos", | |
| 566 | - funcaoonclick:function(){ | |
| 567 | - g_operacao = "navega"; | |
| 568 | - wdocaf("550px","400px",i3GEO.configura.locaplic+"/ferramentas/buscafotos/index.htm","","","Fotos"); | |
| 569 | - i3GEO.util.criaPin(); | |
| 570 | - } | |
| 571 | - }, | |
| 572 | - { | |
| 573 | - //botão de impressão | |
| 574 | - iddiv:"imprimir", | |
| 575 | - tipo:"", | |
| 576 | - dica:$trad("d12"), | |
| 577 | - funcaoonclick:function() | |
| 578 | - {wdocaf("320px","180px",i3GEO.configura.locaplic+"/ferramentas/imprimir/index.htm","","","Imprimir");} | |
| 579 | - }, | |
| 580 | - { | |
| 581 | - //botão de localização do usuário pelo IP | |
| 582 | - iddiv:"ondeestou", | |
| 583 | - tipo:"", | |
| 584 | - dica:$trad("d13"), | |
| 585 | - funcaoonclick:function() | |
| 586 | - {i3GEO.navega.zoomIP(i3GEO.configura.locaplic,i3GEO.configura.sid);} | |
| 587 | - }, | |
| 588 | - { | |
| 589 | - //abre a opção de geração de um modelo virtual de elevação | |
| 590 | - iddiv:"v3d", | |
| 591 | - tipo:"", | |
| 592 | - dica:$trad("d14"), | |
| 593 | - funcaoonclick:function() | |
| 594 | - {wdocaf("400px","200px",i3GEO.configura.locaplic+"/ferramentas/3d/index.htm","","","3d");} | |
| 595 | - }, | |
| 596 | - { | |
| 597 | - //Ativa o botão que realiza a operação de de busca no Google | |
| 598 | - iddiv:"google", | |
| 599 | - tipo:"", | |
| 600 | - dica:$trad("d15"), | |
| 601 | - funcaoonclick:function(){ | |
| 602 | - i3GEO.util.criaBox(); | |
| 603 | - g_operacao = "navega"; | |
| 604 | - if(navn){wdocaf((i3GEO.parametros.w/2)+40+"px",(i3GEO.parametros.h/2)+50+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} | |
| 605 | - else | |
| 606 | - {wdocaf("500px","380px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} | |
| 607 | - atualizagoogle = function(){ | |
| 608 | - try{ | |
| 609 | - if (navn){ | |
| 610 | - if ($i("wdocai")) | |
| 611 | - {var doc = $i("wdocai").contentDocument;} | |
| 612 | - } | |
| 613 | - else{ | |
| 614 | - if(document.frames("wdocai")) | |
| 615 | - {var doc = document.frames("wdocai").document;} | |
| 616 | - } | |
| 617 | - if(window.parent.frames["wdocai"].panTogoogle) | |
| 618 | - {window.parent.frames["wdocai"].panTogoogle();} | |
| 619 | - else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()");} | |
| 620 | - | |
| 621 | - } | |
| 622 | - catch(e){} | |
| 623 | - }; | |
| 624 | - if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()") < 0) | |
| 625 | - {i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()");} | |
| 626 | - } | |
| 627 | - }, | |
| 628 | - { | |
| 629 | - //Ativa o botão que realiza a operação de de busca no site Scielo | |
| 630 | - iddiv:"scielo", | |
| 631 | - tipo:"", | |
| 632 | - dica:$trad("d16"), | |
| 633 | - funcaoonclick:function(){ | |
| 634 | - g_operacao = "navega"; | |
| 635 | - wdocaf("450px","190px",i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm","","","Scielo"); | |
| 636 | - atualizascielo = function(){ | |
| 637 | - try{ | |
| 638 | - var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | |
| 639 | - if (docel.getElementById("resultadoscielo")) | |
| 640 | - {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm";} | |
| 641 | - else | |
| 642 | - {i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()");} | |
| 643 | - } | |
| 644 | - catch(e){} | |
| 645 | - }; | |
| 646 | - if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()") < 0) | |
| 647 | - {i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()");} | |
| 648 | - } | |
| 649 | - }, | |
| 650 | - { | |
| 651 | - //Ativa o botão que realiza a operação de de busca no site confluence | |
| 652 | - iddiv:"confluence", | |
| 653 | - tipo:"", | |
| 654 | - dica:$trad("d17"), | |
| 655 | - funcaoonclick:function(){ | |
| 656 | - g_operacao = "navega"; | |
| 657 | - wdocaf("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","confluence"); | |
| 658 | - i3GEO.util.criaBox(); | |
| 659 | - atualizaconfluence = function(){ | |
| 660 | - var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | |
| 661 | - if (docel.getElementById("resultadoconfluence")) | |
| 662 | - {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm";} | |
| 663 | - else | |
| 664 | - {i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()")} | |
| 665 | - }; | |
| 666 | - if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaconfluence()") < 0) | |
| 667 | - {i3GEO.eventos.NAVEGAMAPA.push("atualizaconfluence()");} | |
| 668 | - } | |
| 669 | - }, | |
| 670 | - { | |
| 671 | - //Ativa o botão que abre a lente de aumento | |
| 672 | - iddiv:"lentei", | |
| 673 | - tipo:"", | |
| 674 | - dica:$trad("d18"), | |
| 675 | - funcaoonclick:function() | |
| 676 | - { | |
| 677 | - if (i3GEO.navega.lente.ESTAATIVA == "nao"){ | |
| 678 | - i3GEO.navega.lente.inicia();} | |
| 679 | - else | |
| 680 | - i3GEO.navega.lente.desativa(); | |
| 681 | - } | |
| 682 | - }, | |
| 683 | - { | |
| 684 | - //Coloca as guias em uma janela móvel | |
| 685 | - iddiv:"encolheFerramentas", | |
| 686 | - tipo:"", | |
| 687 | - dica:$trad("d19"), | |
| 688 | - funcaoonclick:function() | |
| 689 | - {docaguias();} | |
| 690 | - }, | |
| 691 | - { | |
| 692 | - //botão de reinicialização do mapa que restaura as condições iniciais do mapa | |
| 693 | - iddiv:"reinicia", | |
| 694 | - tipo:"", | |
| 695 | - dica:$trad("d20"), | |
| 696 | - funcaoonclick:function(){ | |
| 697 | - i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 698 | - i3GEO.php.reiniciaMapa(i3GEO.atualiza); | |
| 699 | - } | |
| 700 | - }, | |
| 701 | - { | |
| 702 | - //botão de medição de distâncias | |
| 703 | - iddiv:"mede", | |
| 704 | - tipo:"dinamico", | |
| 705 | - dica:$trad("d21"), | |
| 706 | - funcaoonclick:function(){ | |
| 707 | - i3GEO.barraDeBotoes.ativaIcone("mede"); | |
| 708 | - if($i("img")){ | |
| 709 | - $i("img").title = ""; | |
| 710 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"distancia","img",i3GEO.configura.locaplic); | |
| 711 | - } | |
| 712 | - g_tipoacao = ""; | |
| 713 | - i3GEO.analise.medeDistancia.inicia(); | |
| 714 | - } | |
| 715 | - }, | |
| 716 | - { | |
| 717 | - //botão de medição de área | |
| 718 | - iddiv:"area", | |
| 719 | - tipo:"dinamico", | |
| 720 | - dica:$trad("d21a"), | |
| 721 | - funcaoonclick:function(){ | |
| 722 | - i3GEO.barraDeBotoes.ativaIcone("area"); | |
| 723 | - if($i("img")){ | |
| 724 | - $i("img").title = ""; | |
| 725 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"area","img",i3GEO.configura.locaplic); | |
| 726 | - } | |
| 727 | - g_tipoacao = ""; | |
| 728 | - i3GEO.analise.medeArea.inicia(); | |
| 729 | - } | |
| 730 | - }, | |
| 731 | - { | |
| 732 | - //botão de digitalização | |
| 733 | - iddiv:"inserexy", | |
| 734 | - tipo:"dinamico", | |
| 735 | - dica:$trad("d22"), | |
| 736 | - funcaoonclick:function(){ | |
| 737 | - i3GEO.barraDeBotoes.ativaIcone("inserexy"); | |
| 738 | - g_tipoacao = ""; | |
| 739 | - i3GEO.mapa.dialogo.cliquePonto(); | |
| 740 | - if($i("img")){ | |
| 741 | - $i("img").title = "clique para inserir um ponto"; | |
| 742 | - $i("img").style.cursor="crosshair"; | |
| 743 | - } | |
| 744 | - } | |
| 745 | - }, | |
| 746 | - { | |
| 747 | - //botão de inclusão de gráficos | |
| 748 | - iddiv:"inseregrafico", | |
| 749 | - tipo:"dinamico", | |
| 750 | - dica:$trad("d23"), | |
| 751 | - funcaoonclick:function(){ | |
| 752 | - i3GEO.barraDeBotoes.ativaIcone("inseregrafico"); | |
| 753 | - g_tipoacao = ""; | |
| 754 | - i3GEO.mapa.dialogo.cliqueGrafico(); | |
| 755 | - if($i("img")){ | |
| 756 | - $i("img").title = "clique para incluir o gráfico"; | |
| 757 | - $i("img").style.cursor="pointer"; | |
| 758 | - } | |
| 759 | - } | |
| 760 | - }, | |
| 761 | - { | |
| 762 | - //botão de seleção | |
| 763 | - iddiv:"selecao", | |
| 764 | - tipo:"dinamico", | |
| 765 | - dica:$trad("d24"), | |
| 766 | - funcaoonclick:function(){ | |
| 767 | - i3GEO.barraDeBotoes.ativaIcone("selecao"); | |
| 768 | - i3GEO.selecao.janelaOpcoes(); | |
| 769 | - if($i("img")){ | |
| 770 | - $i("img").title = ""; | |
| 771 | - $i("img").style.cursor="pointer"; | |
| 772 | - } | |
| 773 | - } | |
| 774 | - }, | |
| 775 | - { | |
| 776 | - //botão de inserção de toponímia | |
| 777 | - iddiv:"textofid", | |
| 778 | - tipo:"dinamico", | |
| 779 | - dica:$trad("d25"), | |
| 780 | - funcaoonclick:function(){ | |
| 781 | - i3GEO.barraDeBotoes.ativaIcone("textofid"); | |
| 782 | - g_tipoacao = ""; | |
| 783 | - i3GEO.mapa.dialogo.cliqueTexto(); | |
| 784 | - if($i("img")){ | |
| 785 | - $i("img").title = "clique para inserir o texto"; | |
| 786 | - $i("img").style.cursor="pointer"; | |
| 787 | - } | |
| 788 | - } | |
| 789 | - } | |
| 790 | -]}; |
classesjs/depreciados.js
| ... | ... | @@ -3,11 +3,53 @@ |
| 3 | 3 | // |
| 4 | 4 | function i3GEOmantemCompatibilidade(){ |
| 5 | 5 | try{ |
| 6 | + i3GEO.configura.oMenuData = oMenuData; | |
| 7 | + } | |
| 8 | + catch(e){} | |
| 9 | + try{ | |
| 10 | + i3GEO.configura.tipoimagem = g_tipoimagem; | |
| 11 | + } | |
| 12 | + catch(e){} | |
| 13 | + try{ | |
| 14 | + i3GEO.configura.tipotip = g_tipotip; | |
| 15 | + } | |
| 16 | + catch(e){} | |
| 17 | + try{ | |
| 18 | + i3GEO.configura.funcaoTip = g_funcaoTip; | |
| 19 | + } | |
| 20 | + catch(e){} | |
| 21 | + try{ | |
| 22 | + i3GEO.configura.diminuixM = g_diminuixM; | |
| 23 | + } | |
| 24 | + catch(e){i3GEO.configura.diminuixM = 20} | |
| 25 | + try{ | |
| 26 | + i3GEO.configura.diminuixN = g_diminuixN; | |
| 27 | + } | |
| 28 | + catch(e){i3GEO.configura.diminuixN = 25} | |
| 29 | + try{ | |
| 30 | + i3GEO.configura.diminuiyM = g_diminuiyM; | |
| 31 | + } | |
| 32 | + catch(e){i3GEO.configura.diminuiyM = 106} | |
| 33 | + try{ | |
| 34 | + i3GEO.configura.diminuiyN = g_diminuiyN; | |
| 35 | + } | |
| 36 | + catch(e){i3GEO.configura.diminuiyN = 103} | |
| 37 | + try{ | |
| 38 | + i3GEO.configura.map3d = g_3dmap; | |
| 39 | + } | |
| 40 | + catch(e){} | |
| 41 | + try{ | |
| 42 | + i3GEO.configura.embedLegenda = g_embedLegenda; | |
| 43 | + } | |
| 44 | + catch(e){} | |
| 45 | + try{ | |
| 46 | + i3GEO.configura.templateLegenda = g_templateLegenda; | |
| 47 | + } | |
| 48 | + catch(e){} | |
| 49 | + try{ | |
| 6 | 50 | if(objmapa.finaliza != "") |
| 7 | 51 | i3GEO.finaliza = objmapa.finaliza |
| 8 | 52 | }catch(e){}; |
| 9 | - | |
| 10 | - | |
| 11 | 53 | g_arvoreClick = ""; |
| 12 | 54 | g_arvoreClicks = ""; |
| 13 | 55 | |
| ... | ... | @@ -618,8 +660,9 @@ function criaboxg() |
| 618 | 660 | /* |
| 619 | 661 | Function: initJanelaZoom (depreciado) |
| 620 | 662 | */ |
| 621 | -function initJanelaZoom(qual) | |
| 622 | -{alert("initJanelaZoom foi depreciado. Utilize i3GEO.barraDeBotoes");} | |
| 663 | +function initJanelaZoom(qual){ | |
| 664 | + i3GEO.barraDeBotoes.reativa(qual-1); | |
| 665 | +} | |
| 623 | 666 | /* |
| 624 | 667 | Function: sobeferramentas(depreciado) |
| 625 | 668 | */ | ... | ... |
classesjs/i3geonaocompacto.js
| ... | ... | @@ -32,10 +32,12 @@ var jsfiles = new Array( |
| 32 | 32 | "../pacotes/balloon-tooltips/htdocs/js/balloon.config.js", |
| 33 | 33 | "../pacotes/balloon-tooltips/htdocs/js/balloon.js", |
| 34 | 34 | "classe_i3geo.js", |
| 35 | +"classe_util.js", | |
| 36 | +"dicionario.js", | |
| 37 | +"classe_idioma.js", | |
| 35 | 38 | "classe_php.js", |
| 36 | 39 | "classe_configura.js", |
| 37 | 40 | "depreciados.js", |
| 38 | -"classe_util.js", | |
| 39 | 41 | "classe_calculo.js", |
| 40 | 42 | "classe_desenho.js", |
| 41 | 43 | "classe_interface.js", |
| ... | ... | @@ -43,8 +45,6 @@ var jsfiles = new Array( |
| 43 | 45 | "classe_tema.js", |
| 44 | 46 | "classe_analise.js", |
| 45 | 47 | "classe_maparef.js", |
| 46 | -"dicionario.js", | |
| 47 | -"classe_idioma.js", | |
| 48 | 48 | "classe_ajuda.js", |
| 49 | 49 | "classe_janela.js", |
| 50 | 50 | "classe_guias.js", |
| ... | ... | @@ -53,7 +53,6 @@ var jsfiles = new Array( |
| 53 | 53 | "classe_selecao.js", |
| 54 | 54 | "classe_eventos.js", |
| 55 | 55 | "classe_arvoredetemas.js", |
| 56 | -"configura.js", | |
| 57 | 56 | "classe_barradebotoes.js", |
| 58 | 57 | "../pacotes/richdraw/richdraw_tudo_compacto.js", |
| 59 | 58 | "classe_gadgets.js" | ... | ... |
classesphp/funcoes_gerais.php
| ... | ... | @@ -848,7 +848,7 @@ function retornaReferenciaDinamica() |
| 848 | 848 | $original = $r->minx." ".$r->miny." ".$r->maxx." ".$r->maxy; |
| 849 | 849 | $mapa->setmetadata("referenciaextentoriginal",$original); |
| 850 | 850 | } |
| 851 | - $s .= ";objmapa.extentref = '".$r->minx." ".$r->miny." ".$r->maxx." ".$r->maxy."';"; | |
| 851 | + $s .= ";var extentref = '".$r->minx." ".$r->miny." ".$r->maxx." ".$r->maxy."';"; | |
| 852 | 852 | $d = (abs($r->maxx - $r->minx)) / ($objImagem->width); |
| 853 | 853 | $s .= "g_celularef = ".$d.";"; |
| 854 | 854 | $emt = $objMapa->extent; | ... | ... |
classesphp/parse_cgi.php
| ... | ... | @@ -51,6 +51,7 @@ session_id($g_sid); |
| 51 | 51 | session_start(); |
| 52 | 52 | $mapext = $temp; |
| 53 | 53 | $map_file = $_SESSION["map_file"]; |
| 54 | + | |
| 54 | 55 | include_once("../ms_configura.php"); |
| 55 | 56 | if(isset($fingerprint)) |
| 56 | 57 | { |
| ... | ... | @@ -76,6 +77,18 @@ foreach ($layersNames as $layerName) |
| 76 | 77 | $layer = $map->getLayerByname($layerName); |
| 77 | 78 | if ($layer->getmetadata("classesnome") != "") |
| 78 | 79 | {autoClasses(&$layer,$map);} |
| 80 | + if($layer->type == MS_LAYER_POLYGON) | |
| 81 | + { | |
| 82 | + $nclasses = $layer->numclasses; | |
| 83 | + for($i=0;$i<$nclasses;++$i){ | |
| 84 | + $classe = $layer->getclass($i); | |
| 85 | + $nestilos = $classe; | |
| 86 | + for($j=0;$j<$nestilos;++$j){ | |
| 87 | + $estilo = $classe->getstyle($j); | |
| 88 | + $estilo->set("symbolname","pt1"); | |
| 89 | + } | |
| 90 | + } | |
| 91 | + } | |
| 79 | 92 | } |
| 80 | 93 | if(isset($map_size)) |
| 81 | 94 | { |
| ... | ... | @@ -87,6 +100,7 @@ if(isset($mapext)) |
| 87 | 100 | $mapext = explode(" ",$mapext); |
| 88 | 101 | $map->setExtent($mapext[0],$mapext[1],$mapext[2],$mapext[3]); |
| 89 | 102 | } |
| 103 | +//$map->save($map_file); | |
| 90 | 104 | $s = $map->scalebar; |
| 91 | 105 | $s->set("status",MS_OFF); |
| 92 | 106 | $map_imagecolor = explode(" ",$map_imagecolor); | ... | ... |
menutemas/admin.db
No preview for this file type