osmdebug.htm
12.7 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<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 - OpenLayers</title>
<style>
.olControlEditingToolbar1 div {
background-image: url(../mashups/openlayers.png);
background-repeat: no-repeat;
float: right;
right: 0px;
height: 29px;
margin: 2px;
width: 29px;
cursor: pointer;
}
</style>
</head>
<body id="i3geo" style="background-color: white">
<!-- inclui o nome do usuario logado -->
<div id="i3GEONomeLogin"
style="position: absolute; left: 10px; top: 12px; font-size: 11px; z-index: 50000"></div>
<table id='mst' summary="" style='display: none;' width=100%
cellspacing='0'>
<tr style="border: 0px">
<td id="barraSuperior"
style="background-image: url('../imagens/visual/default/cabeca.png'); height: 10px"></td>
</tr>
<tr>
<td id="contemMenu"
style="text-align: right; border-width: 0pt 0pt 1px; border-color: rgb(240, 240, 240)">
<!--menu suspenso-->
<div id="menus"></div>
</td>
</tr>
<tr>
<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="position: relative; background-image: url('../imagens/i3geo1bw.jpg');"></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width=100%>
<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>
--> <!-- botão de compartilhamento em redes sociais-->
<div id=i3GEOcompartilhar
style="width: 170px; margin: auto; text-align: left; border-top: 1px solid rgb(250, 250, 250); padding-top: 1px"></div>
<!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo -->
<div id=tempoRedesenho
style="z-index: 100; position: absolute; top: 0px; color: green; background-color: black; width: 50px; display: none"></div>
</td>
<td class=tdbranca>
<!-- aqui será incluída a escala numérica -->
<div id=escala style="margin: auto; text-align: right;"></div>
</td>
<td class=tdbranca>
<!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse -->
<div id=localizarxy
style="margin: auto; text-align: left; font-size: 10px; display: inline-table"></div>
</td>
<!-- aqui serão incluídas as bandeiras que permitem a troca de idioma -->
<td class=tdbranca>
<div id=seletorIdiomas></div>
</td>
</tr>
</table>
</td>
</tr>
<tr style="border: 0px">
<td id="barraInferior"
style="background-image: url('../imagens/visual/default/rodape.png'); height: 10px"></td>
</tr>
</table>
<table id="i3GEOlogoMarca"
style='margin: 0px auto; box-shadow: 0 1px 13px gray; border-radius: 5px;'>
<tr>
<td><div id=versaoi3geo></div>
<h2
style="font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif;">i3Geo
- Software livre para criação de mapas interativos e
geoprocessamento</h2>
<h3
style="font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif;">Baseado
no Mapserver, é licenciado sob GPL e integra o Portal do
Software Público Brasileiro</h3></td>
</tr>
<tr>
<td style="padding: 10px;"><img
style="width: 560px; height: 81px" alt=""
src='../imagens/logo_inicio.png'></td>
</tr>
<tr>
<td>
<!--
<script id="ohloh" type="text/javascript" src="http://www.ohloh.net/p/150688/widgets/project_users.js?style=red"></script>
-->
</td>
</tr>
</table>
<div id="i3GEOguiaMovel"
style="position: absolute; display: block; border: 0px solid white; text-align: left; z-index: 2000; background-color: none">
<img id="i3GEOguiaMovelPuxador"
onclick='i3GEO.guias.guiaMovel.abreFecha()'
style='z-index: 2; border: solid 0px white; left: 0px; position: absolute; top: 0px'
width='0px' src='../imagens/openbars.png'>
<div id="i3GEOguiaMovelMolde"
style="box-shadow: -2px 0 2px gray; border-radius: 5px 0px 0px 5px; position: absolute; display: none; border: 0px solid white; text-align: left; z-index: 1000; background-color: gray">
<div id="i3GEOguiaMovelIcones"
style='overflow: none; left: 0px; display: none; position: absolute; top: 0px; text-align: center; height: 0px; width: 0px; border: solid 0px white; background-color: white'></div>
<div id="i3GEOguiaMovelConteudo"
style='overflow: auto; display: none; position: absolute; border-color: gray; border-width: 0px 0 0px 0px; left: 0px; height: 0px; background-color: white'>
<div id='guia1obj' style='display: none;'>
<!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico -->
<div style='left: 5px; top: 10px;' id=buscaRapida></div>
<!-- Esta div acrescenta a lista de propriedades do mapa -->
<div id=listaPropriedades style='top: 15px;'></div>
<!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' específicas da interface Openlayers. Veja também a opção i3GEO.Interface.openlayers.GADGETS.LayerSwitcher -->
<div id=listaLayersBase style='top: 15px;'></div>
<!-- Esta div acrescenta a lista de de camadas disponíveis no mapa atual -->
<div id=listaTemas style='top: 15px;'></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>
</div>
</div>
</div>
<script src="../classesjs/i3geonaocompacto.js"></script>
<script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
<!-- estilo necessário para a ferramenta de edição -->
<script>
/*
Interface Openlayers para debug
Abre o i3geo com todas as suas funcionalidades e interface de navegação controlada pela API Openlayers.
File: i3geo/interface/openlayers.htm
Exemplo:
http://<host>/i3geo/ms_criamapa.php
http://<host>/i3geo/interface/openlayers.htm
http://<host>/i3geo
Para definir quais botões das barras de ferramentas serão incluídos no mapa, veja: <classe_barradebotoes.js> i3GEO.barraDeBotoes.INCLUIBOTAO
*/
/*
Indica a localização correta do i3geo.
É utilizada para identificar o local correto onde estão os programas em php que são utilizados.
Se não for definida, o i3Geo tentará encontrar o local automaticamente com base na tag javascript
*/
//i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
/*
Para outras configurações, veja i3geo/classesjs/classe_configura.js
exemplo
i3GEO.configura.autotamanho = true;
*/
i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
i3GEO.configura.autotamanho = false;
i3GEO.Interface.ATUAL = "openlayers";
i3GEO.Interface.IDCORPO = "contemImg";
//ativa ou desativa o balao de info ao clicar no mapa
i3GEO.eventos.cliquePerm.ativo = true;
//
//define a funcao que sera executada ao clicar no mapa
//default (balao do tipo etiqueta)
i3GEO.eventos.MOUSECLIQUEPERM = [i3GEO.configura.funcaoTip];
//alternativo (janela de identificacao
//i3GEO.eventos.MOUSECLIQUEPERM = [i3GEO.configura.funcaoIdentifica];
//
i3GEO.Interface.openlayers.GADGETS = {
PanZoomBar:true,
PanZoom:false,
LayerSwitcher:true,
ScaleLine:true,
OverviewMap:false
};
i3GEO.Interface.openlayers.TILES = true;
/*
i3GEO.Interface.openlayers.parametrosMap.scales = [
105000000,50000000,21000000,10000000,5000000,1000000,500000,250000,100000,50000,25000,10000,5000,1000,100
];
i3GEO.Interface.openlayers.parametrosMap.numzoom = 18;
*/
//
//controla o tamanho da barra de zoom
//
//i3GEO.Interface.openlayers.MINEXTENT = [-0.001, -0.001, 0.001, 0.001]
//
//
//desabilita o item que abre a interface "default" do menu suspenso
//
i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}';
/*
Após a criação, é criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers.
Vc pode usar i3geoOL para aplicar os métodos e verificar as propriedades da API do OpenLayers
*/
i3GEO.cria();
/*
Inicializa o mapa
*/
//não mostra o mapa de referência
i3GEO.configura.mapaRefDisplay = "none";
//tipo de barra de botões
i3GEO.barraDeBotoes.TIPO = "olhodepeixe";
//ajusta o deslocamento da barra de botões
i3GEO.barraDeBotoes.OFFSET = -3;
//ajusta a posição da barra de botões no IE
//if(navm)
//{i3GEO.barraDeBotoes.OFFSET = -45;}
//número máximo de botões na barra de botões inicial
//i3GEO.barraDeBotoes.MAXBOTOES = 10;
//remove itens dos menus que não são necessários, já que estão como ícones na barra de botões
i3GEO.configura.oMenuData["submenus"]["janelas"] = [];
i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = true;
//
//barra de botoes normal. descomente para usar
/*
i3GEO.barraDeBotoes.TIPO = "yui";
i3GEO.barraDeBotoes.AUTOALTURA = true;
i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false;
i3GEO.barraDeBotoes.PERMITEFECHAR = false;
i3GEO.barraDeBotoes.PERMITEDESLOCAR = false;
i3GEO.barraDeBotoes.AUTO = true;
i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja";
i3GEO.Interface.BARRABOTOESLEFT = 0;
i3GEO.Interface.BARRABOTOESTOP = 2;
i3GEO.Interface.BARRADEZOOMTOP = 10;
i3GEO.Interface.BARRADEZOOMLEFT = 40;
*/
i3GEO.ajuda.ATIVAJANELA = false;
i3GEO.idioma.IDSELETOR = "seletorIdiomas";
i3GEO.Interface.ATIVAMENUCONTEXTO = false;
i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true;
i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true;
i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false;
i3GEO.mapa.AUTORESIZE = true;
i3GEO.guias.TIPO = "movel";
//i3GEO.guias.guiaMovel.ABERTA = true;
//posição da guia movel em relação ao topo do mapa. Se for igual a 0, o cálculo será feito de forma automática
i3GEO.guias.guiaMovel.config.topGuiaMovel = 0;
//
//define quanto tempo é aguardado para considerar que o mouse está parado sobre um lugar.
//utilizado pela função de identificação do tipo balão
//
//i3GEO.configura.tempoMouseParado = 1000
//
//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/";
//
//adiciona camadas que podem ser ativadas como fundo do mapa
//
(function(){
//http://maps.stamen.com/#watercolor/12/37.7706/-122.3782
var aquarela = new OpenLayers.Layer.OSM(
"Aquarela",
"http://tile.stamen.com/watercolor/${z}/${x}/${y}.jpg",
{
isBaseLayer:true,
visibility: true
}
);
var osm = new OpenLayers.Layer.OSM(
"OSM",
"http://tile.openstreetmap.org/${z}/${x}/${y}.png",
{
isBaseLayer:true,
visibility: false
}
);
i3GEO.Interface.openlayers.LAYERSADICIONAIS = [aquarela,osm];
})();
//
//substitui a janela de alerta normal do navegador por uma janela estilizada. Pode ser comentado sem problemas. No Safari apresentou problemas.
//
i3GEO.janela.ativaAlerta();
//
//inicia o mapa
//
//esconde a logomarca ao finalizar o mapa
i3GEO.finaliza = function(){
if($i("i3GEOlogoMarca"))
{$i("i3GEOlogoMarca").style.display = "none";}
i3GEO.mapa.insereDobraPagina("googlemaps","../imagens/dobragooglemaps.png");
};
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true;
//OpenLayers.DOTS_PER_INCH = 96
//i3GEO.configura.sid = "";
i3GEO.janela.TRANSICAOSUAVE = true;
//define que sera usada a projecao google
i3GEO.Interface.openlayers.googleLike = true;
i3GEO.inicia();
</script>
</body>
</html>