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