openlayers_t.htm
7.47 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no;">
<meta name="HandheldFriendly" content="yes" />
<meta name="MobileOptimized" content="width" />
<meta name="apple-mobile-web-app-capable" content="yes">
<title>i3GEO - OpenLayers</title>
<style>
.listaMenuTitulo{
font-size: 13px;
text-align: left;
margin-left: 5px;
margin-top: 6px;
}
.listaMenuItem{
font-size:11px;
text-align: left;
margin-left:15px;
margin-top: 6px;
}
</style>
</head>
<body id="i3geo" >
<table id='mst' summary="" style='display:none;' cellspacing='0'>
<tr style="border:0px">
<td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td>
</tr>
<tr>
<td style=text-align:center; >
<div style="top:0px;cursor:pointer;border-bottom: 1px solid #A3A3A3">
<div id=guia4 class=guia >Legenda</div>
<div id=guia1 class=guia >Camadas</div>
<div id=guia2 class=guia >Catálogo</div>
<div id=guia6 class=guia >+</div>
</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="background-image:url('../imagens/i3geo1bw.jpg');"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id='guia4obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; >
<div id='legenda' style='text-align:left'></div>
</div>
<div id='guia1obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; >
<div style='left:5px;top:10px;' id=buscaRapida ></div>
<div id=listaPropriedades style='top:15px;' ></div>
<div id=listaLayersBase style='top:15px;'></div>
<div id=listaTemas style='top:15px;'></div>
<br><br>
</div>
<div id='guia2obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; ><img alt="" src="../imagens/branco.gif" width=248 /></div>
<div id='guia6obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; >
<div id=i3GEOcompartilhar style="text-align:center;border-top:0px solid rgb(250,250,250);padding-top:1px;" ></div><br>
<table><tr><td>Escala 1:</td><td><div id=escala style="text-align:left;width:100px;display:inline-table;" ></div></td></tr></table>
<div id=menuLista style='text-align:left'></div>
</div>
<div id=seletorIdiomas style="position:absolute;top:15px;left:5px;z-index:20000" ></div>
<script src="../classesjs/i3geo5.js"></script>
<!--<script src="../pacotes/openlayers/OpenLayers29.js.php"></script>-->
<script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
<script>
/*
Interface Openlayers para tablets
Abre o i3geo com todas as suas funcionalidades e interface de navegação controlada pela API Openlayers adaptada para dispositivos do tipo tablet.
File: i3geo/interface/openlayers_t.htm
Exemplo:
http://<host>/i3geo/ms_criamapa.php
http://<host>/i3geo/interface/openlayers_T.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";
i3GEO.Interface.ALTTABLET = "";
//ativa ou desativa o balao de info ao clicar no mapa
i3GEO.eventos.cliquePerm.ativo = true;
//
i3GEO.Interface.openlayers.GADGETS = {
PanZoomBar:false,
PanZoom:false,
LayerSwitcher:false,
ScaleLine:false,
OverviewMap:false
};
i3GEO.Interface.openlayers.TILES = true;
i3GEO.barraDeBotoes.INCLUIBOTAO = {
zoomli: true,
mede: true,
area: true,
imprimir: true,
zoomiauto: true,
zoomoauto: true,
pan: true,
zoomtot:true,
identifica: true,
identificaBalao: false,
reinicia: false,
exten: false,
selecao: true,
referencia: true,
inserexy: false,
textofid: false,
google: true,
buscafotos: false,
wiki: false,
metar: false,
lentei: false,
confluence: false,
inseregrafico: false,
v3d: false
};
i3GEO.Interface.TABLET = true;
i3GEO.configura.diminuiyN = 35;
/*
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
*/
i3GEO.barraDeBotoes.TIPO = "olhodepeixe";
//ajusta o deslocamento da barra de botões
i3GEO.barraDeBotoes.OFFSET = -3;
i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true;
i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true;
i3GEO.guias.TIPO = "tablet";
i3GEO.guias.CONFIGURA.temas.titulo = $trad("t1");
i3GEO.idioma.IDSELETOR = "seletorIdiomas";
i3GEO.configura.mapaRefDisplay = "none";
i3GEO.mapa.AUTORESIZE = true;
i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = 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/";
//
//adiciona camadas que podem ser ativadas como fundo do mapa
//
(function(){
var bra = new OpenLayers.Layer.WMS(
"Base carto MMA",
"http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map",
{layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false},
{isBaseLayer:true,visibility:false}
);
var osm = new OpenLayers.Layer.WMS(
"Open Street Map",
"http://full.wms.geofabrik.de/std/demo_key",
{layers:""},
{isBaseLayer:true,visibility:false}
);
i3GEO.Interface.openlayers.LAYERSADICIONAIS = [bra,osm];
})();
//
//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];
//
//
//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
//
i3GEO.inicia();
/*
YAHOO.util.Event.addListener(document.body, "click", YAHOO.util.Event.preventDefault);
YAHOO.util.Event.addFocusListener(document.body, YAHOO.util.Event.preventDefault);
*/
</script>
</body>
</html>