openlayers.htm
14.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Category" content="I3Geo Mapa interativo MMA geoprocessamento sig mobile">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<title>i3Geo - Mapa interativo</title>
<script type="text/javascript" src="../classesjs/i3geo.js"></script>
<script type="text/javascript" src="../pacotes/openlayers/OpenLayers.js.php"></script>
<link rel="stylesheet" href="../pacotes/openlayers/theme/default/style.css" type="text/css" />
<style>
.yui-log .i3geo {background-color:yellow;} /* customize a color */
.yui-log .redesenho {background-color:yellow;} /* customize a color */
.yui-log .janela {background-color:yellow;} /* customize a color */
.yui-log-bd {text-align:left;}
.yui-log-entry yui-log-verbose, p{text-align:left;}
.info {text-align:left;}
</style>
</head>
<body id="i3geo">
<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'>
<!--
Inclui a barra superior. Se vc não quiser o menu, é só comentar o TR
-->
<tr style="border:0px">
<td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td>
</tr>
<tr>
<td>
<table width=100% cellspacing=0 cellpadding=0 >
<tr>
<td title="libera guias" class=tdclaro id=encolheFerramentas style="vertical-align:top;width:5px;text-align:left;"></td>
<td>
<!--
Guias principais, não mude o ID, apenas o nome se for desejado
-->
<div class=verdeescuro style="top:0px;cursor:pointer;">
<div id=guia1 class=guia >Temas</div>
<div id=guia2 class=guia >Adiciona</div>
<div id=guia4 class=guia >Legenda</div>
<div id=guia5 class=guia >Links</div>
</div>
</td>
</tr>
</table>
</td>
<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)">
<!--
menu suspenso
-->
<div id="menus" ></div>
</td>
</tr>
<tr>
<td class=tdbranca id=contemFerramentas style="vertical-align:top;width:268px;text-align:left;">
<!--
Esta div acrescenta a lista de propriedades do mapa, caso vc queira colocá-la em um lugar específico
-->
<!--<div id=listaPropriedades ></div>-->
<!--
Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico
-->
<!-- <div id=buscaRapida ></div> -->
<!--
As divs guiaNobj guardam o conteúdo que é mostrado quando a guia é clicada
Para cada botão na guia deve haver um div com o conteúdo, pe.
o div com id=guia1 deve ter um div com id=guia1obj
-->
<div id='guia1obj' >
<div style='left:5px;top:10px;' id=buscaRapida ></div>
<div id=listaPropriedades style='top:15px;' ></div>
<div id=listaTemas style='top:15px;'></div>
<!-- se vc quiser colocar a arvore de adição de temas em um lugar específico, use o div abaixo, caso contrário, a árvore será colocada na guia definida em objmapa.guiaMenu
<div id=arvoreAdicionaTema style='top:25px;' ></div>
<div id=outrasOpcoesAdiciona style='top:25px;' ></div>
-->
</div>
<div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div>
<div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div>
<div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div>
</td>
<td style="vertical-align:top;border-width:0px;">
<table width="100%" style="vertical-align:top;border-width:0px">
<tr><td class=verdeclaro id=contemImg >
<div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class=tdbranca >
<!--
Nesse div são incluídos os ícones que permitem ao usuário modificar o visual de cores dos ícones
<div id=visual ></div>
-->
<!-- aqui serão incluídas as bandeiras que permitem a troca de idioma -->
<div id="seletorIdiomas" ></div>
<!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo -->
<div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div>
</td>
<td class=tdbranca >
<table width=100% ><tr>
<td class=tdbranca ></td>
<td class=tdbranca style=text-align:center >
<!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse -->
<div id=localizarxy style="text-align:left;font-size:10px;">Aguarde...</div>
</td>
<td class=tdbranca >
<!-- aqui será incluída a escala numérica -->
<div id=escala ></div>
</td>
<!--
A opção de localização 'onde estou?' baseia-se na identificação do IP do usuário. Para
que esta opção funcione corretamente, deve estar instalado no I3Geo o pacote geoIP. Veja no
SVN do portal do software público o diretório arquivos_versões/pacotes para maiores informações
-->
<td class=tdbranca ><div id=ondeestou ></div></td>
</tr>
<!-- esta div recebe o cálculo do posicionamento do mouse em coordenadas UTM
As coordenadas UTM apenas serão mostradas nessa div se o parâmetro
i3GEO.gadgets.mostraCoordenadasUTM.idhtml for diferente de i3GEO.gadgets.mostraCoordenadasGEO.idhtml
se os IDs forem iguais, o tipo de coordenada mostrada será intercalada, ora UTM ora GEO.
<tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:8px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr>
-->
</table>
</td>
</tr>
<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr>
<!-- aqui são mostradas imagens obtidas do metadata mensagem que pode existir em cada layer -->
<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>
<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr>
</table>
<div id=barraDeBotoes2 style='display:none'>
<table style="width:100%"><caption style="text-align:center"> </caption>
<tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr>
</table>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="desloca" alt="" src="../imagens/branco.gif" id='pan'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="info" alt="" src="../imagens/branco.gif" id='identifica'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="geral" alt="" src="../imagens/branco.gif" id='zoomtot'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="mede" alt="" src="../imagens/branco.gif" id='mede'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="google" alt="" src="../imagens/branco.gif" id='google'/>
</div>
<div style='display:inline;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/>
</div>
<div style='display:none;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/>
</div>
<div style='display:none;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/>
</div>
<div style='display:none;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/>
</div>
<div style='display:none;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/>
</div>
<div style='display:none;background-color:rgb(250,250,250);'>
<p style='font-size:2px;'> </p>
<img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/>
</div>
<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>
</div>
<!-- Variáveis globais e inicialização do mapa-->
<script type="text/javascript">
/*
Title: Interface normal
Abre o i3geo com todas as suas funcionalidades.
File: i3geo/aplicmap/geral.htm
Exemplo:
http://<host>/i3geo/ms_criamapa.php
*/
/*
Indica a localização correta do i3geo.
É utilizada para identificar o local correto onde estão os programas em php que são utilizados.
*/
i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens";
i3GEO.interface.ATUAL = "openlayers";
i3GEO.interface.IDCORPO = "contemImg";
i3GEO.configura.diminuixN = 20
i3GEO.configura.listaDePropriedadesDoMapa = {
"propriedades": [
{ text: "p10", url: "javascript:i3GEO.mapa.dialogo.gradeCoord()"},
{ text: "p12", url: "javascript:i3GEO.mapa.dialogo.autoredesenha()"}
]
}
i3GEO.configura.oMenuData = {
menu:[
{nome:$trad("s1"),id:"ajudaMenu"},
{nome:$trad("s2"),id:"analise"},
{nome:$trad("s4"),id:"arquivos"},
{nome:$trad("d27"),id:"interface"}
],
submenus:{
"ajudaMenu": [
{ text: $trad("u1"), url: "http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332", target:"_blank" },
{ text: $trad("u2"), url: "javascript:i3GEO.ajuda.abreDoc()" },
{ text: $trad("u3"), url: "http://pt.wikibooks.org/wiki/I3geo", target:"_blank" },
{ text: $trad("u4"), url: "http://mapas.mma.gov.br/wikibooki3geo", target:"_blank" },
{ text: $trad("u5a"), url: "http://www.softwarepublico.gov.br", target:"_blank" },
{ text: "i3Geo Blog", url: "http://sistemas.mma.gov.br/blogs/index.php?blog=6", target:"_blank" },
{ text: "Lista de funções", url:"http://mapas.mma.gov.br/i3geo/ajuda_usuario.php", target:"_blank" }
],
"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()" }
],
"arquivos": [
{ text: $trad("u17"), url: "javascript:i3GEO.mapa.dialogo.salvaMapa()" },
{ text: $trad("u18"), url: "javascript:i3GEO.mapa.dialogo.carregaMapa()" },
{ text: $trad("u20"), url: "javascript:i3GEO.mapa.dialogo.convertews()" },
{ text: $trad("u20a"), url: "javascript:i3GEO.mapa.dialogo.convertekml()" },
{ text: $trad("u21"), url: "../geradordelinks.htm" }
],
"interface": [
{ text: "Normal", url: "javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/geral.htm?'+i3GEO.configura.sid" },
{ text: "Google Earth", url: "javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/googleearth.phtml?'+i3GEO.configura.sid" }
]
}
}
i3GEO.cria()
/*
Inicializa o mapa
*/
i3GEO.barraDeBotoes.AUTOALTURA = false
i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false
i3GEO.barraDeBotoes.PERMITEFECHAR = true
i3GEO.barraDeBotoes.PERMITEDESLOCAR = true
i3GEO.interface.BARRABOTOESLEFT = 50
i3GEO.interface.BARRABOTOESTOP = 10
i3GEO.idioma.IDSELETOR = "seletorIdiomas"
i3GEO.interface.ATIVAMENUCONTEXTO = true
//
//esta é uma variável interna do OpenLayers que define o endereço do diretório onde estão as imagens usadas nos ícones
//
OpenLayers.ImgPath = "../pacotes/openlayers/img/"
i3GEO.inicia();
</script>
</body>
</html>