Commit 1101229cc6f3c08b6b8541fe2de7078ef373835a
1 parent
1bc1b025
Exists in
master
and in
7 other branches
Correção nas funções que aplicam opacidade nos layers em função da versão 7 do Mapserver
Showing
10 changed files
with
661 additions
and
10 deletions
Show diff stats
ferramentas/blacklist.php
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | //no conteudo da variavel $i3geoBlFerramentas | 4 | //no conteudo da variavel $i3geoBlFerramentas |
5 | // | 5 | // |
6 | function verificaBlFerramentas($dir,$i3geoBlFerramentas="",$js=true){ | 6 | function verificaBlFerramentas($dir,$i3geoBlFerramentas="",$js=true){ |
7 | - if($i3geoBlFerramentas == ""){ | 7 | + if($i3geoBlFerramentas == ""){ |
8 | if(file_exists(dirname(__FILE__)."/../ms_configura.php")){ | 8 | if(file_exists(dirname(__FILE__)."/../ms_configura.php")){ |
9 | include_once(dirname(__FILE__)."/../ms_configura.php"); | 9 | include_once(dirname(__FILE__)."/../ms_configura.php"); |
10 | } else { | 10 | } else { |
ferramentas/carregamapa/upload.php
@@ -140,8 +140,11 @@ if (isset($_FILES['i3GEOcarregamapafilemap']['name']) && strlen(basename($_FILES | @@ -140,8 +140,11 @@ if (isset($_FILES['i3GEOcarregamapafilemap']['name']) && strlen(basename($_FILES | ||
140 | else{ | 140 | else{ |
141 | $layero->set("status",MS_OFF); | 141 | $layero->set("status",MS_OFF); |
142 | } | 142 | } |
143 | - | ||
144 | - $layero->set("opacity",$layert->opacity); | 143 | + if(ms_GetVersionInt() >= 7){ |
144 | + $layero->updateFromString('LAYER COMPOSITE OPACITY '.$layert->opacity.'END END'); | ||
145 | + } else { | ||
146 | + $layero->set("opacity",$layert->opacity); | ||
147 | + } | ||
145 | $layero->setmetadata("TEMA",$layert->getmetadata("TEMA")); | 148 | $layero->setmetadata("TEMA",$layert->getmetadata("TEMA")); |
146 | // | 149 | // |
147 | //adiciona o layer ao mapa atual | 150 | //adiciona o layer ao mapa atual |
ferramentas/heatmap/exec.php
1 | <?php | 1 | <?php |
2 | + | ||
2 | include_once(dirname(__FILE__)."/../safe.php"); | 3 | include_once(dirname(__FILE__)."/../safe.php"); |
4 | + | ||
3 | verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | 5 | verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); |
6 | + | ||
4 | // | 7 | // |
5 | //faz a busca da função que deve ser executada | 8 | //faz a busca da função que deve ser executada |
6 | // | 9 | // |
10 | + | ||
7 | $retorno = ""; //string que será retornada ao browser via JSON | 11 | $retorno = ""; //string que será retornada ao browser via JSON |
8 | switch (strtoupper($funcao)) | 12 | switch (strtoupper($funcao)) |
9 | { | 13 | { |
@@ -19,12 +23,17 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor | @@ -19,12 +23,17 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor | ||
19 | $novolayer = ms_newLayerObj($map, $layer); | 23 | $novolayer = ms_newLayerObj($map, $layer); |
20 | $novolayer->setmetadata("tema",$_GET["titulo"]); | 24 | $novolayer->setmetadata("tema",$_GET["titulo"]); |
21 | $parametros = '{"plugin":"heatmap","parametros":{"max":10,"tipoGradiente":"default","valorPonto":"'.$_GET["valorPonto"].'","coluna":"'.$_GET["coluna"].'","radius":"'.$_GET["raio"].'"}}'; | 25 | $parametros = '{"plugin":"heatmap","parametros":{"max":10,"tipoGradiente":"default","valorPonto":"'.$_GET["valorPonto"].'","coluna":"'.$_GET["coluna"].'","radius":"'.$_GET["raio"].'"}}'; |
26 | + | ||
22 | $novolayer->setmetadata("PLUGINI3GEO",$parametros); | 27 | $novolayer->setmetadata("PLUGINI3GEO",$parametros); |
23 | $novolayer->set("name",$nameLayer); | 28 | $novolayer->set("name",$nameLayer); |
24 | $novolayer->set("group",""); | 29 | $novolayer->set("group",""); |
25 | 30 | ||
26 | if(!empty($_GET["opacidade"])){ | 31 | if(!empty($_GET["opacidade"])){ |
27 | - $novolayer->set("opacity",$_GET["opacidade"]); | 32 | + if(ms_GetVersionInt() >= 7){ |
33 | + $novolayer->updateFromString('LAYER COMPOSITE OPACITY '.$_GET["opacidade"].'END END'); | ||
34 | + } else { | ||
35 | + $novolayer->set("opacity",$_GET["opacidade"]); | ||
36 | + } | ||
28 | } | 37 | } |
29 | $map->save($map_file); | 38 | $map->save($map_file); |
30 | $retorno = $nameLayer; | 39 | $retorno = $nameLayer; |
ferramentas/markercluster/exec.php
@@ -22,7 +22,12 @@ Adiciona ao mapa uma nova camada para calculo do mapa de cluster | @@ -22,7 +22,12 @@ Adiciona ao mapa uma nova camada para calculo do mapa de cluster | ||
22 | $novolayer->setmetadata("PLUGINI3GEO",$parametros); | 22 | $novolayer->setmetadata("PLUGINI3GEO",$parametros); |
23 | $novolayer->set("name",$nameLayer); | 23 | $novolayer->set("name",$nameLayer); |
24 | $novolayer->setmetadata("tema",$_GET["titulo"]); | 24 | $novolayer->setmetadata("tema",$_GET["titulo"]); |
25 | - $novolayer->set("opacity",$_GET["opacidade"]); | 25 | + if(ms_GetVersionInt() >= 7){ |
26 | + $novolayer->updateFromString('LAYER COMPOSITE OPACITY '.$_GET["opacidade"].'END END'); | ||
27 | + } else { | ||
28 | + $novolayer->set("opacity",$_GET["opacidade"]); | ||
29 | + } | ||
30 | + | ||
26 | $novolayer->set("group",""); | 31 | $novolayer->set("group",""); |
27 | $map->save($map_file); | 32 | $map->save($map_file); |
28 | $retorno = $nameLayer; | 33 | $retorno = $nameLayer; |
ferramentas/metaestat/analise.php
@@ -266,7 +266,12 @@ function classes2preenchimento($map_file,$tema,$tipo){ | @@ -266,7 +266,12 @@ function classes2preenchimento($map_file,$tema,$tipo){ | ||
266 | $layer = ms_newLayerObj($mapa,$l); | 266 | $layer = ms_newLayerObj($mapa,$l); |
267 | $l->set("status",MS_OFF); | 267 | $l->set("status",MS_OFF); |
268 | $layer->set("status",MS_DEFAULT); | 268 | $layer->set("status",MS_DEFAULT); |
269 | - $layer->set("opacity",50); | 269 | + |
270 | + if(ms_GetVersionInt() >= 7){ | ||
271 | + $layer->updateFromString('LAYER COMPOSITE OPACITY 50 END END'); | ||
272 | + } else { | ||
273 | + $layer->set("opacity",50); | ||
274 | + } | ||
270 | $layer->set("name",$nome); | 275 | $layer->set("name",$nome); |
271 | if($layer->type != MS_LAYER_POLYGON){ | 276 | if($layer->type != MS_LAYER_POLYGON){ |
272 | return ""; | 277 | return ""; |
@@ -336,7 +341,11 @@ function classes2circulos($map_file,$tema,$tipo){ | @@ -336,7 +341,11 @@ function classes2circulos($map_file,$tema,$tipo){ | ||
336 | $layer = ms_newLayerObj($mapa,$l); | 341 | $layer = ms_newLayerObj($mapa,$l); |
337 | $l->set("status",MS_OFF); | 342 | $l->set("status",MS_OFF); |
338 | $layer->set("status",MS_DEFAULT); | 343 | $layer->set("status",MS_DEFAULT); |
339 | - $layer->set("opacity",50); | 344 | + if(ms_GetVersionInt() >= 7){ |
345 | + $layer->updateFromString('LAYER COMPOSITE OPACITY 50 END END'); | ||
346 | + } else { | ||
347 | + $layer->set("opacity",50); | ||
348 | + } | ||
340 | 349 | ||
341 | $layer->set("name",$nome); | 350 | $layer->set("name",$nome); |
342 | $meta = new MetaestatInfo(); | 351 | $meta = new MetaestatInfo(); |
@@ -388,7 +397,11 @@ function classes2circulos($map_file,$tema,$tipo){ | @@ -388,7 +397,11 @@ function classes2circulos($map_file,$tema,$tipo){ | ||
388 | $max = max($valores); | 397 | $max = max($valores); |
389 | $layer->setmetadata("tema",$layer->getmetadata("tema")." - cont"); | 398 | $layer->setmetadata("tema",$layer->getmetadata("tema")." - cont"); |
390 | $layer->set("type",MS_LAYER_CHART); | 399 | $layer->set("type",MS_LAYER_CHART); |
391 | - $layer->set("opacity",60); | 400 | + if(ms_GetVersionInt() >= 7){ |
401 | + $layer->updateFromString('LAYER COMPOSITE OPACITY 60 END END'); | ||
402 | + } else { | ||
403 | + $layer->set("opacity",60); | ||
404 | + } | ||
392 | $layer->setprocessing("CHART_TYPE=pie"); | 405 | $layer->setprocessing("CHART_TYPE=pie"); |
393 | $layer->setprocessing("CHART_SIZE_RANGE=".$medidavariavel["colunavalor"]." 10 150 ".$min." ".$max); | 406 | $layer->setprocessing("CHART_SIZE_RANGE=".$medidavariavel["colunavalor"]." 10 150 ".$min." ".$max); |
394 | if ($numclasses > 0){ | 407 | if ($numclasses > 0){ |
ferramentas/safe.php
1 | <?php | 1 | <?php |
2 | include_once (dirname(__FILE__)."/../classesphp/sani_request.php"); | 2 | include_once (dirname(__FILE__)."/../classesphp/sani_request.php"); |
3 | + | ||
3 | $_GET = array_merge($_GET,$_POST); | 4 | $_GET = array_merge($_GET,$_POST); |
4 | // | 5 | // |
5 | //$fingerprint e usado para verificar se o usuario veio do i3geo | 6 | //$fingerprint e usado para verificar se o usuario veio do i3geo |
@@ -30,6 +31,7 @@ else{ | @@ -30,6 +31,7 @@ else{ | ||
30 | $g_sid = ""; | 31 | $g_sid = ""; |
31 | $fingerprint = ""; | 32 | $fingerprint = ""; |
32 | } | 33 | } |
34 | + | ||
33 | //variaveis mais utilizadas | 35 | //variaveis mais utilizadas |
34 | $tema = $_GET["tema"]; | 36 | $tema = $_GET["tema"]; |
35 | if(isset($_GET["ext"])){ | 37 | if(isset($_GET["ext"])){ |
@@ -47,6 +49,7 @@ if(!empty($fingerprint) && !empty($g_sid)) { | @@ -47,6 +49,7 @@ if(!empty($fingerprint) && !empty($g_sid)) { | ||
47 | return; | 49 | return; |
48 | } | 50 | } |
49 | } | 51 | } |
52 | + | ||
50 | include_once(dirname(__FILE__)."/../ms_configura.php"); | 53 | include_once(dirname(__FILE__)."/../ms_configura.php"); |
51 | include_once(dirname(__FILE__)."/blacklist.php"); | 54 | include_once(dirname(__FILE__)."/blacklist.php"); |
52 | include_once(dirname(__FILE__)."/../classesphp/classe_vermultilayer.php"); | 55 | include_once(dirname(__FILE__)."/../classesphp/classe_vermultilayer.php"); |
ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/ga.js
0 → 100644
@@ -0,0 +1,618 @@ | @@ -0,0 +1,618 @@ | ||
1 | +if (typeof (i3GEO) === 'undefined') { | ||
2 | + var i3GEO = {}; | ||
3 | +} | ||
4 | +i3GEO.listaDeFerramentas = { | ||
5 | + menu : [ | ||
6 | + { | ||
7 | + nome : $trad("s1"), | ||
8 | + descricao: $trad("descMenuAjuda"), | ||
9 | + id : "ajudaMenu" | ||
10 | + }, | ||
11 | + { | ||
12 | + nome : $trad("s2"), | ||
13 | + descricao: $trad("descMenuAnalise"), | ||
14 | + id : "analise" | ||
15 | + }, | ||
16 | + { | ||
17 | + nome : $trad("s4"), | ||
18 | + descricao: $trad("descArquivos"), | ||
19 | + id : "arquivos" | ||
20 | + }, | ||
21 | + { | ||
22 | + nome : $trad("operacoesMapaTema"), | ||
23 | + descricao: $trad("descOperacoesMapaTema"), | ||
24 | + id : "ferramentas" | ||
25 | + } | ||
26 | + ], | ||
27 | + submenus : { | ||
28 | + "ajudaMenu" : [ | ||
29 | + { | ||
30 | + id : "omenudataAjudamenu9", | ||
31 | + text : $trad("x68"), | ||
32 | + url : "javascript:i3GEO.janela.tempoMsg(i3GEO.parametros.mensageminicia)" | ||
33 | + }, | ||
34 | + { | ||
35 | + id : "omenudataAjudamenu2", | ||
36 | + text : $trad("u2"), | ||
37 | + url : "javascript:i3GEO.ajuda.abreDoc()" | ||
38 | + }, | ||
39 | + { | ||
40 | + id : "omenudataAjudamenu3", | ||
41 | + text : $trad("u4a"), | ||
42 | + url : "javascript:i3GEO.ajuda.abreDoc('/documentacao/manual-i3geo-6_0-pt.pdf')" | ||
43 | + }, | ||
44 | + { | ||
45 | + id : "omenudataAjudamenu4", | ||
46 | + text : "Youtube", | ||
47 | + url : "https://www.youtube.com/results?search_query=i3geo", | ||
48 | + target : "_blank" | ||
49 | + }, | ||
50 | + { | ||
51 | + id : "omenudataAjudamenu5", | ||
52 | + text : $trad("u5a"), | ||
53 | + url : "http://www.softwarepublico.gov.br", | ||
54 | + target : "_blank" | ||
55 | + }, | ||
56 | + { | ||
57 | + id : "omenudataAjudamenu1", | ||
58 | + text : $trad("x67"), | ||
59 | + url : "https://softwarepublico.gov.br/social/i3geo", | ||
60 | + target : "_blank" | ||
61 | + }, | ||
62 | + { | ||
63 | + id : "omenudataAjudamenu7", | ||
64 | + text : "Git", | ||
65 | + url : "https://softwarepublico.gov.br/gitlab/groups/i3geo", | ||
66 | + target : "_blank" | ||
67 | + } | ||
68 | + ], | ||
69 | + "analise" : [ | ||
70 | + { | ||
71 | + id : "omenudataMedir", | ||
72 | + text : $trad("medir"), | ||
73 | + submenu : { | ||
74 | + id : "subAnaliseMedir", | ||
75 | + itemdata : [ | ||
76 | + [ | ||
77 | + { | ||
78 | + id : "omenudataMedirArea", | ||
79 | + text : $trad("d21at"), | ||
80 | + url : "javascript:i3GEO.analise.dialogo.area()" | ||
81 | + }, | ||
82 | + { | ||
83 | + id : "omenudataMedirDist", | ||
84 | + text : $trad("d21t"), | ||
85 | + url : "javascript:i3GEO.analise.dialogo.distancia()" | ||
86 | + } | ||
87 | + ] | ||
88 | + ] | ||
89 | + } | ||
90 | + }, | ||
91 | + { | ||
92 | + id : "omenudataAnalise1", | ||
93 | + text : $trad("u22"), | ||
94 | + submenu : { | ||
95 | + id : "subAnalise1", | ||
96 | + itemdata : [ | ||
97 | + [ | ||
98 | + { | ||
99 | + id : "omenudataAnalise2", | ||
100 | + text : $trad("u7"), | ||
101 | + url : "javascript:i3GEO.analise.dialogo.gradePol()" | ||
102 | + }, | ||
103 | + { | ||
104 | + id : "omenudataAnalise3", | ||
105 | + text : $trad("u8"), | ||
106 | + url : "javascript:i3GEO.analise.dialogo.gradePontos()" | ||
107 | + }, | ||
108 | + { | ||
109 | + id : "omenudataAnalise4", | ||
110 | + text : $trad("u9"), | ||
111 | + url : "javascript:i3GEO.analise.dialogo.gradeHex()" | ||
112 | + } | ||
113 | + ] | ||
114 | + ] | ||
115 | + } | ||
116 | + }, | ||
117 | + { | ||
118 | + id : "omenudataAnalise5", | ||
119 | + text : $trad("u23"), | ||
120 | + submenu : { | ||
121 | + id : "subAnalise2", | ||
122 | + itemdata : [ | ||
123 | + [ | ||
124 | + { | ||
125 | + id : "omenudataAnalise6", | ||
126 | + text : $trad("u11a"), | ||
127 | + url : "javascript:i3GEO.analise.dialogo.distanciaptpt()" | ||
128 | + }, | ||
129 | + { | ||
130 | + id : "omenudataAnalise7", | ||
131 | + text : $trad("u12"), | ||
132 | + url : "javascript:i3GEO.analise.dialogo.nptPol()" | ||
133 | + }, | ||
134 | + { | ||
135 | + id : "omenudataAnalise8", | ||
136 | + text : $trad("u13"), | ||
137 | + url : "javascript:i3GEO.analise.dialogo.pontoempoligono()" | ||
138 | + }, | ||
139 | + { | ||
140 | + id : "omenudataAnalise9", | ||
141 | + text : $trad("u14"), | ||
142 | + url : "javascript:i3GEO.analise.dialogo.pontosdistri()" | ||
143 | + }, | ||
144 | + { | ||
145 | + id : "omenudataAnalise9a", | ||
146 | + text : $trad("u28"), | ||
147 | + url : "javascript:i3GEO.analise.dialogo.centromassa()" | ||
148 | + } | ||
149 | + ] | ||
150 | + ] | ||
151 | + } | ||
152 | + }, | ||
153 | + { | ||
154 | + id : "omenudataAnalise10", | ||
155 | + text : $trad("u24"), | ||
156 | + submenu : { | ||
157 | + id : "subAnalise3", | ||
158 | + itemdata : [ | ||
159 | + [ | ||
160 | + { | ||
161 | + id : "omenudataAnalise11", | ||
162 | + text : $trad("u25"), | ||
163 | + url : "javascript:i3GEO.analise.dialogo.dissolve()" | ||
164 | + } | ||
165 | + ] | ||
166 | + ] | ||
167 | + } | ||
168 | + }, | ||
169 | + { | ||
170 | + id : "omenudataAnalise12", | ||
171 | + text : $trad("u27"), | ||
172 | + submenu : { | ||
173 | + id : "subAnalise5", | ||
174 | + itemdata : [ | ||
175 | + [ | ||
176 | + { | ||
177 | + id : "omenudataAnalise13", | ||
178 | + text : $trad("u6"), | ||
179 | + url : "javascript:i3GEO.analise.dialogo.analisaGeometrias()" | ||
180 | + }, | ||
181 | + { | ||
182 | + id : "omenudataAnalise14", | ||
183 | + text : $trad("u10"), | ||
184 | + url : "javascript:i3GEO.analise.dialogo.buffer()" | ||
185 | + }, | ||
186 | + { | ||
187 | + id : "omenudataAnalise15", | ||
188 | + text : $trad("u26"), | ||
189 | + url : "javascript:i3GEO.analise.dialogo.agrupaElementos()" | ||
190 | + }, | ||
191 | + { | ||
192 | + id : "omenudataAnalise16", | ||
193 | + text : $trad("u11"), | ||
194 | + url : "javascript:i3GEO.analise.dialogo.centroide()" | ||
195 | + }, | ||
196 | + { | ||
197 | + id : "omenudataAnalise17", | ||
198 | + text : $trad("t37b"), | ||
199 | + url : "javascript:i3GEO.analise.dialogo.graficoInterativo1()" | ||
200 | + }, | ||
201 | + { | ||
202 | + id : "omenudataAnalise21", | ||
203 | + text : $trad("x102"), | ||
204 | + url : "javascript:i3GEO.analise.dialogo.heatmap()" | ||
205 | + }, | ||
206 | + { | ||
207 | + id : "omenudataAnalise22", | ||
208 | + text : $trad("x104"), | ||
209 | + url : "javascript:i3GEO.analise.dialogo.markercluster()" | ||
210 | + }, | ||
211 | + { | ||
212 | + id : "omenudataAnalise24", | ||
213 | + text : $trad("melhorcaminho"), | ||
214 | + url : "javascript:i3GEO.analise.dialogo.melhorcaminho()" | ||
215 | + } | ||
216 | + ] | ||
217 | + ] | ||
218 | + } | ||
219 | + } | ||
220 | + ], | ||
221 | + "arquivos" : [ | ||
222 | + { | ||
223 | + id : "omenudataArquivos1", | ||
224 | + text : $trad("u17"), | ||
225 | + url : "javascript:i3GEO.mapa.dialogo.salvaMapa()" | ||
226 | + }, | ||
227 | + { | ||
228 | + id : "omenudataArquivos2", | ||
229 | + text : $trad("u18"), | ||
230 | + url : "javascript:i3GEO.mapa.dialogo.carregaMapa()" | ||
231 | + }, | ||
232 | + { | ||
233 | + id : "omenudataArquivos6", | ||
234 | + text : $trad("x72"), | ||
235 | + url : "javascript:i3GEO.mapa.dialogo.listaDeMapasBanco()" | ||
236 | + }, | ||
237 | + { | ||
238 | + id : "omenudataArquivos4", | ||
239 | + text : $trad("u20"), | ||
240 | + url : "javascript:i3GEO.mapa.dialogo.convertews()" | ||
241 | + }, | ||
242 | + { | ||
243 | + id : "omenudataArquivos5", | ||
244 | + text : $trad("u20a"), | ||
245 | + url : "javascript:i3GEO.mapa.dialogo.convertekml()" | ||
246 | + } | ||
247 | + ], | ||
248 | + "interface" : [ | ||
249 | + { | ||
250 | + id : "omenudataInterface0a", | ||
251 | + text : $trad("d27"), | ||
252 | + submenu : { | ||
253 | + id : "subInt1", | ||
254 | + itemdata : [ | ||
255 | + [ | ||
256 | + { | ||
257 | + id : "omenudataInterface2", | ||
258 | + text : "OpenLayers", | ||
259 | + url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/black_ol.htm?'+i3GEO.configura.sid" | ||
260 | + }, | ||
261 | + { | ||
262 | + id : "omenudataInterface2a", | ||
263 | + text : "OpenLayers OSM", | ||
264 | + url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/black_osm.htm?'+i3GEO.configura.sid" | ||
265 | + }, | ||
266 | + { | ||
267 | + id : "omenudataInterface4", | ||
268 | + text : "Google Maps", | ||
269 | + url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/black_gm.phtml?'+i3GEO.configura.sid" | ||
270 | + } | ||
271 | + ] | ||
272 | + ] | ||
273 | + } | ||
274 | + }, | ||
275 | + { | ||
276 | + id : "omenudataInterface0b", | ||
277 | + text : $trad("u27"), | ||
278 | + submenu : { | ||
279 | + id : "subInt2", | ||
280 | + itemdata : [ | ||
281 | + [ | ||
282 | + { | ||
283 | + id : "omenudataInterface6", | ||
284 | + text : $trad("u21"), | ||
285 | + url : "javascript:var w = window.open(i3GEO.configura.locaplic+'/geradordelinks.htm')" | ||
286 | + }, | ||
287 | + { | ||
288 | + id : "omenudataInterface7", | ||
289 | + text : "Serviços WMS", | ||
290 | + url : "javascript:var w = window.open(i3GEO.configura.locaplic+'/ogc.htm')" | ||
291 | + }, | ||
292 | + { | ||
293 | + id : "omenudataInterface9", | ||
294 | + text : "Download de dados", | ||
295 | + url : "javascript:var w = window.open(i3GEO.configura.locaplic+'/datadownload.htm')" | ||
296 | + } | ||
297 | + ] | ||
298 | + ] | ||
299 | + } | ||
300 | + } | ||
301 | + ], | ||
302 | + "ferramentas" : [ | ||
303 | + // mapas | ||
304 | + // apos modificar, veja se a ferramenta i3GEO.mapa.dialogo.ferramentas() vai funcionar | ||
305 | + // essa ferramenta faz um parser das strings existentes em text e url | ||
306 | + // text deve sempre ter a tag </span> e url deve sempre ter javascript: | ||
307 | + // | ||
308 | + { | ||
309 | + id : "omenudataFerramentas0a", | ||
310 | + text : $trad("g4a"), | ||
311 | + submenu : { | ||
312 | + id : "mapa", | ||
313 | + itemdata : [ | ||
314 | + [ | ||
315 | + { | ||
316 | + id : "omenudataFerramentas5a", | ||
317 | + text : $trad("x59"), | ||
318 | + url : "javascript:i3GEO.mapa.dialogo.locregiao()" | ||
319 | + }, | ||
320 | + { | ||
321 | + id : "omenudataFerramentas6a", | ||
322 | + text : $trad("x61"), | ||
323 | + url : "javascript:i3GEO.mapa.dialogo.filtraregiao()" | ||
324 | + }, | ||
325 | + { | ||
326 | + id : "omenudataFerramentas1a", | ||
327 | + text : $trad("t20"), | ||
328 | + url : "javascript:i3GEO.mapa.dialogo.opacidade()" | ||
329 | + }, | ||
330 | + { | ||
331 | + id : "omenudataFerramentas2a", | ||
332 | + text : $trad("p21"), | ||
333 | + url : "javascript:i3GEO.mapa.dialogo.animacao()" | ||
334 | + }, | ||
335 | + { | ||
336 | + id : "omenudataFerramentas3a", | ||
337 | + text : $trad("d24t"), | ||
338 | + url : "javascript:i3GEO.mapa.dialogo.selecao();" | ||
339 | + }, | ||
340 | + { | ||
341 | + id : "omenudataFerramentas11", | ||
342 | + text : $trad("d22t"), | ||
343 | + url : "javascript:i3GEO.mapa.dialogo.cliquePonto()" | ||
344 | + }, | ||
345 | + { | ||
346 | + id : "omenudataFerramentas12", | ||
347 | + text : $trad("d25t"), | ||
348 | + url : "javascript:i3GEO.mapa.dialogo.cliqueTexto()" | ||
349 | + }, | ||
350 | + { | ||
351 | + id : "omenudataImprimir", | ||
352 | + text : $trad("d12"), | ||
353 | + url : "javascript:i3GEO.mapa.dialogo.imprimir()" | ||
354 | + }, | ||
355 | + { | ||
356 | + id : "omenudataTipoImg", | ||
357 | + text : $trad("p2"), | ||
358 | + url : "javascript:i3GEO.mapa.dialogo.tipoimagem()" | ||
359 | + }, | ||
360 | + { | ||
361 | + id : "omenudataCorFundo", | ||
362 | + text : $trad("p9"), | ||
363 | + url : "javascript:i3GEO.mapa.dialogo.corFundo()" | ||
364 | + }, | ||
365 | + { | ||
366 | + id : "gradeCoordenadas", | ||
367 | + text : $trad("p10"), | ||
368 | + url : "javascript:i3GEO.mapa.dialogo.gradeCoord()" | ||
369 | + }, | ||
370 | + { | ||
371 | + id : "mascara", | ||
372 | + text : $trad("mascara"), | ||
373 | + url : "javascript:i3GEO.mapa.dialogo.mascara()" | ||
374 | + }, | ||
375 | + { | ||
376 | + id : "wkt2layer", | ||
377 | + text : $trad("wkt2layer"), | ||
378 | + url : "javascript:i3GEO.mapa.dialogo.wkt2layer()" | ||
379 | + }, | ||
380 | + { | ||
381 | + id : "omenudataFerramentasCliqueGrafico", | ||
382 | + text : $trad("d23t"), | ||
383 | + url : "javascript:i3GEO.mapa.dialogo.cliqueGrafico()" | ||
384 | + } | ||
385 | + ] | ||
386 | + ] | ||
387 | + } | ||
388 | + }, | ||
389 | + // temas | ||
390 | + { | ||
391 | + id : "omenudataFerramentas0b", | ||
392 | + text : $trad("a7"), | ||
393 | + submenu : { | ||
394 | + id : "camada", | ||
395 | + itemdata : [ | ||
396 | + [ | ||
397 | + { | ||
398 | + id : "omenudataFerramentas1b", | ||
399 | + text : $trad("t31"), | ||
400 | + url : "javascript:i3GEO.tema.dialogo.tabela()" | ||
401 | + }, | ||
402 | + { | ||
403 | + id : "omenudataFerramentas2b", | ||
404 | + text : $trad("t23"), | ||
405 | + url : "javascript:i3GEO.tema.dialogo.procuraratrib()" //feramentas/busca | ||
406 | + }, | ||
407 | + { | ||
408 | + id : "omenudataFerramentas3b", | ||
409 | + text : $trad("t25"), | ||
410 | + url : "javascript:i3GEO.tema.dialogo.toponimia()" | ||
411 | + }, | ||
412 | + { | ||
413 | + id : "omenudataFerramentas4b", | ||
414 | + text : $trad("t27"), | ||
415 | + url : "javascript:i3GEO.tema.dialogo.etiquetas()" | ||
416 | + }, | ||
417 | + { | ||
418 | + id : "omenudataFerramentas5b", | ||
419 | + text : $trad("t29"), | ||
420 | + url : "javascript:i3GEO.tema.dialogo.filtro()" | ||
421 | + }, | ||
422 | + { | ||
423 | + id : "omenudataFerramentas6b", | ||
424 | + text : $trad("t33"), | ||
425 | + url : "javascript:i3GEO.tema.dialogo.editaLegenda()" | ||
426 | + }, | ||
427 | + /* | ||
428 | + { | ||
429 | + id : "omenudataFerramentas7b", | ||
430 | + text : $trad("t42"), | ||
431 | + url : "javascript:i3GEO.tema.dialogo.cortina()" | ||
432 | + }, | ||
433 | + */ | ||
434 | + { | ||
435 | + id : "omenudataFerramentas8b", | ||
436 | + text : $trad("t37a"), | ||
437 | + url : "javascript:i3GEO.tema.dialogo.graficotema()" | ||
438 | + }, | ||
439 | + { | ||
440 | + id : "omenudataFerramentas9b", | ||
441 | + text : $trad("t37b"), | ||
442 | + url : "javascript:i3GEO.analise.dialogo.graficoInterativo1()" | ||
443 | + }, | ||
444 | + { | ||
445 | + id : "omenudataFerramentasmmscale", | ||
446 | + text : $trad("variaEscala"), | ||
447 | + url : "javascript:i3GEO.tema.dialogo.mmscale()" | ||
448 | + }, | ||
449 | + { | ||
450 | + id : "omenudataFerramentas3e", | ||
451 | + text : $trad("t49"), | ||
452 | + url : "javascript:i3GEO.tema.dialogo.tme()" | ||
453 | + }, | ||
454 | + { | ||
455 | + id : "omenudataFerramentasStoryMap", | ||
456 | + text : "StoryMap", | ||
457 | + url : "javascript:i3GEO.tema.dialogo.storymap()" | ||
458 | + }, | ||
459 | + { | ||
460 | + id : "omenudataFerramentasAnimagif", | ||
461 | + text : "Anima Gif", | ||
462 | + url : "javascript:i3GEO.tema.dialogo.animagif()" | ||
463 | + } | ||
464 | + ] | ||
465 | + ] | ||
466 | + } | ||
467 | + }, | ||
468 | + // cartogramas | ||
469 | + { | ||
470 | + id : "omenudataFerramentas0e", | ||
471 | + text : $trad("x60"), | ||
472 | + submenu : { | ||
473 | + id : "subFerr3", | ||
474 | + itemdata : [ | ||
475 | + [ | ||
476 | + { | ||
477 | + id : "omenudataFerramentas1e", | ||
478 | + text : $trad("x57"), | ||
479 | + url : "javascript:i3GEO.mapa.dialogo.metaestat()" | ||
480 | + } | ||
481 | + /* TODO ver se reativa isso | ||
482 | + , | ||
483 | + { | ||
484 | + id : "omenudataFerramentas4e", | ||
485 | + text : $trad("x71"), | ||
486 | + url : "javascript:i3GEO.mapa.dialogo.metaestatListaMapas()" | ||
487 | + } | ||
488 | + */ | ||
489 | + ] | ||
490 | + ] | ||
491 | + } | ||
492 | + }, | ||
493 | + // conexoes | ||
494 | + { | ||
495 | + id : "omenudataFerramentas0c", | ||
496 | + text : $trad("a15"), | ||
497 | + submenu : { | ||
498 | + id : "subFerr4", | ||
499 | + itemdata : [ | ||
500 | + [ | ||
501 | + { | ||
502 | + id : "omenudataFerramentas14", | ||
503 | + text : $trad("conexaoServicoGeo"), | ||
504 | + url : "javascript:i3GEO.arvoreDeTemas.dialogo.conectaservico()" | ||
505 | + } | ||
506 | + /* TODO reativar?, | ||
507 | + { | ||
508 | + id : "omenudataFerramentas9i", | ||
509 | + text : $trad("x85"), | ||
510 | + url : "javascript:i3GEO.arvoreDeTemas.dialogo.vinde()" | ||
511 | + } | ||
512 | + */ | ||
513 | + ] | ||
514 | + ] | ||
515 | + } | ||
516 | + }, | ||
517 | + // upload | ||
518 | + { | ||
519 | + id : "omenudataFerramentas0d", | ||
520 | + text : 'Upload', | ||
521 | + submenu : { | ||
522 | + id : "subFerr5", | ||
523 | + itemdata : [ | ||
524 | + [ | ||
525 | + { | ||
526 | + id : "omenudataFerramentas13", | ||
527 | + text : $trad("uploadArquivoGeo"), | ||
528 | + url : "javascript:i3GEO.arvoreDeTemas.dialogo.uploadarquivo()" | ||
529 | + } | ||
530 | + ] | ||
531 | + ] | ||
532 | + } | ||
533 | + }, | ||
534 | + //navegacao | ||
535 | + { | ||
536 | + id : "omenudataNavegacao1", | ||
537 | + text : $trad("x105"), | ||
538 | + submenu : { | ||
539 | + id : "subAnalise4", | ||
540 | + itemdata : [ | ||
541 | + [ | ||
542 | + { | ||
543 | + id : "omenudataAnalise18", | ||
544 | + text : $trad("d30"), | ||
545 | + url : "javascript:i3GEO.analise.dialogo.linhaDoTempo()" | ||
546 | + }, | ||
547 | + { | ||
548 | + id : "omenudataNavegacao2", | ||
549 | + text : $trad("d15t"), | ||
550 | + url : "javascript:i3GEO.navega.dialogo.google()" | ||
551 | + }, | ||
552 | + /* | ||
553 | + { | ||
554 | + id : "omenudataNavegacao3", | ||
555 | + text : $trad("d9t"), | ||
556 | + url : "javascript:i3GEO.maparef.inicia()" | ||
557 | + }, | ||
558 | + */ | ||
559 | + { | ||
560 | + id : "omenudataNavegacao4", | ||
561 | + text : $trad("d8t"), | ||
562 | + url : "javascript:i3GEO.mapa.dialogo.mostraExten()" | ||
563 | + }, | ||
564 | + { | ||
565 | + id : "omenudataNavegacaoWiki", | ||
566 | + text : $trad("d11t"), | ||
567 | + url : "javascript:i3GEO.navega.dialogo.wiki()" | ||
568 | + }, | ||
569 | + { | ||
570 | + id : "omenudataNavegacaoMetar", | ||
571 | + text : $trad("d29"), | ||
572 | + url : "javascript:i3GEO.navega.dialogo.metar()" | ||
573 | + }, | ||
574 | + { | ||
575 | + id : "omenudataNavegacaoFotos", | ||
576 | + text : "Fotos", | ||
577 | + url : "javascript:i3GEO.navega.dialogo.buscaFotos()" | ||
578 | + }, | ||
579 | + { | ||
580 | + id : "omenudataNavegacaoConfluence", | ||
581 | + text : $trad("d17t"), | ||
582 | + url : "javascript:i3GEO.navega.dialogo.confluence()" | ||
583 | + }, | ||
584 | + /* | ||
585 | + { | ||
586 | + id : "omenudataNavegacaoLente", | ||
587 | + text : $trad("d18t"), | ||
588 | + url : "javascript:i3GEO.navega.lente.inicia()" | ||
589 | + }, | ||
590 | + */ | ||
591 | + { | ||
592 | + id : "omenudataFerramentas7a", | ||
593 | + text : $trad("x64a"), | ||
594 | + url : "javascript:i3GEO.mapa.dialogo.congelaMapa();" | ||
595 | + }, | ||
596 | + { | ||
597 | + id : "omenudataFerramentas8a", | ||
598 | + text : $trad("p12"), | ||
599 | + url : "javascript:i3GEO.mapa.dialogo.autoredesenha()" | ||
600 | + }, | ||
601 | + { | ||
602 | + id : "omenudataFerramentas10", | ||
603 | + text : $trad("x93"), | ||
604 | + url : "javascript:i3GEO.mapa.dialogo.geolocal()" | ||
605 | + } | ||
606 | + ] | ||
607 | + ] | ||
608 | + } | ||
609 | + }, | ||
610 | + { | ||
611 | + id : "omenudataBarraEdicao", | ||
612 | + text : $trad("u29"), | ||
613 | + url : "javascript:i3GEO.editor.inicia()", | ||
614 | + Interface : "openlayers" //so para a interface openlayers | ||
615 | + } | ||
616 | + ] | ||
617 | + } | ||
618 | +}; | ||
0 | \ No newline at end of file | 619 | \ No newline at end of file |
mashups/openlayers.php
@@ -441,7 +441,7 @@ function ajuda() | @@ -441,7 +441,7 @@ function ajuda() | ||
441 | <script src="../pacotes/ol4/ol.js"></script> | 441 | <script src="../pacotes/ol4/ol.js"></script> |
442 | <script src="../js/i3geo.js"></script> | 442 | <script src="../js/i3geo.js"></script> |
443 | <!-- lista com os links que serao mostrados na guia ferramentas --> | 443 | <!-- lista com os links que serao mostrados na guia ferramentas --> |
444 | -<script src="../js/listaDeFerramentas.js"></script> | 444 | +<script src="listaDeFerramentas.js"></script> |
445 | <!-- configuracoes default tipo pode ser OL (openLayers) ou GM (googlemaps) --> | 445 | <!-- configuracoes default tipo pode ser OL (openLayers) ou GM (googlemaps) --> |
446 | <script src="../interface/config.php?tipo=OL"></script> | 446 | <script src="../interface/config.php?tipo=OL"></script> |
447 | <script src="../ferramentas/editorol/editorol.js"></script> | 447 | <script src="../ferramentas/editorol/editorol.js"></script> |
ms_configura.php
@@ -318,7 +318,7 @@ inseretxt,mostraexten,outputformat,perfil,tipoimagem | @@ -318,7 +318,7 @@ inseretxt,mostraexten,outputformat,perfil,tipoimagem | ||
318 | 318 | ||
319 | */ | 319 | */ |
320 | //$i3geoBlFerramentas = array("saiku"); | 320 | //$i3geoBlFerramentas = array("saiku"); |
321 | -$i3geoBlFerramentas = array(""); | 321 | +$i3geoBlFerramentas = array(); |
322 | /* | 322 | /* |
323 | Variable: $ogrOutput | 323 | Variable: $ogrOutput |
324 | 324 |