cursodsv23.htm
4.57 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
<!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>
<script src="../classesjs/i3geo.js"></script>
<script src="../pacotes/openlayers/OpenLayers2131.js"></script>
<link rel="stylesheet" type="text/css" href="../css/black.css">
</head>
<body style='background:white;' class=yui-skin-sam >
<div style="left:5px;top:100px">
<div id="menuSuspenso" style="width:750px;left:50px;">
</div>
<div id=i3geo >
<div id=corpoMapa style="width:750px;height:400px;background-image:url('../imagens/i3geo1bw.jpg');">
</div>
</div>
</div>
<div id=barraDeIcones ></div>
<style>
#menuSuspenso .bd{
background: black;
}
#barraDeIcones {
border: 0px solid black;
border-radius: 4px;
height: 50px;
margin: 5px;
padding: 1px;
position: relative;
top: 0px;
width: 510px;
z-index: 5000;
overflow: hidden;
}
#barraDeIcones_mascara {
z-index: -1;
opacity: 0.4;
display: block;
position: absolute;
width: 100%;
height: 100%;
background: none repeat scroll 0 0 black;
border-radius: 4px;
overflow: hidden;
}
#barraDeIcones img {
margin-left: 10px;
}
</style>
<script>
/************
Nesse exemplo a barra de botoes e inserida em um DIV, posicionado fora do mapa.
************/
i3GEO.idioma.MOSTRASELETOR = false; //para nao mostrar as bandeiras de escolha do idioma
i3GEO.configura.mapaRefDisplay = "none";//nao mostra o mapa de referencia
i3GEO.mapa.TEMASINICIAISLIGADOS = "mundo";
//parametros da interface OpenLayers
i3GEO.Interface.openlayers.GADGETS = {
PanZoomBar : false,
PanZoom : false,
LayerSwitcher : false,
ScaleLine : true,
OverviewMap : false
};
//parametros para o menu
i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso = {
permiteLogin: true,
marcadores: true,
idhtml:"menuSuspenso",
deslocaEsquerda:0,
parametrosYUI: {iframe:false,autosubmenudisplay: false, showdelay: 200, hidedelay: 500, lazyload: false}
};
i3GEO.configura.oMenuData = {
menu:[
{nome:$trad("s1"),id:"ajudaMenu"}
],
submenus:{
"ajudaMenu": [
{ id:"omenudataAjudamenu9",text: $trad("x68"), url: "javascript:i3GEO.janela.tempoMsg(i3GEO.parametros.mensageminicia)" },
{ id:"omenudataAjudamenu2",text: $trad("u2"), url: "javascript:i3GEO.ajuda.abreDoc()" },
{ id:"omenudataAjudamenu3",text: $trad("u4a"), url: "javascript:i3GEO.ajuda.abreDoc('/documentacao/manual-i3geo-6_0-pt.pdf')" },
{ id:"omenudataAjudamenu4",text: $trad("u4"), url: "http://www.softwarepublico.gov.br/dotlrn/clubs/i3geo/file-storage/index?folder%5fid=22667525", target:"_blank" },
{ id:"omenudataAjudamenu5",text: $trad("u5a"), url: "http://www.softwarepublico.gov.br", target:"_blank" },
{ id:"omenudataAjudamenu1",text: $trad("x67"), url: "http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332", target:"_blank" },
{ id:"omenudataAjudamenu7",text: $trad("u5b"), url: "javascript:i3GEO.ajuda.abreDoc('/ajuda_usuario.php')"},
{ id:"omenudataAjudamenu8",text: $trad("u5c"), url: "javascript:i3GEO.ajuda.redesSociais()" }
]
}
};
i3GEO.cria();
//
//parametros da barra de botoes
//
i3GEO.barraDeBotoes.TIPO = "emlinha";
//altera um dos icones de botoes ja existentes
i3GEO.barraDeBotoes.ICONEBOTAO.abreJanelaLegenda = "/imagens/gisicons/legend-add.png";
//adiciona um botao novo com suas funcoes especificas
//aciona funcao ajax definida em i3GEO.php
i3GEO.barraDeBotoes.adicionaBotao(
{
iddiv:"meubotao",
tipo:"",
dica:"Meu Botão",
titulo: "Meu Botão",
icone: "/imagens/oxygen/22x22/user-online.png",
funcaoonclick:function(){
var temp = function(retorno){
alert(retorno.data);
};
i3GEO.php.listaTemas(temp,"polygon");
}
}
);
//define quais os botoes serao mostrados
i3GEO.barraDeBotoes.INCLUIBOTAO = {
meubotao : true, //botao novo
abreJanelaLegenda: true,
localizar: true,
zoomanterior: true,
zoomli: true,
zoomproximo: true,
zoomiauto: false,
zoomoauto: false,
pan: false,
zoomtot: false,
identifica: false,
identificaBalao: false,
mede: false,
area: false,
selecao: false,
barraedicao: false,
imprimir: false,
google: false,
referencia: false,
exten: false,
inserexy: false,
textofid: false,
reinicia: false,
buscafotos: false,
wiki: false,
metar: false,
lentei: false,
confluence: false,
inseregrafico: false,
v3d: false
};
i3GEO.finaliza = function(){
//cria o div com id "barraDeIcones" e insere a barra
//
i3GEO.barraDeBotoes.inicializaBarra("","",false,0,0,"barraDeIcones");
};
i3GEO.inicia();
</script>
</body>
</html>