Commit 2f77190e8ad1d8c2809ac59f23e307a82420cbe9
1 parent
29bfb37c
Exists in
master
and in
7 other branches
Inclusão de propriedade para posicionamento do mapa de referência
Showing
1 changed file
with
17 additions
and
13 deletions
Show diff stats
classesjs/classe_maparef.js
... | ... | @@ -43,6 +43,22 @@ i3GEO.maparef = { |
43 | 43 | */ |
44 | 44 | fatorZoomDinamico: -3, |
45 | 45 | /* |
46 | + Property: TOP | |
47 | + | |
48 | + Posição da janela em relação ao topo do mapa | |
49 | + | |
50 | + {Numeric} | |
51 | + */ | |
52 | + TOP: 4, | |
53 | + /* | |
54 | + Property: RIGHT | |
55 | + | |
56 | + Posição da janela em relação ao lado direito do mapa | |
57 | + | |
58 | + {Numeric} | |
59 | + */ | |
60 | + RIGHT:0, | |
61 | + /* | |
46 | 62 | Function: inicia |
47 | 63 | |
48 | 64 | Inicializa o mapa de referência |
... | ... | @@ -82,9 +98,7 @@ i3GEO.maparef = { |
82 | 98 | r.style.position = "absolute"; |
83 | 99 | } |
84 | 100 | var pos = i3GEO.util.pegaPosicaoObjeto($i("img")); |
85 | - if (navm){YAHOO.janelaRef.xp.panel.moveTo((pos[0]+i3GEO.parametros.w-160),pos[1]+4);} | |
86 | - else | |
87 | - {YAHOO.janelaRef.xp.panel.moveTo((pos[0]+i3GEO.parametros.w-160),pos[1]+4);} | |
101 | + YAHOO.janelaRef.xp.panel.moveTo((pos[0]+i3GEO.parametros.w+153-i3GEO.maparef.RIGHT-300),pos[1]+i3GEO.maparef.TOP); | |
88 | 102 | var escondeRef = function(){ |
89 | 103 | YAHOO.util.Event.removeListener(YAHOO.janelaRef.xp.panel.close, "click"); |
90 | 104 | YAHOO.janelaRef.xp.panel.destroy(); |
... | ... | @@ -168,16 +182,6 @@ i3GEO.maparef = { |
168 | 182 | var m = new Image(); |
169 | 183 | m.src = refimagem; |
170 | 184 | $i("imagemReferencia").src=m.src; |
171 | - /* | |
172 | - if ((i3GEO.parametros.mapscale < 15000000) && (i3GEO.parametros.mapscale > 10000000)){ | |
173 | - $i("refmensagem").innerHTML = "Para navegar no mapa principal, você pode clicar em um ponto no mapa de referência ou arrastar o box."; | |
174 | - $i("refmensagem").style.fontSize="10px"; | |
175 | - } | |
176 | - else{ | |
177 | - $i("refmensagem").innerHTML = ""; | |
178 | - $i("refmensagem").style.fontSize="0px"; | |
179 | - } | |
180 | - */ | |
181 | 185 | } |
182 | 186 | i3GEO.gadgets.quadros.grava("referencia",refimagem); |
183 | 187 | var tiporef = "fixo"; | ... | ... |