Commit 36ad3601d10927192c4f9ccebb1812f45a424f9a
1 parent
353218b8
Exists in
master
and in
6 other branches
Correção no posicionamento das ferramentas área e distância
Showing
3 changed files
with
27 additions
and
5 deletions
Show diff stats
ferramentas/area/index.js
| ... | ... | @@ -3,7 +3,8 @@ if (typeof (i3GEOF) === 'undefined') { |
| 3 | 3 | } |
| 4 | 4 | i3GEOF.area = |
| 5 | 5 | { |
| 6 | - /** | |
| 6 | + position: [150,0], | |
| 7 | + /** | |
| 7 | 8 | * Armazena os pontos clicados para realizar os calculos |
| 8 | 9 | */ |
| 9 | 10 | pontos : {}, |
| ... | ... | @@ -109,7 +110,7 @@ i3GEOF.area = |
| 109 | 110 | }; |
| 110 | 111 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| 111 | 112 | imagemxy = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); |
| 112 | - janela[0].moveTo(imagemxy[0] + 150, imagemxy[1]); | |
| 113 | + janela[0].moveTo(i3GEOF.area.position[0],i3GEOF.area.position[1]); | |
| 113 | 114 | }, |
| 114 | 115 | /* |
| 115 | 116 | * Function: ativaFoco |
| ... | ... | @@ -619,4 +620,11 @@ i3GEOF.area = |
| 619 | 620 | } |
| 620 | 621 | } |
| 621 | 622 | } |
| 622 | - }; | |
| 623 | 623 | \ No newline at end of file |
| 624 | + }; | |
| 625 | +//aplica ao codigo i3GEOF definicoes feitas na interface do mapa | |
| 626 | +//isso permite a substituicao de funcoes e parametros | |
| 627 | +if(i3GEO.configura.ferramentas.hasOwnProperty("area")){ | |
| 628 | +jQuery.each( i3GEO.configura.ferramentas.area, function(index, value) { | |
| 629 | + i3GEOF.area[index] = i3GEO.configura.ferramentas.area[index]; | |
| 630 | +}); | |
| 631 | +} | |
| 624 | 632 | \ No newline at end of file | ... | ... |
ferramentas/distancia/index.js
| ... | ... | @@ -3,6 +3,7 @@ if (typeof (i3GEOF) === 'undefined') { |
| 3 | 3 | } |
| 4 | 4 | i3GEOF.distancia = |
| 5 | 5 | { |
| 6 | + position: [150,0], | |
| 6 | 7 | /** |
| 7 | 8 | * Armazena os pontos clicados para realizar os calculos |
| 8 | 9 | */ |
| ... | ... | @@ -120,7 +121,7 @@ i3GEOF.distancia = |
| 120 | 121 | }; |
| 121 | 122 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| 122 | 123 | imagemxy = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); |
| 123 | - janela[0].moveTo(imagemxy[0] + 150, imagemxy[1]); | |
| 124 | + janela[0].moveTo(i3GEOF.distancia.position[0],i3GEOF.distancia.position[1]); | |
| 124 | 125 | }, |
| 125 | 126 | /* |
| 126 | 127 | * Function: ativaFoco |
| ... | ... | @@ -670,4 +671,11 @@ i3GEOF.distancia = |
| 670 | 671 | } |
| 671 | 672 | } |
| 672 | 673 | } |
| 673 | -}; | |
| 674 | 674 | \ No newline at end of file |
| 675 | +}; | |
| 676 | +//aplica ao codigo i3GEOF definicoes feitas na interface do mapa | |
| 677 | +//isso permite a substituicao de funcoes e parametros | |
| 678 | +if(i3GEO.configura.ferramentas.hasOwnProperty("distancia")){ | |
| 679 | +jQuery.each( i3GEO.configura.ferramentas.distancia, function(index, value) { | |
| 680 | + i3GEOF.distancia[index] = i3GEO.configura.ferramentas.distancia[index]; | |
| 681 | +}); | |
| 682 | +} | |
| 675 | 683 | \ No newline at end of file | ... | ... |
interface/openlayersdebug.htm
| ... | ... | @@ -914,6 +914,12 @@ |
| 914 | 914 | //janela de conversao de coordenadas |
| 915 | 915 | wkt2layer : { |
| 916 | 916 | position : [150,150] |
| 917 | + }, | |
| 918 | + area : { | |
| 919 | + position : [150,10] | |
| 920 | + }, | |
| 921 | + distancia : { | |
| 922 | + position : [150,10] | |
| 917 | 923 | } |
| 918 | 924 | }, |
| 919 | 925 | //configuracoes especificas para a interface que utiliza o OpenLayers | ... | ... |