Commit 4d6c02e5257429f6417862df25878db5ff2e69cd
1 parent
98095dc9
Exists in
master
and in
7 other branches
#528
Showing
2 changed files
with
66 additions
and
3 deletions
Show diff stats
classesjs/classe_arvoredetemas.js
... | ... | @@ -101,7 +101,9 @@ i3GEO.arvoreDeTemas = { |
101 | 101 | |
102 | 102 | googleearth: true, |
103 | 103 | |
104 | - uploadarquivo: true //upload de GPX, SHAPEFILE, DBF, CSV e KML | |
104 | + uploadarquivo: true, //upload de GPX, SHAPEFILE, DBF, CSV e KML | |
105 | + | |
106 | + flutuante: true //mostra a opção que permite abrir o catálogo em uma janela flutuante | |
105 | 107 | } |
106 | 108 | |
107 | 109 | Tipo: |
... | ... | @@ -134,7 +136,8 @@ i3GEO.arvoreDeTemas = { |
134 | 136 | bookmark: true, |
135 | 137 | importarwmc: true, |
136 | 138 | googleearth: true, |
137 | - carregaKml: true | |
139 | + carregaKml: true, | |
140 | + flutuante: true | |
138 | 141 | }, |
139 | 142 | /* |
140 | 143 | Propriedade: FATORESTRELA |
... | ... | @@ -343,6 +346,53 @@ i3GEO.arvoreDeTemas = { |
343 | 346 | */ |
344 | 347 | TEMAS: null, |
345 | 348 | /* |
349 | + Function: flutuante | |
350 | + | |
351 | + Abre o catálogo em uma janela flutuante | |
352 | + */ | |
353 | + flutuante: function(){ | |
354 | + var janela,ins,temp,cabecalho,minimiza,idold,corpo,altura; | |
355 | + cabecalho = function(){}; | |
356 | + if($i("i3GEOFcatalogo_corpo")) | |
357 | + {return;} | |
358 | + minimiza = function(){ | |
359 | + i3GEO.janela.minimiza("i3GEOFcatalogo"); | |
360 | + }; | |
361 | + altura = i3GEO.parametros.w - 150; | |
362 | + if(altura > 500){ | |
363 | + altura = 500; | |
364 | + } | |
365 | + janela = i3GEO.janela.cria( | |
366 | + "360px", | |
367 | + altura + "px", | |
368 | + "", | |
369 | + "", | |
370 | + "", | |
371 | + $trad("g1a"), | |
372 | + "i3GEOFcatalogo", | |
373 | + false, | |
374 | + "hd", | |
375 | + cabecalho, | |
376 | + minimiza | |
377 | + ); | |
378 | + temp = function(){ | |
379 | + delete(i3GEO.arvoreDeTemas.ARVORE); | |
380 | + }; | |
381 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp,janela[0].panel,{id:janela[0].id},true); | |
382 | + corpo = $i("i3GEOFcatalogo_corpo"); | |
383 | + corpo.style.backgroundColor = "white"; | |
384 | + corpo.innerHTML = $trad("o1"); | |
385 | + corpo.style.overflow = "auto"; | |
386 | + if($i(i3GEO.arvoreDeTemas.IDHTML)){ | |
387 | + $i(i3GEO.arvoreDeTemas.IDHTML).innerHTML = ""; | |
388 | + i3GEO.arvoreDeTemas.IDHTML = idold; | |
389 | + } | |
390 | + idold = i3GEO.arvoreDeTemas.IDHTML; | |
391 | + delete(i3GEO.arvoreDeTemas.ARVORE); | |
392 | + i3GEO.arvoreDeTemas.IDHTML = "i3GEOFcatalogo_corpo"; | |
393 | + i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,""); | |
394 | + }, | |
395 | + /* | |
346 | 396 | Function: listaWMS |
347 | 397 | |
348 | 398 | Lista os WMS cadastrados preenchendo o nó OGC-WMS |
... | ... | @@ -861,6 +911,18 @@ i3GEO.arvoreDeTemas = { |
861 | 911 | ); |
862 | 912 | } |
863 | 913 | // |
914 | + //abrir catálogo em janela flutuante | |
915 | + // | |
916 | + if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.flutuante === true){ | |
917 | + tempNode = new YAHOO.widget.HTMLNode( | |
918 | + { | |
919 | + html:"<a href='#' onclick='i3GEO.arvoreDeTemas.flutuante()' >Abrir em janela flutuante</a>", | |
920 | + idmenu:"",enableHighlight:false,expanded:false | |
921 | + }, | |
922 | + root | |
923 | + ); | |
924 | + } | |
925 | + // | |
864 | 926 | //wms |
865 | 927 | // |
866 | 928 | if(i3GEO.arvoreDeTemas.INCLUIWMS === true){ |
... | ... | @@ -2025,7 +2087,7 @@ i3GEO.arvoreDeTemas = { |
2025 | 2087 | " </tr>"; |
2026 | 2088 | } |
2027 | 2089 | ins += " </table>"; |
2028 | - $i(janela[2].id).innerHTML = ins;; | |
2090 | + $i(janela[2].id).innerHTML = ins; | |
2029 | 2091 | }, |
2030 | 2092 | |
2031 | 2093 | /* | ... | ... |
classesjs/classe_configura.js
... | ... | @@ -180,6 +180,7 @@ i3GEO.configura = { |
180 | 180 | ], |
181 | 181 | "ferramentas": [ |
182 | 182 | { id:"omenudataFerramentas0a",text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("g4a")+'</b></span>',url: "#"}, |
183 | + { id:"omenudataFerramentas4a",text: $trad("g1a"), url: "javascript:i3GEO.arvoreDeTemas.flutuante()"}, | |
183 | 184 | { id:"omenudataFerramentas1a",text: $trad("t20"), url: "javascript:i3GEO.mapa.dialogo.opacidade()"}, |
184 | 185 | { id:"omenudataFerramentas2a",text: $trad("p21"), url: "javascript:i3GEO.mapa.dialogo.animacao()"}, |
185 | 186 | { id:"omenudataFerramentas3a",text: $trad("d24t"), url: "javascript:i3GEO.mapa.dialogo.selecao();"}, | ... | ... |