Commit 26e182f40013e6b3847ec383f5bee8a5948afb52
1 parent
54654551
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
22 additions
and
1 deletions
Show diff stats
classesjs/classe_guias.js
... | ... | @@ -693,5 +693,22 @@ i3GEO.guias = { |
693 | 693 | Dom.setStyle(namespace+g+"obj","display","none"); |
694 | 694 | } |
695 | 695 | Dom.setStyle(guia+"obj","display","block"); |
696 | + }, | |
697 | + guiaMovel: function(){ | |
698 | + var molde = document.createElement("div"), | |
699 | + posMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)), | |
700 | + larguraPuxador = 50; | |
701 | + alturaGuiaMovel = i3GEO.parametros.h / 2, | |
702 | + ins = ""; | |
703 | + molde.id = "i3GEOguiaMovelMolde"; | |
704 | + molde.style.position = "absolute"; | |
705 | + molde.style.display = "block"; | |
706 | + molde.style.heigth = i3GEO.parametros.h / 2; | |
707 | + molde.style.left = posMapa[0] + i3GEO.parametros.w - larguraPuxador; | |
708 | + molde.style.top = posMapa[1] + alturaGuiaMovel - (alturaGuiaMovel / 2); | |
709 | + ins += "<img width='"+larguraPuxador+"' src='"+i3GEO.configura.locaplic+"/imagens/openbars.png' >"; | |
710 | + molde.innerHTML = ins; | |
711 | + document.body.appendChild(molde); | |
712 | + | |
696 | 713 | } |
697 | 714 | }; |
698 | 715 | \ No newline at end of file | ... | ... |
classesjs/classe_i3geo.js
... | ... | @@ -320,6 +320,7 @@ i3GEO = { |
320 | 320 | //i3GEO.janela.fechaAguarde("montaMapa"); |
321 | 321 | if (i3GEO.configura.liberaGuias.toLowerCase() === "sim") |
322 | 322 | {i3GEO.guias.libera();} |
323 | + //alert(i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA))[0]+ " " + i3GEO.parametros.w) | |
323 | 324 | } |
324 | 325 | if($i("mst")){$i("mst").style.visibility ="visible";} |
325 | 326 | } | ... | ... |
interface/openlayers.htm
... | ... | @@ -147,7 +147,7 @@ |
147 | 147 | </tr> |
148 | 148 | </table> |
149 | 149 | |
150 | -<script src="../classesjs/i3geo.js"></script> | |
150 | +<script src="../classesjs/i3geonaocompacto.js"></script> | |
151 | 151 | <script src="../pacotes/openlayers/OpenLayers29.js.php"></script> |
152 | 152 | <!-- estilo necessário para a ferramenta de edição --> |
153 | 153 | <style> |
... | ... | @@ -299,7 +299,10 @@ OpenLayers.ImgPath = "../pacotes/openlayers/img/"; |
299 | 299 | // |
300 | 300 | //inicia o mapa |
301 | 301 | // |
302 | + | |
302 | 303 | i3GEO.inicia(); |
304 | +i3GEO.guias.guiaMovel() | |
305 | + | |
303 | 306 | </script> |
304 | 307 | </body> |
305 | 308 | </html> | ... | ... |