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,7 +746,10 @@ i3GEO.barraDeBotoes = { | ||
746 | dock = new euDock(), | 746 | dock = new euDock(), |
747 | temp = "", | 747 | temp = "", |
748 | chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO), | 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 | dock.setObjectAlign(i3GEO.Interface.IDCORPO,euDOWN,(parseInt(document.body.style.height,10))*-1 + i3GEO.barraDeBotoes.OFFSET,euUP); | 753 | dock.setObjectAlign(i3GEO.Interface.IDCORPO,euDOWN,(parseInt(document.body.style.height,10))*-1 + i3GEO.barraDeBotoes.OFFSET,euUP); |
751 | dock.setBar({ | 754 | dock.setBar({ |
752 | left:{euImage:{image:i3GEO.configura.locaplic+"/pacotes/eudock/barImages/dockBg-l.png"}}, | 755 | left:{euImage:{image:i3GEO.configura.locaplic+"/pacotes/eudock/barImages/dockBg-l.png"}}, |
@@ -1218,7 +1221,6 @@ i3GEO.barraDeBotoes = { | @@ -1218,7 +1221,6 @@ i3GEO.barraDeBotoes = { | ||
1218 | if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.recria()");} | 1221 | if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.recria()");} |
1219 | if(i3GEO.barraDeBotoes.TIPO === "olhodepeixe"){ | 1222 | if(i3GEO.barraDeBotoes.TIPO === "olhodepeixe"){ |
1220 | euEnv.euDockArray = []; | 1223 | euEnv.euDockArray = []; |
1221 | - //euEnv.Kost = []; | ||
1222 | euEnv.Kost.num = 0; | 1224 | euEnv.Kost.num = 0; |
1223 | if($i("euDock_0_bar")){ | 1225 | if($i("euDock_0_bar")){ |
1224 | document.body.removeChild($i("euDock_0_bar").parentNode); | 1226 | document.body.removeChild($i("euDock_0_bar").parentNode); |
classesjs/classe_configura.js
classesjs/classe_coordenadas.js
@@ -363,7 +363,7 @@ i3GEO.coordenadas = { | @@ -363,7 +363,7 @@ i3GEO.coordenadas = { | ||
363 | {string} - html com a tabela | 363 | {string} - html com a tabela |
364 | */ | 364 | */ |
365 | criaMascaraDMS: function(prefixo,titulo,caixa){ | 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 | '<td style=width:10px;text-align:right > X:</td>' + | 367 | '<td style=width:10px;text-align:right > X:</td>' + |
368 | '<td>'+$inputText('','',prefixo+'xg','grau','2','-00')+'</td>' + | 368 | '<td>'+$inputText('','',prefixo+'xg','grau','2','-00')+'</td>' + |
369 | '<td>'+$inputText('','',prefixo+'xm','minuto','2','00')+'</td>' + | 369 | '<td>'+$inputText('','',prefixo+'xm','minuto','2','00')+'</td>' + |
classesjs/classe_gadgets.js
@@ -857,6 +857,13 @@ i3GEO.gadgets = { | @@ -857,6 +857,13 @@ i3GEO.gadgets = { | ||
857 | if(ms.deslocaEsquerda){ | 857 | if(ms.deslocaEsquerda){ |
858 | alinhamento = "left:"+ms.deslocaEsquerda*-1+"px;"; | 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 | ins += '<div class="bd" style="top:0px;'+alinhamento+'display:block;align:right;border: 0px solid white;z-index:6000;line-height:1.4" >' + | 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 | '<ul class="first-of-type" style="display:block;border:0px solid white;top:10px;">'; | 868 | '<ul class="first-of-type" style="display:block;border:0px solid white;top:10px;">'; |
862 | n = confm.menu.length; | 869 | n = confm.menu.length; |
@@ -875,7 +882,6 @@ i3GEO.gadgets = { | @@ -875,7 +882,6 @@ i3GEO.gadgets = { | ||
875 | var conta,nomeMenu,nomeSub, | 882 | var conta,nomeMenu,nomeSub, |
876 | subs = i3GEO.configura.oMenuData.submenus, | 883 | subs = i3GEO.configura.oMenuData.submenus, |
877 | conta = 0; | 884 | conta = 0; |
878 | - | ||
879 | for(nomeMenu in subs){ | 885 | for(nomeMenu in subs){ |
880 | if($i("menu"+nomeMenu)){ | 886 | if($i("menu"+nomeMenu)){ |
881 | nomeSub = subs[nomeMenu]; | 887 | nomeSub = subs[nomeMenu]; |
@@ -940,11 +946,10 @@ i3GEO.gadgets = { | @@ -940,11 +946,10 @@ i3GEO.gadgets = { | ||
940 | temp = objid.style; | 946 | temp = objid.style; |
941 | temp.backgroundPosition = "0px -1px"; | 947 | temp.backgroundPosition = "0px -1px"; |
942 | temp.border = "0px solid white"; | 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 | if(ms.finaliza && ms.finaliza != ""){ | 953 | if(ms.finaliza && ms.finaliza != ""){ |
949 | eval(ms.finaliza); | 954 | eval(ms.finaliza); |
950 | } | 955 | } |
classesjs/classe_guias.js
@@ -705,13 +705,14 @@ i3GEO.guias = { | @@ -705,13 +705,14 @@ i3GEO.guias = { | ||
705 | alturaGuiaMovel: 0, | 705 | alturaGuiaMovel: 0, |
706 | larguraGuiaMovel: 300 | 706 | larguraGuiaMovel: 300 |
707 | }, | 707 | }, |
708 | + left: 0, | ||
708 | inicia: function(){ | 709 | inicia: function(){ |
709 | var molde = document.createElement("div"), | 710 | var molde = document.createElement("div"), |
710 | moldeS = molde.style, | 711 | moldeS = molde.style, |
711 | posMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)), | 712 | posMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)), |
712 | ins = ""; | 713 | ins = ""; |
713 | if(i3GEO.guias.ALTURACORPOGUIAS === 0 && i3GEO.guias.guiaMovel.config.alturaGuiaMovel === 0) | 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 | else | 716 | else |
716 | {i3GEO.guias.guiaMovel.config.alturaGuiaMovel = i3GEO.guias.ALTURACORPOGUIAS;} | 717 | {i3GEO.guias.guiaMovel.config.alturaGuiaMovel = i3GEO.guias.ALTURACORPOGUIAS;} |
717 | molde.id = "i3GEOguiaMovelMolde"; | 718 | molde.id = "i3GEOguiaMovelMolde"; |
@@ -720,17 +721,23 @@ i3GEO.guias = { | @@ -720,17 +721,23 @@ i3GEO.guias = { | ||
720 | moldeS.height = i3GEO.guias.guiaMovel.config.alturaGuiaMovel; | 721 | moldeS.height = i3GEO.guias.guiaMovel.config.alturaGuiaMovel; |
721 | moldeS.border = "0px solid white"; | 722 | moldeS.border = "0px solid white"; |
722 | moldeS.textAlign = "left"; | 723 | moldeS.textAlign = "left"; |
724 | + moldeS.zIndex = 1000; | ||
723 | moldeS.left = posMapa[0] + i3GEO.parametros.w - i3GEO.guias.guiaMovel.config.larguraPuxador; | 725 | moldeS.left = posMapa[0] + i3GEO.parametros.w - i3GEO.guias.guiaMovel.config.larguraPuxador; |
726 | + i3GEO.guias.guiaMovel.left = parseInt(moldeS.left,10); | ||
724 | moldeS.top = posMapa[1] + (i3GEO.parametros.h / 2) - (i3GEO.guias.guiaMovel.config.alturaGuiaMovel / 2); | 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 | molde.innerHTML = ins; | 731 | molde.innerHTML = ins; |
729 | - | ||
730 | document.body.appendChild(molde); | 732 | document.body.appendChild(molde); |
731 | YAHOO.util.Dom.setStyle("i3GEOguiaMovelConteudo", "opacity", 0.20); | 733 | YAHOO.util.Dom.setStyle("i3GEOguiaMovelConteudo", "opacity", 0.20); |
732 | YAHOO.util.Dom.setStyle("i3GEOguiaMovelIcones", "opacity", 0.40); | 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 | abreFecha: function(){ | 741 | abreFecha: function(){ |
735 | var molde = $i("i3GEOguiaMovelMolde"), | 742 | var molde = $i("i3GEOguiaMovelMolde"), |
736 | conteudo = $i("i3GEOguiaMovelConteudo"), | 743 | conteudo = $i("i3GEOguiaMovelConteudo"), |
@@ -739,14 +746,10 @@ i3GEO.guias = { | @@ -739,14 +746,10 @@ i3GEO.guias = { | ||
739 | moldeS = molde.style, | 746 | moldeS = molde.style, |
740 | anim, | 747 | anim, |
741 | anim1; | 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 | $i("i3GEOguiaMovelIcones").style.display = "none"; | 750 | $i("i3GEOguiaMovelIcones").style.display = "none"; |
748 | attributes = { | 751 | attributes = { |
749 | - left: { to: parseInt(moldeS.left,10) + i3GEO.guias.guiaMovel.config.larguraGuiaMovel }, | 752 | + left: { to: i3GEO.guias.guiaMovel.left - 1 }, |
750 | id: "i3GEOguiaMovelMolde" | 753 | id: "i3GEOguiaMovelMolde" |
751 | }; | 754 | }; |
752 | anim = new YAHOO.util.Anim(molde, attributes, 1, YAHOO.util.Easing.easeNone); | 755 | anim = new YAHOO.util.Anim(molde, attributes, 1, YAHOO.util.Easing.easeNone); |
@@ -756,12 +759,13 @@ i3GEO.guias = { | @@ -756,12 +759,13 @@ i3GEO.guias = { | ||
756 | }; | 759 | }; |
757 | anim1 = new YAHOO.util.Anim(conteudo, attributes, 1, YAHOO.util.Easing.easeNone); | 760 | anim1 = new YAHOO.util.Anim(conteudo, attributes, 1, YAHOO.util.Easing.easeNone); |
758 | anim.animate(); | 761 | anim.animate(); |
759 | - anim1.animate(); | 762 | + anim1.animate(); |
763 | + anim1.onComplete.subscribe(function(){ | ||
764 | + conteudoS.display = "none"; | ||
765 | + }); | ||
760 | } | 766 | } |
761 | else{ | 767 | else{ |
762 | conteudoS.display = "block"; | 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 | attributes = { | 769 | attributes = { |
766 | left: { to: parseInt(moldeS.left,10) - i3GEO.guias.guiaMovel.config.larguraGuiaMovel }, | 770 | left: { to: parseInt(moldeS.left,10) - i3GEO.guias.guiaMovel.config.larguraGuiaMovel }, |
767 | id: "i3GEOguiaMovelMolde" | 771 | id: "i3GEOguiaMovelMolde" |
classesjs/classe_i3geo.js
@@ -646,7 +646,6 @@ i3GEO = { | @@ -646,7 +646,6 @@ i3GEO = { | ||
646 | } | 646 | } |
647 | if(i3GEO.guias.TIPO === "sanfona"){ | 647 | if(i3GEO.guias.TIPO === "sanfona"){ |
648 | i3GEO.guias.ALTURACORPOGUIAS = h - (antigoh - i3GEO.guias.ALTURACORPOGUIAS); | 648 | i3GEO.guias.ALTURACORPOGUIAS = h - (antigoh - i3GEO.guias.ALTURACORPOGUIAS); |
649 | - //alert(i3GEO.guias.ALTURACORPOGUIAS) | ||
650 | } | 649 | } |
651 | else | 650 | else |
652 | {i3GEO.guias.ALTURACORPOGUIAS = h;} | 651 | {i3GEO.guias.ALTURACORPOGUIAS = h;} |
classesjs/classe_mapa.js
@@ -73,11 +73,11 @@ i3GEO.mapa = { | @@ -73,11 +73,11 @@ i3GEO.mapa = { | ||
73 | i3GEO.reCalculaTamanho(); | 73 | i3GEO.reCalculaTamanho(); |
74 | i3GEO.barraDeBotoes.recria("i3geo_barra2"); | 74 | i3GEO.barraDeBotoes.recria("i3geo_barra2"); |
75 | if(i3GEO.Interface.TABLET === true) | 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 | else | 79 | else |
78 | - { | ||
79 | - i3GEO.guias.ajustaAltura(); | ||
80 | - } | 80 | + {i3GEO.guias.ajustaAltura();} |
81 | },2000); | 81 | },2000); |
82 | }; | 82 | }; |
83 | }, | 83 | }, |
interface/openlayers.htm
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | <td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | 12 | <td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> |
13 | </tr> | 13 | </tr> |
14 | <tr> | 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 | <!--menu suspenso--> | 16 | <!--menu suspenso--> |
17 | <div id="menus" ></div> | 17 | <div id="menus" ></div> |
18 | </td> | 18 | </td> |
@@ -173,7 +173,7 @@ i3GEO.cria(); | @@ -173,7 +173,7 @@ i3GEO.cria(); | ||
173 | i3GEO.configura.mapaRefDisplay = "none"; | 173 | i3GEO.configura.mapaRefDisplay = "none"; |
174 | 174 | ||
175 | i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; | 175 | i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; |
176 | -i3GEO.barraDeBotoes.OFFSET = 5; | 176 | +i3GEO.barraDeBotoes.OFFSET = -3; |
177 | i3GEO.scrollerWidth = 0; //permite ajustar o mapa até a borda do navegador | 177 | i3GEO.scrollerWidth = 0; //permite ajustar o mapa até a borda do navegador |
178 | //i3GEO.barraDeBotoes.MAXBOTOES = 10; | 178 | //i3GEO.barraDeBotoes.MAXBOTOES = 10; |
179 | i3GEO.configura.oMenuData["submenus"]["janelas"] = []; | 179 | i3GEO.configura.oMenuData["submenus"]["janelas"] = []; |
interface/openlayers1.htm
@@ -146,7 +146,7 @@ | @@ -146,7 +146,7 @@ | ||
146 | </tr> | 146 | </tr> |
147 | </table> | 147 | </table> |
148 | 148 | ||
149 | -<script src="../classesjs/i3geo.js"></script> | 149 | +<script src="../classesjs/i3geonaocompacto.js"></script> |
150 | <script src="../pacotes/openlayers/OpenLayers29.js.php"></script> | 150 | <script src="../pacotes/openlayers/OpenLayers29.js.php"></script> |
151 | <!-- estilo necessário para a ferramenta de edição --> | 151 | <!-- estilo necessário para a ferramenta de edição --> |
152 | <style> | 152 | <style> |