Commit 00a252f71c9ae2335cb38fe6951fda2db525066d
1 parent
be5085cb
Exists in
master
and in
7 other branches
--no commit message
Showing
9 changed files
with
42 additions
and
32 deletions
Show diff stats
classesjs/classe_barradebotoes.js
... | ... | @@ -746,7 +746,10 @@ i3GEO.barraDeBotoes = { |
746 | 746 | dock = new euDock(), |
747 | 747 | temp = "", |
748 | 748 | chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO), |
749 | - n = chaves.length; | |
749 | + n = chaves.length, | |
750 | + preload; | |
751 | + preload = new Image(); | |
752 | + preload.src = i3GEO.configura.locaplic+"/imagens/gisicons/eudock/sobe1.png"; | |
750 | 753 | dock.setObjectAlign(i3GEO.Interface.IDCORPO,euDOWN,(parseInt(document.body.style.height,10))*-1 + i3GEO.barraDeBotoes.OFFSET,euUP); |
751 | 754 | dock.setBar({ |
752 | 755 | left:{euImage:{image:i3GEO.configura.locaplic+"/pacotes/eudock/barImages/dockBg-l.png"}}, |
... | ... | @@ -1218,7 +1221,6 @@ i3GEO.barraDeBotoes = { |
1218 | 1221 | if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.recria()");} |
1219 | 1222 | if(i3GEO.barraDeBotoes.TIPO === "olhodepeixe"){ |
1220 | 1223 | euEnv.euDockArray = []; |
1221 | - //euEnv.Kost = []; | |
1222 | 1224 | euEnv.Kost.num = 0; |
1223 | 1225 | if($i("euDock_0_bar")){ |
1224 | 1226 | document.body.removeChild($i("euDock_0_bar").parentNode); | ... | ... |
classesjs/classe_configura.js
classesjs/classe_coordenadas.js
... | ... | @@ -363,7 +363,7 @@ i3GEO.coordenadas = { |
363 | 363 | {string} - html com a tabela |
364 | 364 | */ |
365 | 365 | criaMascaraDMS: function(prefixo,titulo,caixa){ |
366 | - var ins = '<table id='+prefixo+' style=display:block;text-align:center;width:410px ><tr style="border-bottom:2px solid white" >' + | |
366 | + var ins = '<table id='+prefixo+' style=display:block;text-align:center;width:280px ><tr style="border-bottom:2px solid white" >' + | |
367 | 367 | '<td style=width:10px;text-align:right > X:</td>' + |
368 | 368 | '<td>'+$inputText('','',prefixo+'xg','grau','2','-00')+'</td>' + |
369 | 369 | '<td>'+$inputText('','',prefixo+'xm','minuto','2','00')+'</td>' + | ... | ... |
classesjs/classe_gadgets.js
... | ... | @@ -857,6 +857,13 @@ i3GEO.gadgets = { |
857 | 857 | if(ms.deslocaEsquerda){ |
858 | 858 | alinhamento = "left:"+ms.deslocaEsquerda*-1+"px;"; |
859 | 859 | } |
860 | + //ajusta a altura caso não tenha sido especificado no HTML | |
861 | + if(!objid.style.height || parseInt(objid.style.height,10) === 0) | |
862 | + {objid.style.height = "21px";} | |
863 | + else{ | |
864 | + if(!temp.style.height || parseInt(temp.style.height) === 0) | |
865 | + {temp.style.height = "21px";} | |
866 | + } | |
860 | 867 | ins += '<div class="bd" style="top:0px;'+alinhamento+'display:block;align:right;border: 0px solid white;z-index:6000;line-height:1.4" >' + |
861 | 868 | '<ul class="first-of-type" style="display:block;border:0px solid white;top:10px;">'; |
862 | 869 | n = confm.menu.length; |
... | ... | @@ -875,7 +882,6 @@ i3GEO.gadgets = { |
875 | 882 | var conta,nomeMenu,nomeSub, |
876 | 883 | subs = i3GEO.configura.oMenuData.submenus, |
877 | 884 | conta = 0; |
878 | - | |
879 | 885 | for(nomeMenu in subs){ |
880 | 886 | if($i("menu"+nomeMenu)){ |
881 | 887 | nomeSub = subs[nomeMenu]; |
... | ... | @@ -940,11 +946,10 @@ i3GEO.gadgets = { |
940 | 946 | temp = objid.style; |
941 | 947 | temp.backgroundPosition = "0px -1px"; |
942 | 948 | temp.border = "0px solid white"; |
943 | - | |
944 | - if(navm) | |
945 | - {temp.borderBottom = "2px solid white";} | |
946 | - if(navm && i3GEO.Interface.ATUAL === "googlemaps") | |
947 | - {temp.border = "2px dotted white";} | |
949 | + //if(navm) | |
950 | + //{temp.borderBottom = "2px solid white";} | |
951 | + //if(navm && i3GEO.Interface.ATUAL === "googlemaps") | |
952 | + //{temp.border = "2px dotted white";} | |
948 | 953 | if(ms.finaliza && ms.finaliza != ""){ |
949 | 954 | eval(ms.finaliza); |
950 | 955 | } | ... | ... |
classesjs/classe_guias.js
... | ... | @@ -705,13 +705,14 @@ i3GEO.guias = { |
705 | 705 | alturaGuiaMovel: 0, |
706 | 706 | larguraGuiaMovel: 300 |
707 | 707 | }, |
708 | + left: 0, | |
708 | 709 | inicia: function(){ |
709 | 710 | var molde = document.createElement("div"), |
710 | 711 | moldeS = molde.style, |
711 | 712 | posMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)), |
712 | 713 | ins = ""; |
713 | 714 | if(i3GEO.guias.ALTURACORPOGUIAS === 0 && i3GEO.guias.guiaMovel.config.alturaGuiaMovel === 0) |
714 | - {i3GEO.guias.guiaMovel.config.alturaGuiaMovel = i3GEO.parametros.h / 1.5;} | |
715 | + {i3GEO.guias.guiaMovel.config.alturaGuiaMovel = i3GEO.parametros.h - 100;} | |
715 | 716 | else |
716 | 717 | {i3GEO.guias.guiaMovel.config.alturaGuiaMovel = i3GEO.guias.ALTURACORPOGUIAS;} |
717 | 718 | molde.id = "i3GEOguiaMovelMolde"; |
... | ... | @@ -720,17 +721,23 @@ i3GEO.guias = { |
720 | 721 | moldeS.height = i3GEO.guias.guiaMovel.config.alturaGuiaMovel; |
721 | 722 | moldeS.border = "0px solid white"; |
722 | 723 | moldeS.textAlign = "left"; |
724 | + moldeS.zIndex = 1000; | |
723 | 725 | moldeS.left = posMapa[0] + i3GEO.parametros.w - i3GEO.guias.guiaMovel.config.larguraPuxador; |
726 | + i3GEO.guias.guiaMovel.left = parseInt(moldeS.left,10); | |
724 | 727 | moldeS.top = posMapa[1] + (i3GEO.parametros.h / 2) - (i3GEO.guias.guiaMovel.config.alturaGuiaMovel / 2); |
725 | - ins += "<img onclick='i3GEO.guias.guiaMovel.abreFecha()' style='z-index:2;border:solid 0px white;left:0px;position:relative;top:"+ ((i3GEO.guias.guiaMovel.config.alturaGuiaMovel / 2) - (i3GEO.guias.guiaMovel.config.alturaPuxador / 2)) +"px' width='"+i3GEO.guias.guiaMovel.config.larguraPuxador+"' src='"+i3GEO.configura.locaplic+"/"+i3GEO.guias.guiaMovel.config.imgPuxador+"' >"; | |
726 | - ins += "<div id='i3GEOguiaMovelConteudo' style='border-color:gray;border-width:0px 0 0px 0px;left:"+(i3GEO.guias.guiaMovel.config.larguraPuxador - 4) +"px;top:0px;width:0px;position:inherit;display:none;height:"+i3GEO.guias.guiaMovel.config.alturaGuiaMovel+"px;background-color:black' > </div>" | |
727 | - ins += "<div id='i3GEOguiaMovelIcones' style='left:"+(i3GEO.guias.guiaMovel.config.larguraPuxador + 4)+";display:none;position:inherit;top:5px;text-align:center;height:50px;width:"+(i3GEO.guias.guiaMovel.config.larguraGuiaMovel - 8) +"px;border:solid 0px white;background-color:white' ></div>"; | |
728 | + ins += "<img id='i3GEOguiaMovelPuxador' onclick='i3GEO.guias.guiaMovel.abreFecha()' style='z-index:2;border:solid 0px white;left:0px;position:relative;top:"+ ((i3GEO.guias.guiaMovel.config.alturaGuiaMovel / 2) - (i3GEO.guias.guiaMovel.config.alturaPuxador / 2)) +"px' width='"+i3GEO.guias.guiaMovel.config.larguraPuxador+"' src='"+i3GEO.configura.locaplic+"/"+i3GEO.guias.guiaMovel.config.imgPuxador+"' >"; | |
729 | + ins += "<div id='i3GEOguiaMovelConteudo' style='display:none;position:absolute;border-color:gray;border-width:0px 0 0px 0px;left:"+(i3GEO.guias.guiaMovel.config.larguraPuxador - 4) +"px;top:0px;height:"+i3GEO.guias.guiaMovel.config.alturaGuiaMovel+"px;background-color:black' > </div>" | |
730 | + ins += "<div id='i3GEOguiaMovelIcones' style='left:"+(i3GEO.guias.guiaMovel.config.larguraPuxador + 4)+";display:none;position:absolute;top:6px;text-align:center;height:50px;width:"+(i3GEO.guias.guiaMovel.config.larguraGuiaMovel - 8) +"px;border:solid 0px white;background-color:white' ></div>"; | |
728 | 731 | molde.innerHTML = ins; |
729 | - | |
730 | 732 | document.body.appendChild(molde); |
731 | 733 | YAHOO.util.Dom.setStyle("i3GEOguiaMovelConteudo", "opacity", 0.20); |
732 | 734 | YAHOO.util.Dom.setStyle("i3GEOguiaMovelIcones", "opacity", 0.40); |
733 | 735 | }, |
736 | + reposiciona: function(){ | |
737 | + var obj = $i("i3GEOguiaMovelMolde"); | |
738 | + obj.parentNode.removeChild(obj); | |
739 | + i3GEO.guias.guiaMovel.inicia(); | |
740 | + }, | |
734 | 741 | abreFecha: function(){ |
735 | 742 | var molde = $i("i3GEOguiaMovelMolde"), |
736 | 743 | conteudo = $i("i3GEOguiaMovelConteudo"), |
... | ... | @@ -739,14 +746,10 @@ i3GEO.guias = { |
739 | 746 | moldeS = molde.style, |
740 | 747 | anim, |
741 | 748 | anim1; |
742 | - if(parseInt(conteudoS.width,10) !== 0){//esconde | |
743 | - //conteudoS.width = "0px"; | |
744 | - //conteudoS.display = "none"; | |
745 | - //moldeS.left = parseInt(moldeS.left,10) + i3GEO.guias.guiaMovel.config.larguraGuiaMovel + "px"; | |
746 | - //moldeS.width = i3GEO.guias.guiaMovel.config.larguraPuxador + "px"; | |
749 | + if(conteudoS.display === "block"){//esconde | |
747 | 750 | $i("i3GEOguiaMovelIcones").style.display = "none"; |
748 | 751 | attributes = { |
749 | - left: { to: parseInt(moldeS.left,10) + i3GEO.guias.guiaMovel.config.larguraGuiaMovel }, | |
752 | + left: { to: i3GEO.guias.guiaMovel.left - 1 }, | |
750 | 753 | id: "i3GEOguiaMovelMolde" |
751 | 754 | }; |
752 | 755 | anim = new YAHOO.util.Anim(molde, attributes, 1, YAHOO.util.Easing.easeNone); |
... | ... | @@ -756,12 +759,13 @@ i3GEO.guias = { |
756 | 759 | }; |
757 | 760 | anim1 = new YAHOO.util.Anim(conteudo, attributes, 1, YAHOO.util.Easing.easeNone); |
758 | 761 | anim.animate(); |
759 | - anim1.animate(); | |
762 | + anim1.animate(); | |
763 | + anim1.onComplete.subscribe(function(){ | |
764 | + conteudoS.display = "none"; | |
765 | + }); | |
760 | 766 | } |
761 | 767 | else{ |
762 | 768 | conteudoS.display = "block"; |
763 | - //moldeS.width = i3GEO.guias.guiaMovel.config.larguraGuiaMovel + i3GEO.guias.guiaMovel.config.larguraPuxador + "px"; | |
764 | - //moldeS.left = parseInt(moldeS.left,10) - i3GEO.guias.guiaMovel.config.larguraGuiaMovel + "px"; | |
765 | 769 | attributes = { |
766 | 770 | left: { to: parseInt(moldeS.left,10) - i3GEO.guias.guiaMovel.config.larguraGuiaMovel }, |
767 | 771 | id: "i3GEOguiaMovelMolde" | ... | ... |
classesjs/classe_i3geo.js
classesjs/classe_mapa.js
... | ... | @@ -73,11 +73,11 @@ i3GEO.mapa = { |
73 | 73 | i3GEO.reCalculaTamanho(); |
74 | 74 | i3GEO.barraDeBotoes.recria("i3geo_barra2"); |
75 | 75 | if(i3GEO.Interface.TABLET === true) |
76 | - {i3GEO.guias.escondeGuias();} | |
76 | + {i3GEO.guias.escondeGuias();return;} | |
77 | + if(i3GEO.guias.TIPO === "movel") | |
78 | + {i3GEO.guias.guiaMovel.reposiciona();} | |
77 | 79 | else |
78 | - { | |
79 | - i3GEO.guias.ajustaAltura(); | |
80 | - } | |
80 | + {i3GEO.guias.ajustaAltura();} | |
81 | 81 | },2000); |
82 | 82 | }; |
83 | 83 | }, | ... | ... |
interface/openlayers.htm
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | <td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> |
13 | 13 | </tr> |
14 | 14 | <tr> |
15 | - <td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
15 | + <td id="contemMenu" style="text-align:right;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> | |
16 | 16 | <!--menu suspenso--> |
17 | 17 | <div id="menus" ></div> |
18 | 18 | </td> |
... | ... | @@ -173,7 +173,7 @@ i3GEO.cria(); |
173 | 173 | i3GEO.configura.mapaRefDisplay = "none"; |
174 | 174 | |
175 | 175 | i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; |
176 | -i3GEO.barraDeBotoes.OFFSET = 5; | |
176 | +i3GEO.barraDeBotoes.OFFSET = -3; | |
177 | 177 | i3GEO.scrollerWidth = 0; //permite ajustar o mapa até a borda do navegador |
178 | 178 | //i3GEO.barraDeBotoes.MAXBOTOES = 10; |
179 | 179 | i3GEO.configura.oMenuData["submenus"]["janelas"] = []; | ... | ... |
interface/openlayers1.htm
... | ... | @@ -146,7 +146,7 @@ |
146 | 146 | </tr> |
147 | 147 | </table> |
148 | 148 | |
149 | -<script src="../classesjs/i3geo.js"></script> | |
149 | +<script src="../classesjs/i3geonaocompacto.js"></script> | |
150 | 150 | <script src="../pacotes/openlayers/OpenLayers29.js.php"></script> |
151 | 151 | <!-- estilo necessário para a ferramenta de edição --> |
152 | 152 | <style> | ... | ... |