From 93e9ef4b69a7d83273aa67905212c0d9b18c447c Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 13 Nov 2011 14:32:00 +0000 Subject: [PATCH] --- ferramentas/selecao/index.js.php | 22 +++++++++++----------- interface/openlayers.htm | 2 +- testainstal.php | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ferramentas/selecao/index.js.php b/ferramentas/selecao/index.js.php index 83050e7..6e7e445 100644 --- a/ferramentas/selecao/index.js.php +++ b/ferramentas/selecao/index.js.php @@ -221,7 +221,7 @@ i3GEOF.selecao = { i3GEO.barraDeBotoes.ativaPadrao(); i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.selecao.clique()"); try{ - i3GEO.desenho.richdraw.fecha; + i3GEO.desenho.richdraw.fecha(); } catch(e){ if(typeof(console) !== 'undefined'){console.error(e);} @@ -290,7 +290,8 @@ i3GEOF.selecao = { {$i("i3GEOselecaobox").parentNode.style.backgroundColor = "#F5F5F5";} if($i("i3GEOselecaopoli")) {$i("i3GEOselecaopoli").parentNode.style.backgroundColor = "#F5F5F5";} - i3GEO.desenho.richdraw.fecha; + try{i3GEO.desenho.richdraw.fecha();} + catch(e){} }, /* Function: pegaTemasSel @@ -421,6 +422,7 @@ i3GEOF.selecao = { {alert("Escolha um tema");return;} if(g_tipoacao !== 'selecaobox') {return;} + i3GEO.Interface.openlayers.OLpan.deactivate(); i3geoOL.removeControl(i3GEO.Interface.openlayers.OLpan); i3GEOF.selecao.box.criaBox(); adicionaxyBox = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); @@ -444,15 +446,13 @@ i3GEOF.selecao = { Cria o DIV que será utilizado para desenhar o box no mapa */ criaBox: function(){ - if(i3GEO.Interface.ATUAL !== "openlayers"){ - try{i3GEO.desenho.richdraw.fecha;} - catch(e){ - if(typeof(console) !== 'undefined'){console.error(e);} - } - i3GEO.desenho.criaContainerRichdraw(); - i3GEO.desenho.richdraw.lineColor = "red"; - i3GEO.desenho.richdraw.lineWidth = "2px"; + try{i3GEO.desenho.richdraw.fecha();} + catch(e){ + if(typeof(console) !== 'undefined'){console.error(e);} } + i3GEO.desenho.criaContainerRichdraw(); + i3GEO.desenho.richdraw.lineColor = "red"; + i3GEO.desenho.richdraw.lineWidth = "2px"; var novoel,temp; if(!$i("i3geoboxSel")){ novoel = document.createElement("div"); @@ -633,7 +633,7 @@ i3GEOF.selecao = { */ inicia: function(){ try - {i3GEO.desenho.richdraw.fecha;} + {i3GEO.desenho.richdraw.fecha();} catch(e) {if(typeof(console) !== 'undefined'){console.error(e);}} pontosdistobj = []; diff --git a/interface/openlayers.htm b/interface/openlayers.htm index d7958ca..a5d4f88 100644 --- a/interface/openlayers.htm +++ b/interface/openlayers.htm @@ -100,7 +100,7 @@ - +