From fea37a4196d195401ecd65aaae9334d93e7b1f7a Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 31 Mar 2014 00:20:33 +0000 Subject: [PATCH] correções no identifica --- admin/js/editormapfile.js | 12 +++++++++--- admin/php/editormapfile.php | 7 ++++--- datadownload.htm | 1 + ferramentas/legenda/index.js | 18 +++++++++++------- init/index.php | 4 ++-- interface/black_ol.htm | 14 +++++++++++++- 6 files changed, 40 insertions(+), 16 deletions(-) diff --git a/admin/js/editormapfile.js b/admin/js/editormapfile.js index b54432d..d1d419d 100644 --- a/admin/js/editormapfile.js +++ b/admin/js/editormapfile.js @@ -763,7 +763,8 @@ function adicionaNovoLayer(codigoMap) tempNode.isLeaf = false; tempNode.enableHighlight = false; tree.draw(); - editorGeral(codigoMap,dados.layers[0]); + //editorGeral(codigoMap,dados.layers[0]); + editorTitulo(codigoMap,dados.layers[0]) core_carregando("desativa"); } } @@ -2267,8 +2268,13 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, {montaEditorDispo(YAHOO.lang.JSON.parse(o.responseText));} if(tipo=="editavel") {montaEditorEditavel(YAHOO.lang.JSON.parse(o.responseText));} - if(tipo=="titulo") - {montaEditorTitulo(YAHOO.lang.JSON.parse(o.responseText));} + if(tipo=="titulo"){ + //o codigo do layer pode ter sido alterado + var no = getNodeByProperty("id",codigoMap+"_"+codigoLayer); + tree.removeChildren(no) ; + no.expand(); + montaEditorTitulo(YAHOO.lang.JSON.parse(o.responseText)); + } if(tipo=="metadados") {montaEditorMetadados(YAHOO.lang.JSON.parse(o.responseText));} if(tipo=="geral") diff --git a/admin/php/editormapfile.php b/admin/php/editormapfile.php index adf6587..2f4d522 100644 --- a/admin/php/editormapfile.php +++ b/admin/php/editormapfile.php @@ -1552,7 +1552,7 @@ function pegaTitulo() $mapa = ms_newMapObj($mapfile); $layer = $mapa->getlayerbyname($codigoLayer); $dados["name"] = $layer->name; - $dados["tema"] = mb_convert_encoding($layer->getmetadata("tema"),"UTF-8","ISO-8859-1");//$layer->getmetadata("tema"); + $dados["tema"] = mb_convert_encoding($layer->getmetadata("tema"),"UTF-8","ISO-8859-1"); $dados["iconetema"] = $layer->getmetadata("iconetema"); $dados["mensagem"] = mb_convert_encoding($layer->getmetadata("mensagem"),"UTF-8","ISO-8859-1");//$layer->getmetadata("mensagem"); $dados["escala"] = $layer->getmetadata("escala"); @@ -1560,6 +1560,7 @@ function pegaTitulo() $dados["group"] = $layer->group; $dados["codigoMap"] = $codigoMap; $dados["codigoLayer"] = $codigoLayer; + return $dados; } function alterarTitulo() @@ -1568,15 +1569,15 @@ function alterarTitulo() $mapfile = $locaplic."/temas/".$codigoMap.".map"; $mapa = ms_newMapObj($mapfile); $layer = $mapa->getlayerbyname($codigoLayer); + $layer->set("name",$name); $layer->setmetadata("tema",$tema); $layer->setmetadata("iconetema",$iconetema); $layer->setmetadata("mensagem",$mensagem); $layer->setmetadata("escala",$escala); $layer->setmetadata("extensao",$extensao); - //$e = explode(" ",$extensao); - //$layer->setExtent($e[0],$e[1],$e[2],$e[3]); $layer->set("group",$group); + $mapa->save($mapfile); removeCabecalho($mapfile); return "ok"; diff --git a/datadownload.htm b/datadownload.htm index 658a019..9892923 100644 --- a/datadownload.htm +++ b/datadownload.htm @@ -97,6 +97,7 @@ i3GEO.idioma.mostraSeletor(); i3GEO.arvoreDeTemas.TIPOBOTAO = "download"; i3GEO.arvoreDeTemas.INCLUIWMSMETAESTAT = true; i3GEO.arvoreDeTemas.INCLUIINDIBR = false; +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = false; $i("bm1").innerHTML = i3GEO.social.bookmark(window.location.href); loc = window.location.href; i3GEO.social.compartilhar("curtir",loc,loc,"comtotal"); diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js index 6c6f48c..516f241 100644 --- a/ferramentas/legenda/index.js +++ b/ferramentas/legenda/index.js @@ -89,13 +89,13 @@ i3GEOF.legenda = { /* Variavel: estilo - �ltimo estilo selecionado + Ultimo estilo selecionado */ estilo: "", /* Variavel: classe - �ltima classe selecionado + Ultima classe selecionado */ classe: "", /* @@ -993,14 +993,17 @@ i3GEOF.legenda = { var p,cp; i3GEOF.legenda.classe = id[1]; i3GEOF.legenda.estilo = 0; - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=editasimbolo&opcao=pegaparametros&tema="+i3GEOF.legenda.tema+"&classe="+id[1]; - cp = new cpaint(); - cp.set_response_type("JSON"); - cp.call(p,"pegaParametrosMapa",i3GEOF.legenda.montaEditor); + i3GEOF.legenda.formEditorSimbolo(); i3GEOF.legenda.aguarde.visibility = "hidden"; } catch(e){i3GEO.janela.tempoMsg("Erro: "+ e);i3GEOF.legenda.aguarde.visibility = "hidden";} }, + formEditorSimbolo: function(){ + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=editasimbolo&opcao=pegaparametros&tema="+i3GEOF.legenda.tema+"&classe="+i3GEOF.legenda.classe; + cp = new cpaint(); + cp.set_response_type("JSON"); + cp.call(p,"pegaParametrosMapa",i3GEOF.legenda.montaEditor); + }, /* Function: simbU @@ -1419,6 +1422,7 @@ i3GEOF.legenda = { fim = function(){ i3GEOF.legenda.aposAlterarLegenda(); i3GEOF.legenda.aguarde.visibility = "hidden"; + i3GEOF.legenda.reMontaEditor(); }; //cp.set_debug(2) cp.set_response_type("JSON"); @@ -1551,4 +1555,4 @@ i3GEOF.legenda = { adicionaProcesso: function(s){ $i("i3GEOlegendaprocessos").innerHTML += $inputText("","","","",50,s.value); } -}; \ No newline at end of file +}; diff --git a/init/index.php b/init/index.php index 3ef654b..b34ba2e 100755 --- a/init/index.php +++ b/init/index.php @@ -191,7 +191,7 @@ botoesIni.push({ "titulo":$trad(17,g_traducao_init) },{ "img":"accessories-dictionary.png", - "href":"documentacao", + "href":"../documentacao", "titulo":$trad(24,g_traducao_init) },{ "img":"tools-report-bug.png", @@ -221,4 +221,4 @@ function mostraBotoes(){ } - \ No newline at end of file + diff --git a/interface/black_ol.htm b/interface/black_ol.htm index 7096650..feb0ea2 100755 --- a/interface/black_ol.htm +++ b/interface/black_ol.htm @@ -98,7 +98,19 @@ - + -- libgit2 0.21.2