Commit fea37a4196d195401ecd65aaae9334d93e7b1f7a

Authored by Edmar Moretti
1 parent ab15ede8

correções no identifica

admin/js/editormapfile.js
... ... @@ -763,7 +763,8 @@ function adicionaNovoLayer(codigoMap)
763 763 tempNode.isLeaf = false;
764 764 tempNode.enableHighlight = false;
765 765 tree.draw();
766   - editorGeral(codigoMap,dados.layers[0]);
  766 + //editorGeral(codigoMap,dados.layers[0]);
  767 + editorTitulo(codigoMap,dados.layers[0])
767 768 core_carregando("desativa");
768 769 }
769 770 }
... ... @@ -2267,8 +2268,13 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo,
2267 2268 {montaEditorDispo(YAHOO.lang.JSON.parse(o.responseText));}
2268 2269 if(tipo=="editavel")
2269 2270 {montaEditorEditavel(YAHOO.lang.JSON.parse(o.responseText));}
2270   - if(tipo=="titulo")
2271   - {montaEditorTitulo(YAHOO.lang.JSON.parse(o.responseText));}
  2271 + if(tipo=="titulo"){
  2272 + //o codigo do layer pode ter sido alterado
  2273 + var no = getNodeByProperty("id",codigoMap+"_"+codigoLayer);
  2274 + tree.removeChildren(no) ;
  2275 + no.expand();
  2276 + montaEditorTitulo(YAHOO.lang.JSON.parse(o.responseText));
  2277 + }
2272 2278 if(tipo=="metadados")
2273 2279 {montaEditorMetadados(YAHOO.lang.JSON.parse(o.responseText));}
2274 2280 if(tipo=="geral")
... ...
admin/php/editormapfile.php
... ... @@ -1552,7 +1552,7 @@ function pegaTitulo()
1552 1552 $mapa = ms_newMapObj($mapfile);
1553 1553 $layer = $mapa->getlayerbyname($codigoLayer);
1554 1554 $dados["name"] = $layer->name;
1555   - $dados["tema"] = mb_convert_encoding($layer->getmetadata("tema"),"UTF-8","ISO-8859-1");//$layer->getmetadata("tema");
  1555 + $dados["tema"] = mb_convert_encoding($layer->getmetadata("tema"),"UTF-8","ISO-8859-1");
1556 1556 $dados["iconetema"] = $layer->getmetadata("iconetema");
1557 1557 $dados["mensagem"] = mb_convert_encoding($layer->getmetadata("mensagem"),"UTF-8","ISO-8859-1");//$layer->getmetadata("mensagem");
1558 1558 $dados["escala"] = $layer->getmetadata("escala");
... ... @@ -1560,6 +1560,7 @@ function pegaTitulo()
1560 1560 $dados["group"] = $layer->group;
1561 1561 $dados["codigoMap"] = $codigoMap;
1562 1562 $dados["codigoLayer"] = $codigoLayer;
  1563 +
1563 1564 return $dados;
1564 1565 }
1565 1566 function alterarTitulo()
... ... @@ -1568,15 +1569,15 @@ function alterarTitulo()
1568 1569 $mapfile = $locaplic."/temas/".$codigoMap.".map";
1569 1570 $mapa = ms_newMapObj($mapfile);
1570 1571 $layer = $mapa->getlayerbyname($codigoLayer);
  1572 +
1571 1573 $layer->set("name",$name);
1572 1574 $layer->setmetadata("tema",$tema);
1573 1575 $layer->setmetadata("iconetema",$iconetema);
1574 1576 $layer->setmetadata("mensagem",$mensagem);
1575 1577 $layer->setmetadata("escala",$escala);
1576 1578 $layer->setmetadata("extensao",$extensao);
1577   - //$e = explode(" ",$extensao);
1578   - //$layer->setExtent($e[0],$e[1],$e[2],$e[3]);
1579 1579 $layer->set("group",$group);
  1580 +
1580 1581 $mapa->save($mapfile);
1581 1582 removeCabecalho($mapfile);
1582 1583 return "ok";
... ...
datadownload.htm
... ... @@ -97,6 +97,7 @@ i3GEO.idioma.mostraSeletor();
97 97 i3GEO.arvoreDeTemas.TIPOBOTAO = "download";
98 98 i3GEO.arvoreDeTemas.INCLUIWMSMETAESTAT = true;
99 99 i3GEO.arvoreDeTemas.INCLUIINDIBR = false;
  100 +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = false;
100 101 $i("bm1").innerHTML = i3GEO.social.bookmark(window.location.href);
101 102 loc = window.location.href;
102 103 i3GEO.social.compartilhar("curtir",loc,loc,"comtotal");
... ...
ferramentas/legenda/index.js
... ... @@ -89,13 +89,13 @@ i3GEOF.legenda = {
89 89 /*
90 90 Variavel: estilo
91 91  
92   - ltimo estilo selecionado
  92 + Ultimo estilo selecionado
93 93 */
94 94 estilo: "",
95 95 /*
96 96 Variavel: classe
97 97  
98   - ltima classe selecionado
  98 + Ultima classe selecionado
99 99 */
100 100 classe: "",
101 101 /*
... ... @@ -993,14 +993,17 @@ i3GEOF.legenda = {
993 993 var p,cp;
994 994 i3GEOF.legenda.classe = id[1];
995 995 i3GEOF.legenda.estilo = 0;
996   - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=editasimbolo&opcao=pegaparametros&tema="+i3GEOF.legenda.tema+"&classe="+id[1];
997   - cp = new cpaint();
998   - cp.set_response_type("JSON");
999   - cp.call(p,"pegaParametrosMapa",i3GEOF.legenda.montaEditor);
  996 + i3GEOF.legenda.formEditorSimbolo();
1000 997 i3GEOF.legenda.aguarde.visibility = "hidden";
1001 998 }
1002 999 catch(e){i3GEO.janela.tempoMsg("Erro: "+ e);i3GEOF.legenda.aguarde.visibility = "hidden";}
1003 1000 },
  1001 + formEditorSimbolo: function(){
  1002 + 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;
  1003 + cp = new cpaint();
  1004 + cp.set_response_type("JSON");
  1005 + cp.call(p,"pegaParametrosMapa",i3GEOF.legenda.montaEditor);
  1006 + },
1004 1007 /*
1005 1008 Function: simbU
1006 1009  
... ... @@ -1419,6 +1422,7 @@ i3GEOF.legenda = {
1419 1422 fim = function(){
1420 1423 i3GEOF.legenda.aposAlterarLegenda();
1421 1424 i3GEOF.legenda.aguarde.visibility = "hidden";
  1425 + i3GEOF.legenda.reMontaEditor();
1422 1426 };
1423 1427 //cp.set_debug(2)
1424 1428 cp.set_response_type("JSON");
... ... @@ -1551,4 +1555,4 @@ i3GEOF.legenda = {
1551 1555 adicionaProcesso: function(s){
1552 1556 $i("i3GEOlegendaprocessos").innerHTML += $inputText("","","","",50,s.value);
1553 1557 }
1554   -};
1555 1558 \ No newline at end of file
  1559 +};
... ...
init/index.php
... ... @@ -191,7 +191,7 @@ botoesIni.push({
191 191 "titulo":$trad(17,g_traducao_init)
192 192 },{
193 193 "img":"accessories-dictionary.png",
194   - "href":"documentacao",
  194 + "href":"../documentacao",
195 195 "titulo":$trad(24,g_traducao_init)
196 196 },{
197 197 "img":"tools-report-bug.png",
... ... @@ -221,4 +221,4 @@ function mostraBotoes(){
221 221 }
222 222  
223 223 </script>
224   -</html>
225 224 \ No newline at end of file
  225 +</html>
... ...
interface/black_ol.htm
... ... @@ -98,7 +98,19 @@
98 98 </div>
99 99 </div>
100 100 </div>
101   -
  101 + <style>
  102 + .olControlEditingToolbar1 div {
  103 + background-image: url(../mashups/openlayers.png);
  104 + background-repeat: no-repeat;
  105 + float: right;
  106 + right: 0px;
  107 + height: 29px;
  108 + margin: 2px;
  109 + width: 29px;
  110 + cursor: pointer;
  111 + top: 10px;
  112 + }
  113 + </style>
102 114 <script src="../classesjs/i3geo.js"></script>
103 115 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
104 116 <link rel="stylesheet" type="text/css" href="../css/black.css">
... ...