Commit 3bfcb25956e61d9a546e7e479a49d01673ad2ecd
1 parent
d108e330
Exists in
master
and in
7 other branches
Inclusão da validação da biblioteca php5-imagick
Showing
5 changed files
with
371 additions
and
281 deletions
Show diff stats
classesphp/mapa_googlemaps.php
classesphp/mapa_openlayers.php
interface/openlayers.htm
... | ... | @@ -8,313 +8,400 @@ |
8 | 8 | <!-- estilo necessário para a ferramenta de edição --> |
9 | 9 | |
10 | 10 | </head> |
11 | -<body id="i3geo" style="background-color:white"> | |
12 | -<!-- inclui o nome do usuario logado --> | |
13 | -<div id="i3GEONomeLogin" style="position:absolute;left:10px;top:12px;font-size:11px;z-index:50000"></div> | |
14 | -<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | |
15 | - <tr style="border:0px"> | |
16 | - <td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | |
17 | - </tr> | |
18 | - <tr> | |
19 | - <td id="contemMenu" style="text-align:right;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
20 | - <!--menu suspenso--> | |
21 | - <div id="menus" ></div> | |
22 | - </td> | |
23 | - </tr> | |
24 | - <tr> | |
25 | - <td style="vertical-align:top;border-width:0px;"> | |
26 | - <table width="100%" style="vertical-align:top;border-width:0px"> | |
27 | - <tr> | |
28 | - <td class=verdeclaro id=contemImg > | |
29 | - <div id=corpoMapa style="position:relative;background-image:url('../imagens/i3geo1bw.jpg');"></div> | |
30 | - </td> | |
31 | - </tr> | |
32 | - </table> | |
33 | - </td> | |
34 | - </tr> | |
35 | - <tr> | |
36 | - <td> | |
37 | - <table width=100% > | |
38 | - <tr> | |
39 | - <td class=tdbranca > | |
40 | - <!-- | |
11 | +<body id="i3geo" style="background-color: white"> | |
12 | + <!-- inclui o nome do usuario logado --> | |
13 | + <div id="i3GEONomeLogin" style="position: absolute; | |
14 | + left: 10px; | |
15 | + top: 12px; | |
16 | + font-size: 11px; | |
17 | + z-index: 50000"></div> | |
18 | + <table id='mst' summary="" style='display: none;' width=100% cellspacing='0'> | |
19 | + <tr style="border: 0px"> | |
20 | + <td id="barraSuperior" style="background-image: url('../imagens/visual/default/cabeca.png'); | |
21 | + height: 10px"></td> | |
22 | + </tr> | |
23 | + <tr> | |
24 | + <td id="contemMenu" style="text-align: right; | |
25 | + border-width: 0pt 0pt 1px; | |
26 | + border-color: rgb(240, 240, 240)"> | |
27 | + <!--menu suspenso--> | |
28 | + <div id="menus"></div> | |
29 | + </td> | |
30 | + </tr> | |
31 | + <tr> | |
32 | + <td style="vertical-align: top; | |
33 | + border-width: 0px;"> | |
34 | + <table width="100%" style="vertical-align: top; | |
35 | + border-width: 0px"> | |
36 | + <tr> | |
37 | + <td class=verdeclaro id=contemImg> | |
38 | + <div id=corpoMapa style="position: relative; | |
39 | + background-image: url('../imagens/i3geo1bw.jpg');"></div> | |
40 | + </td> | |
41 | + </tr> | |
42 | + </table> | |
43 | + </td> | |
44 | + </tr> | |
45 | + <tr> | |
46 | + <td> | |
47 | + <table width=100%> | |
48 | + <tr> | |
49 | + <td class=tdbranca> | |
50 | + <!-- | |
41 | 51 | Nesse div são incluídos os ícones que permitem ao usuário modificar o visual de cores dos ícones |
42 | 52 | <div id=visual ></div> |
43 | - --> | |
44 | - <!-- botão de compartilhamento em redes sociais --> | |
45 | - <div id=i3GEOcompartilhar style="width:170px;margin:auto;text-align:left;border-top:1px solid rgb(250,250,250);padding-top:1px" ></div> | |
46 | - <!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo --> | |
47 | - <div id=tempoRedesenho style=z-index:100;position:absolute;top:0px;left:0px;color:green;background-color:black;width:50px;display:none ></div> | |
48 | - </td> | |
49 | - <td class=tdbranca > | |
50 | - <!-- aqui será incluída a escala numérica --> | |
51 | - <div id=escala style="text-align:right;" ></div> | |
52 | - </td> | |
53 | - <td class=tdbranca > | |
54 | - <!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse --> | |
55 | - <div id=localizarxy style="margin:auto;text-align:left;font-size:10px;display:inline-table"></div> | |
56 | - </td> | |
57 | - <!-- aqui serão incluídas as bandeiras que permitem a troca de idioma --> | |
58 | - <td class=tdbranca > | |
59 | - <div id=seletorIdiomas ></div> | |
60 | - </td> | |
61 | - </tr> | |
62 | - </table> | |
63 | - </td> | |
64 | - </tr> | |
65 | - <tr style="border:0px"> | |
66 | - <td id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td> | |
67 | - </tr> | |
68 | -</table> | |
69 | -<table id="i3GEOlogoMarca" style='margin: 0px auto;box-shadow:0 1px 13px gray;border-radius:5px;'> | |
70 | - <tr> | |
71 | - <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> | |
72 | - </tr> | |
73 | - <tr> | |
74 | - <td style="padding:10px;"><img style="width:560px;height:81px" alt="" src='../imagens/logo_inicio.png' ></td> | |
75 | - </tr> | |
76 | - <tr> | |
77 | - <td> | |
78 | - <!-- | |
53 | + --> <!-- botão de compartilhamento em redes sociais --> | |
54 | + <div id=i3GEOcompartilhar style="width: 170px; | |
55 | + margin: auto; | |
56 | + text-align: left; | |
57 | + border-top: 1px solid rgb(250, 250, 250); | |
58 | + padding-top: 1px"></div> <!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo --> | |
59 | + <div id=tempoRedesenho style="z-index: 100; | |
60 | + position: absolute; | |
61 | + top: 0px; | |
62 | + left: 0px; | |
63 | + color: green; | |
64 | + background-color: black; | |
65 | + width: 50px; | |
66 | + display: none"></div> | |
67 | + </td> | |
68 | + <td class=tdbranca> | |
69 | + <!-- aqui será incluída a escala numérica --> | |
70 | + <div id=escala style="text-align: right;"></div> | |
71 | + </td> | |
72 | + <td class=tdbranca> | |
73 | + <!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse --> | |
74 | + <div id=localizarxy style="margin: auto; | |
75 | + text-align: left; | |
76 | + font-size: 10px; | |
77 | + display: inline-table"></div> | |
78 | + </td> | |
79 | + <!-- aqui serão incluídas as bandeiras que permitem a troca de idioma --> | |
80 | + <td class=tdbranca> | |
81 | + <div id=seletorIdiomas></div> | |
82 | + </td> | |
83 | + </tr> | |
84 | + </table> | |
85 | + </td> | |
86 | + </tr> | |
87 | + <tr style="border: 0px"> | |
88 | + <td id="barraInferior" style="background-image: url('../imagens/visual/default/rodape.png'); | |
89 | + height: 10px"></td> | |
90 | + </tr> | |
91 | + </table> | |
92 | + <table id="i3GEOlogoMarca" style='margin: 0px auto; | |
93 | + box-shadow: 0 1px 13px gray; | |
94 | + border-radius: 5px;'> | |
95 | + <tr> | |
96 | + <td><div id=versaoi3geo></div> | |
97 | + <h2 style="font-size: 10px; | |
98 | + font-family: Verdana, Arial, Helvetica, sans-serif;">i3Geo - Software livre para criação de mapas interativos e geoprocessamento</h2> | |
99 | + <h3 style="font-size: 10px; | |
100 | + font-family: Verdana, Arial, Helvetica, sans-serif;">Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro</h3></td> | |
101 | + </tr> | |
102 | + <tr> | |
103 | + <td style="padding: 10px;"><img style="width: 560px; | |
104 | + height: 81px" alt="" src='../imagens/logo_inicio.png'></td> | |
105 | + </tr> | |
106 | + <tr> | |
107 | + <td> | |
108 | + <!-- | |
79 | 109 | <script id="ohloh" type="text/javascript" src="http://www.ohloh.net/p/150688/widgets/project_users.js?style=red"></script> |
80 | 110 | --> |
81 | - </td> | |
82 | - </tr> | |
83 | -</table> | |
111 | + </td> | |
112 | + </tr> | |
113 | + </table> | |
84 | 114 | |
85 | -<div id="i3GEOguiaMovel" style="position:absolute;display:block;border:0px solid white;text-align:left;z-index:2000;background-color:none"> | |
86 | - <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' > | |
87 | - <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"> | |
88 | - <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> | |
89 | - <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'> | |
90 | - <div id='guia1obj' style='display:none;' > | |
91 | - <!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico --> | |
92 | - <div style='left:5px;top:10px;' id=buscaRapida ></div> | |
93 | - <!-- Esta div acrescenta a lista de propriedades do mapa --> | |
94 | - <div id=listaPropriedades style='top:15px;' ></div> | |
95 | - <!-- 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 --> | |
96 | - <div id=listaLayersBase style='top:15px;'></div> | |
97 | - <!-- Esta div acrescenta a lista de de camadas disponíveis no mapa atual --> | |
98 | - <div id=listaTemas style='top:15px;'></div> | |
115 | + <div id="i3GEOguiaMovel" style="position: absolute; | |
116 | + display: block; | |
117 | + border: 0px solid white; | |
118 | + text-align: left; | |
119 | + z-index: 2000; | |
120 | + background-color: none"> | |
121 | + <img id="i3GEOguiaMovelPuxador" onclick='i3GEO.guias.guiaMovel.abreFecha()' style='z-index: 2; | |
122 | + border: solid 0px white; | |
123 | + left: 0px; | |
124 | + position: absolute; | |
125 | + top: 0px' width='0px' src='../imagens/openbars.png'> | |
126 | + <div id="i3GEOguiaMovelMolde" style="box-shadow: -2px 0 2px gray; | |
127 | + border-radius: 5px 0px 0px 5px; | |
128 | + position: absolute; | |
129 | + display: none; | |
130 | + border: 0px solid white; | |
131 | + text-align: left; | |
132 | + z-index: 1000; | |
133 | + background-color: gray"> | |
134 | + <div id="i3GEOguiaMovelIcones" style='overflow: none; | |
135 | + left: 0px; | |
136 | + display: none; | |
137 | + position: absolute; | |
138 | + top: 0px; | |
139 | + text-align: center; | |
140 | + height: 0px; | |
141 | + width: 0px; | |
142 | + border: solid 0px white; | |
143 | + background-color: white'></div> | |
144 | + <div id="i3GEOguiaMovelConteudo" style='overflow: auto; | |
145 | + display: none; | |
146 | + position: absolute; | |
147 | + border-color: gray; | |
148 | + border-width: 0px 0 0px 0px; | |
149 | + left: 0px; | |
150 | + height: 0px; | |
151 | + background-color: white'> | |
152 | + <div id='guia1obj' style='display: none;'> | |
153 | + <!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico --> | |
154 | + <div style='left: 5px; | |
155 | + top: 10px;' id=buscaRapida></div> | |
156 | + <!-- Esta div acrescenta a lista de propriedades do mapa --> | |
157 | + <div id=listaPropriedades style='top: 15px;'></div> | |
158 | + <!-- 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 --> | |
159 | + <div id=listaLayersBase style='top: 15px;'></div> | |
160 | + <!-- Esta div acrescenta a lista de de camadas disponíveis no mapa atual --> | |
161 | + <div id=listaTemas style='top: 15px;'></div> | |
162 | + </div> | |
163 | + <div id='guia2obj' style='display: none;'> | |
164 | + Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /> | |
165 | + </div> | |
166 | + <div id='guia4obj' style='display: none; | |
167 | + text-align: left'> | |
168 | + <div id='legenda' style='text-align: left'></div> | |
169 | + </div> | |
170 | + <div id='guia5obj' style='display: none; | |
171 | + text-align: left'> | |
172 | + <div id='banners' style='overflow: auto; | |
173 | + text-align: left'>Aguarde...</div> | |
174 | + </div> | |
99 | 175 | </div> |
100 | - <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> | |
101 | - <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> | |
102 | - <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> | |
103 | 176 | </div> |
104 | 177 | </div> |
105 | -</div> | |
106 | 178 | |
107 | -<script src="../classesjs/i3geo47.js"></script> | |
108 | -<script src="../pacotes/openlayers/OpenLayers211.js.php"></script> | |
109 | -<style> | |
179 | + <script src="../classesjs/i3geo47.js"></script> | |
180 | + <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> | |
181 | + <style> | |
110 | 182 | .olControlEditingToolbar1 div { |
111 | - background-image:url(../mashups/openlayers.png); | |
112 | - background-repeat:no-repeat; | |
113 | - float:right; | |
183 | + background-image: url(../mashups/openlayers.png); | |
184 | + background-repeat: no-repeat; | |
185 | + float: right; | |
114 | 186 | right: 0px; |
115 | - height:29px; | |
116 | - margin:2px; | |
117 | - width:29px; | |
118 | - cursor:pointer; | |
187 | + height: 29px; | |
188 | + margin: 2px; | |
189 | + width: 29px; | |
190 | + cursor: pointer; | |
119 | 191 | } |
120 | 192 | </style> |
121 | -<script> | |
122 | -/* | |
123 | -Interface Openlayers | |
193 | + <script> | |
194 | + /* | |
195 | + Interface Openlayers | |
124 | 196 | |
125 | -Abre o i3geo com todas as suas funcionalidades e interface de navegação controlada pela API Openlayers. | |
197 | + Abre o i3geo com todas as suas funcionalidades e interface de navegação controlada pela API Openlayers. | |
126 | 198 | |
127 | -File: i3geo/interface/openlayers.htm | |
199 | + File: i3geo/interface/openlayers.htm | |
128 | 200 | |
129 | -Exemplo: | |
201 | + Exemplo: | |
130 | 202 | |
131 | -http://<host>/i3geo/ms_criamapa.php | |
203 | + http://<host>/i3geo/ms_criamapa.php | |
132 | 204 | |
133 | -http://<host>/i3geo/interface/openlayers.htm | |
205 | + http://<host>/i3geo/interface/openlayers.htm | |
134 | 206 | |
135 | -http://<host>/i3geo | |
207 | + http://<host>/i3geo | |
136 | 208 | |
137 | -Para definir quais botões das barras de ferramentas serão incluídos no mapa, veja: <classe_barradebotoes.js> i3GEO.barraDeBotoes.INCLUIBOTAO | |
209 | + Para definir quais botões das barras de ferramentas serão incluídos no mapa, veja: <classe_barradebotoes.js> i3GEO.barraDeBotoes.INCLUIBOTAO | |
138 | 210 | |
139 | -*/ | |
140 | -/* | |
141 | - Indica a localização correta do i3geo. | |
211 | + */ | |
212 | + /* | |
213 | + Indica a localização correta do i3geo. | |
142 | 214 | |
143 | - É utilizada para identificar o local correto onde estão os programas em php que são utilizados. | |
215 | + É utilizada para identificar o local correto onde estão os programas em php que são utilizados. | |
144 | 216 | |
145 | - Se não for definida, o i3Geo tentará encontrar o local automaticamente com base na tag javascript | |
146 | -*/ | |
147 | -//i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
148 | -/* | |
149 | -Para outras configurações, veja i3geo/classesjs/classe_configura.js | |
217 | + Se não for definida, o i3Geo tentará encontrar o local automaticamente com base na tag javascript | |
218 | + */ | |
219 | + //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
220 | + /* | |
221 | + Para outras configurações, veja i3geo/classesjs/classe_configura.js | |
150 | 222 | |
151 | -exemplo | |
223 | + exemplo | |
152 | 224 | |
153 | -i3GEO.configura.autotamanho = true; | |
154 | -*/ | |
155 | -i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | |
156 | -i3GEO.configura.autotamanho = false; | |
157 | -i3GEO.Interface.ATUAL = "openlayers"; | |
158 | -i3GEO.Interface.IDCORPO = "contemImg"; | |
159 | -//ativa ou desativa o balao de info ao clicar no mapa | |
160 | -i3GEO.eventos.cliquePerm.ativo = true; | |
161 | -// | |
162 | -// | |
163 | -//interface alternativa se for detectado um dispositivo móvel | |
164 | -// | |
165 | -//i3GEO.Interface.ALTTABLET = "openlayers_t.htm"; | |
166 | -i3GEO.Interface.openlayers.GADGETS = { | |
167 | - PanZoomBar:true, | |
168 | - PanZoom:false, | |
169 | - LayerSwitcher:true, | |
170 | - ScaleLine:true, | |
171 | - OverviewMap:false | |
172 | - }; | |
173 | -i3GEO.Interface.openlayers.TILES = true; | |
174 | -/* | |
175 | -i3GEO.Interface.openlayers.parametrosMap.scales = [ | |
176 | - 105000000,50000000,21000000,10000000,5000000,1000000,500000,250000,100000,50000,25000,10000,5000,1000,100 | |
177 | -]; | |
178 | -*/ | |
179 | -// | |
180 | -//controla o tamanho da barra de zoom | |
181 | -// | |
182 | -//i3GEO.Interface.openlayers.MINEXTENT = [-0.001, -0.001, 0.001, 0.001] | |
183 | -// | |
184 | -// | |
185 | -//desabilita o item que abre a interface "default" do menu suspenso | |
186 | -// | |
187 | -i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}'; | |
225 | + i3GEO.configura.autotamanho = true; | |
226 | + */ | |
227 | + i3GEO.configura.locaplic = i3GEO.util.protocolo() + "://" | |
228 | + + window.location.host + "/i3geo"; | |
229 | + i3GEO.configura.autotamanho = false; | |
230 | + i3GEO.Interface.ATUAL = "openlayers"; | |
231 | + i3GEO.Interface.IDCORPO = "contemImg"; | |
232 | + //ativa ou desativa o balao de info ao clicar no mapa | |
233 | + i3GEO.eventos.cliquePerm.ativo = true; | |
234 | + // | |
235 | + // | |
236 | + //interface alternativa se for detectado um dispositivo móvel | |
237 | + // | |
238 | + //i3GEO.Interface.ALTTABLET = "openlayers_t.htm"; | |
239 | + i3GEO.Interface.openlayers.GADGETS = { | |
240 | + PanZoomBar : true, | |
241 | + PanZoom : false, | |
242 | + LayerSwitcher : true, | |
243 | + ScaleLine : true, | |
244 | + OverviewMap : false | |
245 | + }; | |
246 | + i3GEO.Interface.openlayers.TILES = true; | |
247 | + /* | |
248 | + i3GEO.Interface.openlayers.parametrosMap.scales = [ | |
249 | + 105000000,50000000,21000000,10000000,5000000,1000000,500000,250000,100000,50000,25000,10000,5000,1000,100 | |
250 | + ]; | |
251 | + */ | |
252 | + // | |
253 | + //controla o tamanho da barra de zoom | |
254 | + // | |
255 | + //i3GEO.Interface.openlayers.MINEXTENT = [-0.001, -0.001, 0.001, 0.001] | |
256 | + // | |
257 | + // | |
258 | + //desabilita o item que abre a interface "default" do menu suspenso | |
259 | + // | |
260 | + i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}'; | |
188 | 261 | |
189 | -/* | |
190 | -Após a criação, é criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers. | |
191 | -Vc pode usar i3geoOL para aplicar os métodos e verificar as propriedades da API do OpenLayers | |
192 | -*/ | |
262 | + /* | |
263 | + Após a criação, é criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers. | |
264 | + Vc pode usar i3geoOL para aplicar os métodos e verificar as propriedades da API do OpenLayers | |
265 | + */ | |
193 | 266 | |
194 | -i3GEO.cria(); | |
195 | -/* | |
196 | - Inicializa o mapa | |
197 | -*/ | |
198 | -//não mostra o mapa de referência | |
199 | -i3GEO.configura.mapaRefDisplay = "none"; | |
200 | -//tipo de barra de botões | |
201 | -i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; | |
202 | -//ajusta o deslocamento da barra de botões | |
203 | -i3GEO.barraDeBotoes.OFFSET = -3; | |
204 | -//ajusta a posição da barra de botões no IE | |
205 | -//if(navm) | |
206 | -//{i3GEO.barraDeBotoes.OFFSET = -45;} | |
207 | -//número máximo de botões na barra de botões inicial | |
208 | -//i3GEO.barraDeBotoes.MAXBOTOES = 10; | |
209 | -//remove itens dos menus que não são necessários, já que estão como ícones na barra de botões | |
210 | -i3GEO.configura.oMenuData["submenus"]["janelas"] = []; | |
211 | -i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = true; | |
212 | -//a barra de botões será mostrada no mapa conforme o construtor padrão | |
213 | -i3GEO.barraDeBotoes.ATIVA = true; | |
214 | -// | |
215 | -//barra de botoes normal. descomente para usar | |
216 | -/* | |
217 | -i3GEO.barraDeBotoes.TIPO = "yui"; | |
218 | -i3GEO.barraDeBotoes.AUTOALTURA = true; | |
219 | -i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false; | |
220 | -i3GEO.barraDeBotoes.PERMITEFECHAR = false; | |
221 | -i3GEO.barraDeBotoes.PERMITEDESLOCAR = false; | |
222 | -i3GEO.barraDeBotoes.AUTO = true; | |
223 | -i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja"; | |
224 | -i3GEO.Interface.BARRABOTOESLEFT = 0; | |
225 | -i3GEO.Interface.BARRABOTOESTOP = 2; | |
226 | -i3GEO.Interface.BARRADEZOOMTOP = 10; | |
227 | -i3GEO.Interface.BARRADEZOOMLEFT = 40; | |
228 | -*/ | |
229 | -i3GEO.ajuda.ATIVAJANELA = false; | |
230 | -i3GEO.idioma.IDSELETOR = "seletorIdiomas"; | |
231 | -i3GEO.Interface.ATIVAMENUCONTEXTO = false; | |
232 | -i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | |
267 | + i3GEO.cria(); | |
268 | + /* | |
269 | + Inicializa o mapa | |
270 | + */ | |
271 | + //não mostra o mapa de referência | |
272 | + i3GEO.configura.mapaRefDisplay = "none"; | |
273 | + //tipo de barra de botões | |
274 | + i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; | |
275 | + //ajusta o deslocamento da barra de botões | |
276 | + i3GEO.barraDeBotoes.OFFSET = -3; | |
277 | + //ajusta a posição da barra de botões no IE | |
278 | + //if(navm) | |
279 | + //{i3GEO.barraDeBotoes.OFFSET = -45;} | |
280 | + //número máximo de botões na barra de botões inicial | |
281 | + //i3GEO.barraDeBotoes.MAXBOTOES = 10; | |
282 | + //remove itens dos menus que não são necessários, já que estão como ícones na barra de botões | |
283 | + i3GEO.configura.oMenuData["submenus"]["janelas"] = []; | |
284 | + i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = true; | |
285 | + //a barra de botões será mostrada no mapa conforme o construtor padrão | |
286 | + i3GEO.barraDeBotoes.ATIVA = true; | |
287 | + // | |
288 | + //barra de botoes normal. descomente para usar | |
289 | + /* | |
290 | + i3GEO.barraDeBotoes.TIPO = "yui"; | |
291 | + i3GEO.barraDeBotoes.AUTOALTURA = true; | |
292 | + i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false; | |
293 | + i3GEO.barraDeBotoes.PERMITEFECHAR = false; | |
294 | + i3GEO.barraDeBotoes.PERMITEDESLOCAR = false; | |
295 | + i3GEO.barraDeBotoes.AUTO = true; | |
296 | + i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja"; | |
297 | + i3GEO.Interface.BARRABOTOESLEFT = 0; | |
298 | + i3GEO.Interface.BARRABOTOESTOP = 2; | |
299 | + i3GEO.Interface.BARRADEZOOMTOP = 10; | |
300 | + i3GEO.Interface.BARRADEZOOMLEFT = 40; | |
301 | + */ | |
302 | + i3GEO.ajuda.ATIVAJANELA = false; | |
303 | + i3GEO.idioma.IDSELETOR = "seletorIdiomas"; | |
304 | + i3GEO.Interface.ATIVAMENUCONTEXTO = false; | |
305 | + i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | |
233 | 306 | |
234 | -i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true; | |
235 | -i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true; | |
236 | -i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false; | |
237 | -i3GEO.mapa.AUTORESIZE = true; | |
238 | -i3GEO.guias.TIPO = "movel"; | |
239 | -//i3GEO.guias.guiaMovel.ABERTA = true; | |
240 | -//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 | |
241 | -i3GEO.guias.guiaMovel.config.topGuiaMovel = 0; | |
242 | -// | |
243 | -//define quanto tempo é aguardado para considerar que o mouse está parado sobre um lugar. | |
244 | -//utilizado pela função de identificação do tipo balão | |
245 | -// | |
246 | -//i3GEO.configura.tempoMouseParado = 1000 | |
247 | -// | |
248 | -//esta é uma variável interna do OpenLayers que define o endereço do diretório onde estão as imagens usadas nos ícones | |
249 | -// | |
250 | -OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | |
251 | -// | |
252 | -//adiciona camadas que podem ser ativadas como fundo do mapa | |
253 | -// | |
254 | -(function(){ | |
255 | - var oce = new OpenLayers.Layer.ArcGIS93Rest( | |
256 | - "ESRI Ocean Basemap", | |
257 | - "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", | |
258 | - {format:"jpeg"}, | |
259 | - {isBaseLayer:true,visibility:false} | |
260 | - ); | |
261 | - var ims = new OpenLayers.Layer.ArcGIS93Rest( | |
262 | - "ESRI Imagery World 2D", | |
263 | - "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", | |
264 | - {format:"jpeg"}, | |
265 | - {isBaseLayer:true,visibility:false} | |
266 | - ); | |
267 | - var wsm = new OpenLayers.Layer.ArcGIS93Rest( | |
268 | - "ESRI World Street Map", | |
269 | - "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", | |
270 | - {format:"jpeg"}, | |
271 | - {isBaseLayer:true,visibility:false} | |
272 | - ); | |
273 | - var bra = new OpenLayers.Layer.WMS( | |
274 | - "Base carto MMA", | |
275 | - "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", | |
276 | - {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false}, | |
277 | - {isBaseLayer:true,visibility:false} | |
278 | - ); | |
279 | - var tms = new OpenLayers.Layer.TMS( | |
280 | - "OSGEO", | |
281 | - "http://tilecache.osgeo.org/wms-c/Basic.py/", | |
282 | - { | |
283 | - layername: "basic", | |
284 | - type: "png", | |
285 | - // set if different than the bottom left of map.maxExtent | |
286 | - tileOrigin: new OpenLayers.LonLat(-180,-90), | |
287 | - isBaseLayer:true, | |
288 | - visibility:false | |
289 | - } | |
290 | - ); | |
291 | - i3GEO.Interface.openlayers.LAYERSADICIONAIS = [oce,ims,wsm,tms,bra]; | |
292 | -})(); | |
293 | -// | |
294 | -//substitui a janela de alerta normal do navegador por uma janela estilizada. Pode ser comentado sem problemas. No Safari apresentou problemas. | |
295 | -// | |
296 | -i3GEO.janela.ativaAlerta(); | |
297 | -// | |
298 | -//inicia o mapa | |
299 | -// | |
300 | -//esconde a logomarca ao finalizar o mapa | |
301 | -i3GEO.finaliza = function(){ | |
302 | - if($i("i3GEOlogoMarca")) | |
303 | - {$i("i3GEOlogoMarca").style.display = "none";} | |
304 | - i3GEO.mapa.insereDobraPagina("googlemaps","../imagens/dobragooglemaps.png"); | |
305 | -}; | |
306 | -i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; | |
307 | -// | |
308 | -//define a funcao que sera executada ao clicar no mapa | |
309 | -//default (balao do tipo etiqueta) | |
310 | -i3GEO.eventos.MOUSECLIQUEPERM = [i3GEO.configura.funcaoTip]; | |
311 | -//alternativo (janela de identificacao | |
312 | -//i3GEO.eventos.MOUSECLIQUEPERM = [i3GEO.configura.funcaoIdentifica]; | |
313 | -// | |
307 | + i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true; | |
308 | + i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true; | |
309 | + i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false; | |
310 | + i3GEO.mapa.AUTORESIZE = true; | |
311 | + i3GEO.guias.TIPO = "movel"; | |
312 | + //i3GEO.guias.guiaMovel.ABERTA = true; | |
313 | + //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 | |
314 | + i3GEO.guias.guiaMovel.config.topGuiaMovel = 0; | |
315 | + // | |
316 | + //define quanto tempo é aguardado para considerar que o mouse está parado sobre um lugar. | |
317 | + //utilizado pela função de identificação do tipo balão | |
318 | + // | |
319 | + //i3GEO.configura.tempoMouseParado = 1000 | |
320 | + // | |
321 | + //esta é uma variável interna do OpenLayers que define o endereço do diretório onde estão as imagens usadas nos ícones | |
322 | + // | |
323 | + OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | |
324 | + // | |
325 | + //adiciona camadas que podem ser ativadas como fundo do mapa | |
326 | + // | |
327 | + (function() { | |
328 | + var oce = new OpenLayers.Layer.ArcGIS93Rest( | |
329 | + "ESRI Ocean Basemap", | |
330 | + "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", | |
331 | + { | |
332 | + format : "jpeg" | |
333 | + }, { | |
334 | + isBaseLayer : true, | |
335 | + visibility : false | |
336 | + }); | |
337 | + var ims = new OpenLayers.Layer.ArcGIS93Rest( | |
338 | + "ESRI Imagery World 2D", | |
339 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", | |
340 | + { | |
341 | + format : "jpeg" | |
342 | + }, { | |
343 | + isBaseLayer : true, | |
344 | + visibility : false | |
345 | + }); | |
346 | + var wsm = new OpenLayers.Layer.ArcGIS93Rest( | |
347 | + "ESRI World Street Map", | |
348 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", | |
349 | + { | |
350 | + format : "jpeg" | |
351 | + }, { | |
352 | + isBaseLayer : true, | |
353 | + visibility : false | |
354 | + }); | |
355 | + var bra = new OpenLayers.Layer.WMS( | |
356 | + "Base carto MMA", | |
357 | + "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", | |
358 | + { | |
359 | + layers : "baseraster", | |
360 | + srs : "EPSG:4618", | |
361 | + format : "image/png" | |
362 | + }, { | |
363 | + isBaseLayer : true, | |
364 | + visibility : false | |
365 | + }); | |
366 | + var tms = new OpenLayers.Layer.TMS("OSGEO", | |
367 | + "http://tilecache.osgeo.org/wms-c/Basic.py/", { | |
368 | + layername : "basic", | |
369 | + type : "png", | |
370 | + // set if different than the bottom left of map.maxExtent | |
371 | + tileOrigin : new OpenLayers.LonLat(-180, -90), | |
372 | + isBaseLayer : true, | |
373 | + visibility : false | |
374 | + }); | |
375 | + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ oce, ims, wsm, | |
376 | + tms, bra ]; | |
377 | + })(); | |
378 | + // | |
379 | + //substitui a janela de alerta normal do navegador por uma janela estilizada. Pode ser comentado sem problemas. No Safari apresentou problemas. | |
380 | + // | |
381 | + i3GEO.janela.ativaAlerta(); | |
382 | + // | |
383 | + //inicia o mapa | |
384 | + // | |
385 | + //esconde a logomarca ao finalizar o mapa | |
386 | + i3GEO.finaliza = function() { | |
387 | + if ($i("i3GEOlogoMarca")) { | |
388 | + $i("i3GEOlogoMarca").style.display = "none"; | |
389 | + } | |
390 | + i3GEO.mapa.insereDobraPagina("googlemaps", | |
391 | + "../imagens/dobragooglemaps.png"); | |
392 | + }; | |
393 | + i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; | |
394 | + // | |
395 | + //define a funcao que sera executada ao clicar no mapa | |
396 | + //default (balao do tipo etiqueta) | |
397 | + i3GEO.eventos.MOUSECLIQUEPERM = [ i3GEO.configura.funcaoTip ]; | |
398 | + //alternativo (janela de identificacao | |
399 | + //i3GEO.eventos.MOUSECLIQUEPERM = [i3GEO.configura.funcaoIdentifica]; | |
400 | + // | |
314 | 401 | |
315 | -//OpenLayers.DOTS_PER_INCH = 96 | |
316 | -//i3GEO.configura.sid = ""; | |
317 | -i3GEO.inicia(); | |
318 | -</script> | |
402 | + //OpenLayers.DOTS_PER_INCH = 96 | |
403 | + //i3GEO.configura.sid = ""; | |
404 | + i3GEO.inicia(); | |
405 | + </script> | |
319 | 406 | </body> |
320 | 407 | </html> | ... | ... |
leiame.txt
... | ... | @@ -87,6 +87,8 @@ Após instalar utilize o localhost/i3geo/testainstal.php para ver se está tudo ce |
87 | 87 | |
88 | 88 | Se o testaisntal.php estiver mostrando os mapas e mesmo assim ao abrir o i3Geo as camadas não são mostradas, considere o seguinte: |
89 | 89 | |
90 | +Primeiro, experimente instalar a biblioteca php5-imagick no Linux. | |
91 | + | |
90 | 92 | Alguns usuários reportaram problemas em algumas instalações do Mapserver. Esses usuários conseguem adicionar camadas |
91 | 93 | ao mapa mas nada é mostrado, mesmo quando as questões de projeção e outras estão todas configuradas de acordo. Se esse for o seu caso, |
92 | 94 | experimente trocar os arquivos de renderização fazendo o seguinte: | ... | ... |
testainstal.php
... | ... | @@ -157,6 +157,7 @@ echo "<br><pre>Extens&otilde;es:<br>"; |
157 | 157 | if (!extension_loaded("curl")){ |
158 | 158 | echo "<span style=color:red >Problema: não está instalado a curl que pode afetar algumas funcionalidades do i3Geo<br></span>"; |
159 | 159 | } |
160 | +if (!extension_loaded("imagick")){echo "<span style=color:red >Problema: não está instalado a imagick<br></span>";} | |
160 | 161 | if (!extension_loaded("libxml")){echo "<span style=color:red >Problema: não está instalado a libxml<br></span>";} |
161 | 162 | if (!extension_loaded( "PDO")){echo "<span style=color:red >Problema: não está instalado a PDO<br></span>";} |
162 | 163 | if (!extension_loaded( "pdo_sqlite")){echo "<span style=color:red >Problema: não está instalado a pdo_sqlite<br></span>";} | ... | ... |