From b620011b0fdb390a0e3ebc6bb79cbd5daa8c8011 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 2 Feb 2009 18:26:13 +0000 Subject: [PATCH] --- aplicmap/geral.htm | 29 ++++------------------------- classesjs/classe_ajuda.js | 3 ++- classesjs/classe_analise.js | 5 +++-- classesjs/classe_arvoredecamadas.js | 3 ++- classesjs/classe_arvoredetemas.js | 5 +++-- classesjs/classe_barradebotoes.js | 16 ++++++++++------ classesjs/classe_calculo.js | 1 + classesjs/classe_configura.js | 20 ++++++++++++++------ classesjs/classe_desenho.js | 3 ++- classesjs/classe_eventos.js | 6 +++--- classesjs/classe_gadgets.js | 50 +++++++++++++++++++++++++++++--------------------- classesjs/classe_guias.js | 28 +++++++++++++++++++++++----- classesjs/classe_i3geo.js | 28 ++++++++++++++++++++-------- classesjs/classe_idioma.js | 15 ++++++++++----- classesjs/classe_interface.js | 9 +++++---- classesjs/classe_janela.js | 16 ++++++++++------ classesjs/classe_mapa.js | 4 +++- classesjs/classe_maparef.js | 3 ++- classesjs/classe_navega.js | 12 ++++++++---- classesjs/classe_php.js | 4 +++- classesjs/classe_selecao.js | 1 + classesjs/classe_tema.js | 18 +++++++++--------- classesjs/classe_util.js | 9 ++++++--- classesjs/depreciados.js | 3 ++- classesjs/dicionario.js | 52 ++++++++++++++++++++++++++++++---------------------- classesphp/funcoes_gerais.php | 2 ++ classesphp/mapa_controle.php | 6 ++++-- css/botoes.css | 2 +- ferramentas/carregamapa/upload.php | 2 +- ferramentas/funcoes.js | 2 +- ferramentas/googlemaps/index.php | 57 +++++++++++++++++++++++++++------------------------------ ferramentas/inserexy/index.js | 4 ++-- ferramentas/inserexy2/index.js | 6 +++--- ferramentas/mostraexten/index.htm | 24 ++++++++++++------------ ferramentas/mostraexten/index.js | 24 ++++++++++++++---------- ferramentas/opcoes_tamanho/index.js | 41 ++++++++++++++++++++++++----------------- ferramentas/tabela/index.js | 2 +- ferramentas/tipoimagem/index.htm | 2 +- ferramentas/tipoimagem/index.js | 2 +- ferramentas/wiki/funcoes.php | 1 + ferramentas/wiki/index.htm | 4 ++-- guia_migracao_41.txt | 23 ++++++++++++++++++++++- pacotes/balloon-tooltips/htdocs/js/balloon.js | 47 ++++++++++++++++++++++++++++++++--------------- 43 files changed, 356 insertions(+), 238 deletions(-) diff --git a/aplicmap/geral.htm b/aplicmap/geral.htm index 151ede4..cd754ca 100644 --- a/aplicmap/geral.htm +++ b/aplicmap/geral.htm @@ -28,8 +28,8 @@ -
- + + @@ -49,7 +49,7 @@
Temas
Adiciona
Legenda
-
Mapas
+
Links
@@ -155,7 +155,7 @@ vc pode optar por colocar mensagens de ajuda em algum lugar Para adicionar um botão, é só criar uma linha e especificar a função que será executada quando o usuário clicar no botão -->
 
+
 
 
 
 
@@ -252,28 +252,7 @@ http:///i3geo/ms_criamapa.php É utilizada para identificar o local correto onde estão os programas em php que são utilizados. */ i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; -/* - Variable: g_localimg - - Indica a localização correta das imagens. - - É utilizada para identificar o local correto onde estão as imagens que são utilizados. - -*/ var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens"; -/* -Variable: g_templateLegenda - -Template HTML que será utilizado na geração da legenda HTML - -A sintaxe do template é definido pelo Mapserver. - -O HTML pode ser armazenado em i3geo/aplicmap ou em um outro endereço no servidor. - -Exemplo: -g_templateLegenda = "legendaseminput.htm"; -*/ -var g_templateLegenda = ""; var g_3dmap = "3dmap.map"; i3GEO.cria() //Log diff --git a/classesjs/classe_ajuda.js b/classesjs/classe_ajuda.js index 7815b1f..86b3c98 100644 --- a/classesjs/classe_ajuda.js +++ b/classesjs/classe_ajuda.js @@ -267,4 +267,5 @@ if(i3GEO.ajuda.MENSAGEMPADRAO == ""){ catch(e){i3GEO.ajuda.MENSAGEMPADRAO = $trad("p1");} } if(document.getElementById("bannerMensagem")) -{i3GEO.ajuda.DIVLETREIRO = "bannerMensagem";} \ No newline at end of file +{i3GEO.ajuda.DIVLETREIRO = "bannerMensagem";} +YAHOO.log("carregou classe ajuda", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_analise.js b/classesjs/classe_analise.js index b08cb87..569bdbf 100644 --- a/classesjs/classe_analise.js +++ b/classesjs/classe_analise.js @@ -140,7 +140,7 @@ i3GEO.analise = { Abre a janela que gera um tema poligonal agrupando elementos de um tema. */ agrupaElementos: function() - {i3GEO.janela.cria("400px","230px",i3GEO.configura.locaplic+"/ferramentas/agrupaelementos/index.htm","","","Agrupa");}, + {i3GEO.janela.cria("400px","230px",i3GEO.configura.locaplic+"/ferramentas/agrupaelementos/index.htm","","","Agrupa");} }, /* Class: i3GEO.analise.medeDistancia @@ -439,4 +439,5 @@ i3GEO.analise = { } } } -}; \ No newline at end of file +}; +YAHOO.log("carregou classe analise", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_arvoredecamadas.js b/classesjs/classe_arvoredecamadas.js index cb9a723..15e9482 100644 --- a/classesjs/classe_arvoredecamadas.js +++ b/classesjs/classe_arvoredecamadas.js @@ -771,4 +771,5 @@ i3GEO.arvoreDeCamadas = { }; // //para efeitos de compatibilidade -i3GEO.arvoreDeCamadas.IDHTML = "listaTemas"; \ No newline at end of file +i3GEO.arvoreDeCamadas.IDHTML = "listaTemas"; +YAHOO.log("carregou classe arvoredecamadas", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_arvoredetemas.js b/classesjs/classe_arvoredetemas.js index c6d833d..bcab47e 100644 --- a/classesjs/classe_arvoredetemas.js +++ b/classesjs/classe_arvoredetemas.js @@ -1158,6 +1158,7 @@ i3GEO.arvoreDeTemas = { Abre o aplicativo datadownload */ downloadbase: function() - {window.open(i3GEO.configura.locaplic+"/datadownload.htm");}, + {window.open(i3GEO.configura.locaplic+"/datadownload.htm");} } -}; \ No newline at end of file +}; +YAHOO.log("carregou classe arvoredetemas", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_barradebotoes.js b/classesjs/classe_barradebotoes.js index 2826fe9..f2d6eb4 100644 --- a/classesjs/classe_barradebotoes.js +++ b/classesjs/classe_barradebotoes.js @@ -83,17 +83,20 @@ i3GEO.barraDeBotoes = { if (i3GEO.barraDeBotoes.LISTABOTOES[ko].tipo=="dinamico" && temp) { var ist = temp.style; - ist.borderWidth=0; - ist.borderBottomWidth=1; - ist.borderLeftWidth=1; - ist.borderColor='rgb(50,50,50)'; + ist.borderWidth="1px"; + ist.borderColor='white'; + ist.borderLeftColor='rgb(50,50,50)'; + ist.borderBottomColor='rgb(50,50,50)'; } } while(ko--) } //ativa o icone if($i(icone)) - {with ($i(icone).style){borderLeftWidth='0px';borderBottomWidth='0px';borderColor='black';}} + {with ($i(icone).style){ + borderColor='white'; + borderWidth="1px"; + }} }, /* Function: ativaBotoes @@ -390,4 +393,5 @@ i3GEO.barraDeBotoes = { } } } -} \ No newline at end of file +}; +YAHOO.log("carregou classe barradebotoes", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_calculo.js b/classesjs/classe_calculo.js index ab8b3df..364a627 100644 --- a/classesjs/classe_calculo.js +++ b/classesjs/classe_calculo.js @@ -361,3 +361,4 @@ i3GEO.calculo = { return (res); } }; +YAHOO.log("carregou classe calculo", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_configura.js b/classesjs/classe_configura.js index 52cb826..e5616de 100644 --- a/classesjs/classe_configura.js +++ b/classesjs/classe_configura.js @@ -123,7 +123,7 @@ i3GEO.configura = { Diminui a largura do mapa em pixels no caso do navegador ser o FF. Valores definidos em pixel. */ - diminuixN: 25, + diminuixN: 11, /* Variable: diminuiyM @@ -394,6 +394,8 @@ i3GEO.configura = { marcadorZoom = ""; if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()") < 0) {i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()");} + if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()") < 0) + {i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()");} } }, { @@ -566,11 +568,12 @@ i3GEO.configura = { $i(n).innerHTML += res; } else{ - var n = i3GEO.janela.tip(""); + var nn = i3GEO.janela.tip(""); balloon = new Balloon; balloon.delayTime = 0; var res = "
"+res+"
"; - $i(n+"cabecatip").onmouseover = function(evt){balloon.showTooltip(evt,res);}; + //$i(nn+"cabecatip").onmouseover = function(evt){balloon.showTooltip(evt,res);}; + balloon.showTooltip($i("teste"),res); } } } @@ -614,6 +617,8 @@ i3GEO.configura = { g_operacao = "navega"; i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki"); atualizawiki = function(){ + if(!$i("wdocai")) + {i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()");return;} var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; if (docel.getElementById("resultadowiki")) {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm";} @@ -685,7 +690,7 @@ i3GEO.configura = { else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()");} } - catch(e){} + catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()");} }; if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()") < 0) {i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()");} @@ -707,7 +712,7 @@ i3GEO.configura = { else {i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()");} } - catch(e){} + catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()");} }; if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()") < 0) {i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()");} @@ -723,6 +728,8 @@ i3GEO.configura = { i3GEO.janela.cria("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","confluence"); i3GEO.util.criaBox(); atualizaconfluence = function(){ + if(!$i("wdocai")) + {i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()");return;} var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; if (docel.getElementById("resultadoconfluence")) {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm";} @@ -854,4 +861,5 @@ i3GEO.configura = { } } ]} -}; \ No newline at end of file +}; +YAHOO.log("carregou classe configura", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_desenho.js b/classesjs/classe_desenho.js index d56ee58..857ceb6 100644 --- a/classesjs/classe_desenho.js +++ b/classesjs/classe_desenho.js @@ -212,4 +212,5 @@ i3GEO.desenho = { } } } -}; \ No newline at end of file +}; +YAHOO.log("carregou classe desenho", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_eventos.js b/classesjs/classe_eventos.js index e93617d..b123902 100644 --- a/classesjs/classe_eventos.js +++ b/classesjs/classe_eventos.js @@ -69,7 +69,6 @@ i3GEO.eventos = { {Array} */ MOUSEPARADO: new Array( - "i3GEO.gadgets.mostraCoordenadasUTM()", "i3GEO.navega.mostraRosaDosVentos()" ), /* @@ -290,7 +289,7 @@ i3GEO.eventos = { //se não for feito assim, o deslocamento do mapa não é capturado // try{ - if (g_panM == "sim") + if(g_panM != 'undefined' && g_panM == "sim") {var pos = i3GEO.util.pegaPosicaoObjeto(targ.parentNode);} else {var pos = i3GEO.util.pegaPosicaoObjeto(targ);} @@ -439,4 +438,5 @@ i3GEO.eventos = { {doc.getElementById("iys").value = y[2];} } } -}; \ No newline at end of file +}; +YAHOO.log("carregou classe eventos", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_gadgets.js b/classesjs/classe_gadgets.js index ef601a5..f6c6fbb 100644 --- a/classesjs/classe_gadgets.js +++ b/classesjs/classe_gadgets.js @@ -85,23 +85,30 @@ i3GEO.gadgets = { {JSON} - objeto com x e y */ mostraCoordenadasUTM: function(id){ - if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10) - {return;} if(arguments.length == 0 || id == "") {var id = i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml;} + else + {i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml = id;} var temp = $i(id); if (!temp){return;} - if(temp.style.display == "block"){return;} - var mostra = function(retorno) + atualizaCoordenadasUTM = function() { - if(retorno.data){ - temp.style.display="block"; - temp.innerHTML = "UTM: x="+retorno.data.x+" y="+retorno.data.y+" zona="+retorno.data.zona+" datum="+retorno.data.datum; - tempoUTM = setTimeout("$i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display='none';clearTimeout(tempoUTM)",3400); - return (retorno.data); - } + //if($i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display == "block"){return;} + if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10) + {return;} + var tempUtm = function(retorno){ + setTimeout("$i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display='none';",3400); + var temp = $i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml); + if(retorno.data){ + temp.style.display="block"; + temp.innerHTML = "UTM: x="+retorno.data.x+" y="+retorno.data.y+" zona="+retorno.data.zona+" datum="+retorno.data.datum; + //return (retorno.data); + } + }; + i3GEO.php.geo2utm(tempUtm,objposicaocursor.ddx,objposicaocursor.ddy); }; - i3GEO.php.geo2utm(mostra,objposicaocursor.ddx,objposicaocursor.ddy); + if(i3GEO.eventos.MOUSEPARADO.toString().search("atualizaCoordenadasUTM()") < 0) + {i3GEO.eventos.MOUSEPARADO.push("atualizaCoordenadasUTM()");} }, /* Function: mostraCoordenadasGEO @@ -123,6 +130,8 @@ i3GEO.gadgets = { // if(arguments.length == 0) {var id = i3GEO.gadgets.PARAMETROS.mostraCoordenadasGEO.idhtml;} + else + {i3GEO.gadgets.PARAMETROS.mostraCoordenadasGEO.idhtml = id;} if($i(id)){ if(!$i("xm")){ var ins = ""; @@ -505,8 +514,6 @@ i3GEO.gadgets = { i3GEO.gadgets.quadros.quadroatual = 0; if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.avanca()") < 0) {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.avanca()");} - if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.grava('extensao',i3GEO.parametros.mapexten)") < 0) - {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.grava('extensao',i3GEO.parametros.extent)");} }, /* Function: grava @@ -694,10 +701,13 @@ i3GEO.gadgets = { var objid = $i(id); if(objid){ objid.className="yuimenubar"; + if($i("contemMenu")){ + $i("contemMenu").className="yui-navset"; + } if(i3GEO.configura.oMenuData.ajudas){ var ins = ""; - ins += '
'; - ins += '
    '; + ins += '
    '; + ins += '
      '; var sobe = ""; if(navn){var sobe = "line-height:0px;";} ins += '
    •   '+$trad("s1")+'
    • '; @@ -718,7 +728,7 @@ i3GEO.gadgets = { var conta=conta+1; } } - i3GEOoMenuBar=new YAHOO.widget.MenuBar(id,{autosubmenudisplay: true, showdelay: 150, hidedelay: 250, lazyload: false}); + i3GEOoMenuBar=new YAHOO.widget.MenuBar(id,{autosubmenudisplay: true, showdelay: 100, hidedelay: 250, lazyload: false}); i3GEOoMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender); i3GEOoMenuBar.render(); // @@ -726,10 +736,8 @@ i3GEO.gadgets = { // var temp = objid.style; temp.backgroundPosition = "0px -5px"; - temp.border = "0px solid white"; - if($i("contemMenu")){ - $i("contemMenu").className="yui-navset"; - } + temp.border = "1px solid white"; } } -}; \ No newline at end of file +}; +YAHOO.log("carregou classe gadgets", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_guias.js b/classesjs/classe_guias.js index 70e0b29..0840e6d 100644 --- a/classesjs/classe_guias.js +++ b/classesjs/classe_guias.js @@ -44,13 +44,13 @@ i3GEO.guias = { */ CONFIGURA: { "temas":{ - titulo:$trad("g1"), + titulo:$trad("g4a"), id:"guia1", idconteudo:"guia1obj", click:"" }, "adiciona":{ - titulo:$trad("g2"), + titulo:"+"+$trad("g1"), id:"guia2", idconteudo:"guia2obj", click: function(){ @@ -83,7 +83,7 @@ i3GEO.guias = { } }, "mapas":{ - titulo:$trad("g4"), + titulo:"Links", id:"guia5", idconteudo:"guia5obj", click: function(){ @@ -119,7 +119,7 @@ i3GEO.guias = { i3GEO.guias.mostra("mapas"); i3GEO.php.pegaMapas(pegaMapas); } - }, + } }, /* Variable: atual @@ -237,6 +237,23 @@ i3GEO.guias = { i3GEO.guias.ativa(i3GEO.guias.ATUAL); }, /* + Function: ajustaAltura + + Ajusta a altura das guias conforme a altura da imagem do mapa + */ + ajustaAltura: function(){ + var guias = i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA); + var nguias = guias.length; + for(g=0;gmudaExtensao> */ mudaext: function(funcao,tipoimagem,ext){ + if(ext == 'undefined'){alert("extensao nao definida");return;} var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&tipoimagem="+tipoimagem+"&ext="+ext+"&g_sid="+i3GEO.configura.sid; cpJSON.call(p,"mudaext",funcao); }, @@ -747,4 +748,5 @@ i3GEO.php = { var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=chavegoogle&g_sid="+i3GEO.configura.sid; cpJSON.call(p,"chavegoogle",funcao); } -}; \ No newline at end of file +}; +YAHOO.log("carregou classe php", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_selecao.js b/classesjs/classe_selecao.js index f4cf270..a144c55 100644 --- a/classesjs/classe_selecao.js +++ b/classesjs/classe_selecao.js @@ -401,3 +401,4 @@ i3GEO.selecao = { } } }; +YAHOO.log("carregou classe selecao", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_tema.js b/classesjs/classe_tema.js index 603bd03..8a251ad 100644 --- a/classesjs/classe_tema.js +++ b/classesjs/classe_tema.js @@ -202,7 +202,7 @@ i3GEO.tema = { idtema - código do tema */ toponimia: function(idtema) - {return(i3GEO.janela.cria("350px","340px",i3GEO.configura.locaplic+"/ferramentas/toponimia/index.htm?tema="+idtema,"","","Toponímia"));}, + {i3GEO.janela.cria("350px","340px",i3GEO.configura.locaplic+"/ferramentas/toponimia/index.htm?tema="+idtema,"","","Toponímia");}, /* Function: filtro @@ -213,7 +213,7 @@ i3GEO.tema = { idtema - código do tema */ filtro: function(idtema) - {return(i3GEO.janela.cria("480px","250px",i3GEO.configura.locaplic+"/ferramentas/filtro/index.htm?tema="+idtema,"","","Filtro"));}, + {i3GEO.janela.cria("480px","250px",i3GEO.configura.locaplic+"/ferramentas/filtro/index.htm?tema="+idtema,"","","Filtro");}, /* Function: procuraratrib @@ -224,7 +224,7 @@ i3GEO.tema = { idtema - id que identifica o tema conforme definido no map file */ procuraratrib: function(idtema) - {return(i3GEO.janela.cria("550px","340px",i3GEO.configura.locaplic+"/ferramentas/busca/index.htm?tema="+idtema,"","","Procurar"));}, + {i3GEO.janela.cria("550px","340px",i3GEO.configura.locaplic+"/ferramentas/busca/index.htm?tema="+idtema,"","","Procurar");}, /* Function: tabela @@ -235,7 +235,7 @@ i3GEO.tema = { idtema - id que identifica o tema conforme definido no map file */ tabela: function(idtema) - {return(i3GEO.janela.cria("500px","400px",i3GEO.configura.locaplic+"/ferramentas/tabela/index.htm?tema="+idtema,"","","Tabela"));}, + {i3GEO.janela.cria("500px","400px",i3GEO.configura.locaplic+"/ferramentas/tabela/index.htm?tema="+idtema,"","","Tabela");}, /* Function: etiquetas @@ -246,7 +246,7 @@ i3GEO.tema = { idtema - id que identifica o tema conforme definido no map file */ etiquetas: function(idtema) - {return(i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+"/ferramentas/etiqueta/index.htm?tema="+idtema,"","","Etiquetas"));}, + {i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+"/ferramentas/etiqueta/index.htm?tema="+idtema,"","","Etiquetas");}, /* Function: editaLegenda @@ -257,7 +257,7 @@ i3GEO.tema = { idtema - id que identifica o tema conforme definido no map file */ editaLegenda: function(idtema) - {return(i3GEO.janela.cria("490px","340px",i3GEO.configura.locaplic+"/ferramentas/legenda/index.htm?tema="+idtema,"","","Legenda"));}, + {i3GEO.janela.cria("490px","340px",i3GEO.configura.locaplic+"/ferramentas/legenda/index.htm?tema="+idtema,"","","Legenda");}, /* Function: download @@ -268,7 +268,7 @@ i3GEO.tema = { idtema - id ue identifica o tema no map file. */ download: function(idtema) - {return(i3GEO.janela.cria("300px","150px",i3GEO.configura.locaplic+"/ferramentas/download/index.htm?tema="+idtema,"","","Download"));} + {i3GEO.janela.cria("300px","150px",i3GEO.configura.locaplic+"/ferramentas/download/index.htm?tema="+idtema,"","","Download");} } - -}; \ No newline at end of file +}; +YAHOO.log("carregou classe tema", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/classe_util.js b/classesjs/classe_util.js index 6b3508e..c5441c7 100644 --- a/classesjs/classe_util.js +++ b/classesjs/classe_util.js @@ -91,8 +91,10 @@ Extende os métodos de um objeto Array, permitindo remover um elemento. */ Array.prototype.remove=function(s){ - var i = this.indexOf(s); - if(i != -1) this.splice(i, 1); + try{ + var i = this.indexOf(s); + if(i != -1) this.splice(i, 1); + }catch(e){} }; /* @@ -787,4 +789,5 @@ $top = function(id,valor){ }; $left = function(id,valor){ i3GEO.util.$left(id,valor); -}; \ No newline at end of file +}; +YAHOO.log("carregou classe util", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/depreciados.js b/classesjs/depreciados.js index 44f7211..a9782bd 100644 --- a/classesjs/depreciados.js +++ b/classesjs/depreciados.js @@ -1505,4 +1505,5 @@ Function montaMenuSuspenso (depreciado) function montaMenuSuspenso(iddiv){ i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.idhtml = iddiv; i3GEO.gadgets.mostraMenuSuspenso(); -} \ No newline at end of file +} +YAHOO.log("carregou depreciados", "Classes i3geo"); \ No newline at end of file diff --git a/classesjs/dicionario.js b/classesjs/dicionario.js index 1480223..f6a2567 100644 --- a/classesjs/dicionario.js +++ b/classesjs/dicionario.js @@ -87,10 +87,10 @@ it:"Temporizzazione" }], "p13": [ { -pt: "Propriedades do mapa", -en:"Map properties", -es:"Propiedades del mapa", -it:"Proprietà della mappa" +pt: "Propriedades", +en:"Properties", +es:"Propiedades", +it:"Proprietà" }], "p14": [ { @@ -518,8 +518,8 @@ it:"Cambia il nome del tema corrente. Utilizzare per migliorare la legenda della }], "t21":[ { -pt:"novo nome:", -en:"new name", +pt:"Novo nome:", +en:"New name", es:"Nuevo nombre", it:"Nuovo nome" }], @@ -532,7 +532,7 @@ it:"Trova gli elementi nel tema secondo i suoi attributi descrittivi." }], "t23":[ { -pt:"procurar...", +pt:"Procurar...", en:"Search...", es:"Buscar...", it:"Cerca..." @@ -546,9 +546,9 @@ it:"Creare un nuovo strato sulla mappa per visualizzare testi descrittivi sul te }], "t25":[ { -pt:"texto...", -en:"label...", -es:"texto...", +pt:"Texto...", +en:"Label...", +es:"Texto...", it:"Testo..." }], "t26":[ @@ -560,8 +560,8 @@ it:"Definire le etichette da visualizzare quando il mouse si ferma su un element }], "t27":[ { -pt:"etiquetas...", -en:"tooltip...", +pt:"Etiquetas...", +en:"Tooltip...", es:"Etiquetas...", it:"Descrizioni..." }], @@ -588,8 +588,8 @@ it:"Vedi la tabella degli attributi di questo tema." }], "t31":[ { -pt:"tabela...", -en:"table...", +pt:"Tabela...", +en:"Table...", es:"Tabla...", it:"Tabella..." }], @@ -602,8 +602,8 @@ it:"Aprire l'editor di legenda, che consente la modifica della forma di rapprese }], "t33":[ { -pt:"editar legenda...", -en:"legend edit...", +pt:"Editar legenda...", +en:"Legend edit...", es:"Editar subtítulo...", it:"Modifica la legenda" }], @@ -630,9 +630,9 @@ it:"Tema visibile solo a determinate scale" }], "t37":[ { -pt:"gráfico", -en:"graphic", -es:"gráfico", +pt:"Gráfico", +en:"Graphic", +es:"Gráfico", it:"Grafico" }], //guia adiciona @@ -761,6 +761,13 @@ it:"Legenda" pt:"Mapas", en:"Maps", es:"Mapas", +it:"Mappa" +}], +"g4a":[ +{ +pt:"Mapa", +en:"Map", +es:"Mapa", it:"Mappe" }], //outros @@ -773,8 +780,8 @@ it:"Attendere..." }], "o2":[ { -pt:"busca rápida...", -en:"quick search...", +pt:"Busca rápida...", +en:"Quick search...", es:"Búsqueda rápida...", it:"Ricerca rapida ..." }], @@ -861,7 +868,7 @@ it:"Mostra gli informazioni su un punto sulla mappa. Dopo averla attivata, ferma pt:"Mostra a extensão geográfica atual em coordenadas geográficas", en:"It shows the extent of current geographic coordinates", es:"Muestra la extensión geográfica actual en coordenadas geográficas", -it:"Mostra l’estensione geografica corrente in coordinate geografiche" +it:"Mostra la estensione geografica corrente in coordinate geografiche" }], "d9":[ { @@ -997,3 +1004,4 @@ es:"Elija la vista para los botones y otras características visuales del it:"Scegli il visuale (??) per i pulsanti e le altre caratteristiche visive della mappa." }] }; +YAHOO.log("carregou dicionario", "Classes i3geo"); \ No newline at end of file diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index 7bceb7a..4321a96 100644 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -664,6 +664,7 @@ function substituiCon($map_file,$postgis_mapa) { if (($postgis_mapa != "") || ($postgis_mapa != " ")) { + if(!@ms_newMapObj($map_file)){return false;} $objMap = ms_newMapObj($map_file); $numlayers = $objMap->numlayers; for ($i=0;$i < $numlayers;++$i) @@ -693,6 +694,7 @@ function substituiCon($map_file,$postgis_mapa) $objMap->save($map_file); } } + return true; } /* function: restauraCon diff --git a/classesphp/mapa_controle.php b/classesphp/mapa_controle.php index 2388869..beec363 100644 --- a/classesphp/mapa_controle.php +++ b/classesphp/mapa_controle.php @@ -169,8 +169,10 @@ $urli3geo = str_replace("/classesphp/mapa_controle.php","",$protocolo.$_SERVER[" //substitui a string de conexão // if($funcao != "recuperamapa") -{substituiCon($map_file,$postgis_mapa);} - +{ + if(!substituiCon($map_file,$postgis_mapa)) + {$cp->set_data("erro");$cp->return_data();return;} +} //set_time_limit(240); // diff --git a/css/botoes.css b/css/botoes.css index 713f36e..dc20b49 100644 --- a/css/botoes.css +++ b/css/botoes.css @@ -1,4 +1,4 @@ -#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d +#historicozoom,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d {cursor:pointer;border: 0px solid rgb(50,50,50);border-bottom:1px solid rgb(50,50,50);border-left:1px solid rgb(50,50,50);width:22;height:22;z-index:1000;position:relative;} #box1 {font-size:0px;cursor:crosshair;opacity:.25;background-color: gray;position: absolute;visibility: hidden;width: 0px;height: 0px;border: 2px solid #ff0000;} diff --git a/ferramentas/carregamapa/upload.php b/ferramentas/carregamapa/upload.php index f7b29a3..a6b59e1 100644 --- a/ferramentas/carregamapa/upload.php +++ b/ferramentas/carregamapa/upload.php @@ -100,7 +100,7 @@ if (isset($_FILES['filemap']['name'])) } $map->save($map_file); echo "Ok. redesenhando."; - echo ""; + echo ""; } else { diff --git a/ferramentas/funcoes.js b/ferramentas/funcoes.js index 127f1e7..64bd9cd 100644 --- a/ferramentas/funcoes.js +++ b/ferramentas/funcoes.js @@ -774,7 +774,7 @@ function randomRGB() function parametrosURL() { g_locaplic = window.parent.g_locaplic; //localizacao da aplicacao - g_r = window.parent.g_r; + g_r = window.parent.i3GEO.parametros.r; var temp = (window.location.href).split("tema="); if (temp[1]) {tema = (temp[1].split("&"))[0];} diff --git a/ferramentas/googlemaps/index.php b/ferramentas/googlemaps/index.php index 003d0c8..8ddcf19 100644 --- a/ferramentas/googlemaps/index.php +++ b/ferramentas/googlemaps/index.php @@ -17,8 +17,8 @@ include_once("../../ms_configura.php"); diff --git a/guia_migracao_41.txt b/guia_migracao_41.txt index 45e6b5d..8f3f83f 100644 --- a/guia_migracao_41.txt +++ b/guia_migracao_41.txt @@ -95,4 +95,25 @@ Idiomas Utilitários Foi criada uma classe específica com funções de uso geral. Veja em: - http://localhost/i3geo/documentacao/files/classesjs/classe_util-js.html \ No newline at end of file + http://localhost/i3geo/documentacao/files/classesjs/classe_util-js.html + +Cálculos + + Os cálculos agora estão na classe i3GEO.calculo, por exemplo, para converter coordenadas de dd para dms, utilize: + i3GEO.calculo.dd2dms(dd) + +OBJMAPA + + A forma de inicialização do i3geo do lado do navegador (javascript) agora é controlado pela classe i3GEO. + O "objmapa" não é mais utilizado. + Os parâmetros do mapa, como extensão geográfica, tamanho do pixel, etc, são agora acessados por meio + de i3GEO.parametros, por exemplo, para obter a extensão geográfica do mapa atual, utilize: + alert(i3GEO.parametros.mapexten) + A lista completa de i3GEO.parametros pode ser vista em i3geo/classesjs/classe_i3geo.js + +Variáveis de configuração + + Muitas das novas classes possuem seus próprios métodos de configuração. Porém os parâmetros principais + de configuração do mapa ficam agora na classe i3GEO.configura + Por exemplo, para obter o diretório onde o i3geo está instalado, antes utilizava-se g_locaplic, agora utiliza-se + i3GEO.configura.locaplic \ No newline at end of file diff --git a/pacotes/balloon-tooltips/htdocs/js/balloon.js b/pacotes/balloon-tooltips/htdocs/js/balloon.js index 589e5b4..7905d3c 100644 --- a/pacotes/balloon-tooltips/htdocs/js/balloon.js +++ b/pacotes/balloon-tooltips/htdocs/js/balloon.js @@ -98,7 +98,10 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { if (this.isKonqueror()) this.allowFade = false; // Check for mouseover (vs. mousedown or click) - var mouseOver = evt.type.match('mouseover','i'); + var mouseOver = true; + try{ + var mouseOver = evt.type.match('mouseover','i'); + }catch(e){} // if the firing event is a click, fade-in and a non-sticky balloon make no sense if (!mouseOver) { @@ -114,10 +117,12 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { // Don't start a non-sticky balloon if a sticky one is visible if (balloonIsVisible && balloonIsSticky && !sticky) return false; - + // Ignore repeated firing of mouseover->mouseout events on // the same element (Safari) - var el = this.getEventTarget(evt); + try{ + var el = this.getEventTarget(evt); + }catch(e){var el = evt;} if (sticky && mouseOver && this.isSameElement(el,this.currentElement)) return false; this.firingElement = el; @@ -212,13 +217,14 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { // Capture coordinates for mousedown or click if (!mouseOver) this.setActiveCoordinates(evt); - +this.setActiveCoordinates(evt); // Remember which event started this this.currentEvent = evt; + this.doShowTooltip(); // // Make delay time short for onmousedown - var delay = mouseOver ? this.delayTime : 1; - this.timeoutTooltip = window.setTimeout(this.doShowTooltip,delay); + //var delay = mouseOver ? this.delayTime : 1; + //this.timeoutTooltip = window.setTimeout(this.doShowTooltip,1); } @@ -281,7 +287,6 @@ Balloon.prototype.doShowTooltip = function() { if (!(self.activeTop && self.activeRight)) { self.setActiveCoordinates(); } - // balloon orientation var vOrient = self.activeTop > pageMid ? 'up' : 'down'; var hOrient = self.activeRight > pageCen ? 'left' : 'right'; @@ -290,7 +295,6 @@ Balloon.prototype.doShowTooltip = function() { var helpText = self.container.innerHTML; self.contents.innerHTML = helpText; - // how and where to draw the balloon self.setBalloonStyle(vOrient,hOrient,pageWidth,pageLeft); @@ -300,7 +304,7 @@ Balloon.prototype.doShowTooltip = function() { } balloonIsVisible = true; - + // in IE < 7, hide