From 2924ab6d6ccef6ee691e3ee3aebf06af6a80ad09 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 22 Jul 2011 16:45:04 +0000 Subject: [PATCH] --- classesjs/classe_guias.js | 19 +++++++++++++------ classesjs/classe_i3geo.js | 2 ++ interface/openlayers.htm | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------- 3 files changed, 88 insertions(+), 130 deletions(-) diff --git a/classesjs/classe_guias.js b/classesjs/classe_guias.js index fe755b0..23b7dbc 100644 --- a/classesjs/classe_guias.js +++ b/classesjs/classe_guias.js @@ -202,6 +202,9 @@ i3GEO.guias = { Propriedade: TIPO Tipo de guia + + Quando TIPO = "movel", a inicialização da guia é feita em i3GEO.inicia + Isso é ne cessário pq a guia móvel só pode ser criada após o posicionamento do corpo do mapa Tipo: {string} @@ -210,7 +213,7 @@ i3GEO.guias = { {"guia"} Values: - guia|sanfona|tablet + guia|sanfona|tablet|movel */ TIPO: "guia", /* @@ -698,15 +701,19 @@ i3GEO.guias = { var molde = document.createElement("div"), posMapa = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)), larguraPuxador = 50; - alturaGuiaMovel = i3GEO.parametros.h / 2, + alturaGuiaMovel = i3GEO.parametros.h / 1.5, ins = ""; + if(i3GEO.guias.ALTURACORPOGUIAS > 0) + {alturaGuiaMovel = i3GEO.guias.ALTURACORPOGUIAS;} molde.id = "i3GEOguiaMovelMolde"; molde.style.position = "absolute"; molde.style.display = "block"; - molde.style.heigth = i3GEO.parametros.h / 2; - molde.style.left = posMapa[0] + i3GEO.parametros.w - larguraPuxador; - molde.style.top = posMapa[1] + alturaGuiaMovel - (alturaGuiaMovel / 2); - ins += ""; + molde.style.height = alturaGuiaMovel; + molde.style.border = "1px solid white"; + molde.style.left = posMapa[0] + i3GEO.parametros.w - larguraPuxador - 2; + molde.style.top = posMapa[1] + (i3GEO.parametros.h / 2) - (alturaGuiaMovel / 2) + 2; + ins += ""; + molde.innerHTML = ins; document.body.appendChild(molde); diff --git a/classesjs/classe_i3geo.js b/classesjs/classe_i3geo.js index 9629aea..b92eed5 100644 --- a/classesjs/classe_i3geo.js +++ b/classesjs/classe_i3geo.js @@ -338,6 +338,8 @@ i3GEO = { {i3GEO.finaliza.call();} else {eval(i3GEO.finaliza);} + if(i3GEO.guias.TIPO === "movel") + {i3GEO.guias.guiaMovel();} } catch(e){alert(e);} }; diff --git a/interface/openlayers.htm b/interface/openlayers.htm index 9d9ccd2..724ad8c 100644 --- a/interface/openlayers.htm +++ b/interface/openlayers.htm @@ -7,51 +7,79 @@ - + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

i3Geo - Software livre para criação de mapas interativos e geoprocessamento

Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro

logomarca
+ +
- - - - - - - - - - - - -
- -
-
-
-
-
-
-
- - - - - - - - - -
+ - - - - - - - -
-
-
- - - - - - - -
- - - - - - - - - - - - - - -
- -
-
- -
Aguarde...
-
- - - - - - - - -
- - - - - - - - - - -

i3Geo - Software livre para criação de mapas interativos e geoprocessamento

Baseado no Mapserver, é licenciado sob GPL e integra o Portal do Software Público Brasileiro

logomarca
- -
@@ -224,7 +173,7 @@ i3GEO.cria(); i3GEO.configura.mapaRefDisplay = "none"; i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; -i3GEO.barraDeBotoes.OFFSET = 0; +i3GEO.barraDeBotoes.OFFSET = 5; i3GEO.scrollerWidth = 0; //permite ajustar o mapa até a borda do navegador //i3GEO.barraDeBotoes.MAXBOTOES = 10; i3GEO.configura.oMenuData["submenus"]["janelas"] = []; @@ -251,6 +200,7 @@ i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true; i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true; i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false; i3GEO.mapa.AUTORESIZE = true; +i3GEO.guias.TIPO = "movel"; // //esta é uma variável interna do OpenLayers que define o endereço do diretório onde estão as imagens usadas nos ícones // @@ -300,7 +250,6 @@ OpenLayers.ImgPath = "../pacotes/openlayers/img/"; // i3GEO.finaliza = function(){ $i("i3GEOlogoMarca").style.display = "none"; - i3GEO.guias.guiaMovel() } i3GEO.inicia(); -- libgit2 0.21.2