Commit 135b78c8443be388cfcbf7e8e0675bcad2a17ee1
1 parent
c7e01095
Exists in
master
and in
7 other branches
--no commit message
Showing
7 changed files
with
28 additions
and
7 deletions
Show diff stats
classesjs/classe_php.js
... | ... | @@ -313,6 +313,8 @@ i3GEO.php = { |
313 | 313 | }, |
314 | 314 | /* |
315 | 315 | Function: listaTemasEditaveis |
316 | + | |
317 | + Lista os temas guardados na pasta temporaria (temas locais) | |
316 | 318 | |
317 | 319 | <LISTATEMASLOCAIS> |
318 | 320 | */ |
... | ... | @@ -325,7 +327,6 @@ i3GEO.php = { |
325 | 327 | par = "funcao=listatemaslocais&g_sid="+sid; |
326 | 328 | cpJSON.call(p,"listatemaslocais",funcao,par); |
327 | 329 | }, |
328 | - | |
329 | 330 | /* |
330 | 331 | Function: listaTemasComSel |
331 | 332 | ... | ... |
classesjs/classe_util.js
... | ... | @@ -1656,9 +1656,13 @@ i3GEO.util = { |
1656 | 1656 | else |
1657 | 1657 | {i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid);} |
1658 | 1658 | } |
1659 | - if(tipoCombo === "editaveis"){ | |
1659 | + if(tipoCombo === "locais"){ | |
1660 | 1660 | i3GEO.php.listaTemasEditaveis(monta,i3GEO.configura.locaplic,i3GEO.configura.sid); |
1661 | 1661 | } |
1662 | + if(tipoCombo === "editavel"){ | |
1663 | + temp = i3GEO.arvoreDeCamadas.filtraCamadas("editavel","SIM","igual",i3GEO.arvoreDeCamadas.CAMADAS); | |
1664 | + monta(temp); | |
1665 | + } | |
1662 | 1666 | if(tipoCombo === "selecionados"){ |
1663 | 1667 | if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){ |
1664 | 1668 | monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS)); | ... | ... |
documentacao/manual-i3geo-5_0-pt.odt
No preview for this file type
documentacao/manual-i3geo-5_0-pt.pdf
No preview for this file type
exemplos/combos.htm
... | ... | @@ -141,7 +141,7 @@ function montaCombos(){ |
141 | 141 | "CMBeditaveis", |
142 | 142 | "", |
143 | 143 | false, |
144 | - "editaveis" | |
144 | + "locais" | |
145 | 145 | ); |
146 | 146 | //temas raster |
147 | 147 | i3GEO.util.comboTemas( |
... | ... | @@ -265,4 +265,4 @@ i3GEO.inicia(); |
265 | 265 | </script> |
266 | 266 | </body> |
267 | 267 | |
268 | -</html> | |
269 | 268 | \ No newline at end of file |
269 | +</html> | ... | ... |
ferramentas/inserexy2/index.js
... | ... | @@ -376,7 +376,7 @@ i3GEOF.inserexy = { |
376 | 376 | "i3GEOinserexyshapefile", |
377 | 377 | "", |
378 | 378 | false, |
379 | - "editaveis" | |
379 | + "locais" | |
380 | 380 | ); |
381 | 381 | }, |
382 | 382 | /* |
... | ... | @@ -749,4 +749,4 @@ i3GEOF.inserexy = { |
749 | 749 | } |
750 | 750 | catch(e){i3GEO.janela.tempoMsg("Erro: "+e);} |
751 | 751 | } |
752 | -}; | |
753 | 752 | \ No newline at end of file |
753 | +}; | ... | ... |
mashups/openlayers.js
... | ... | @@ -24,7 +24,7 @@ i3GEO.editorOL = { |
24 | 24 | graphicWidth: 25 |
25 | 25 | }, |
26 | 26 | backup: new OpenLayers.Layer.Vector("Backup",{displayInLayerSwitcher:false,visibility:false}), |
27 | - nomeFuncaoSalvar: "i3GEO.editorOL.testeSalvar()", | |
27 | + nomeFuncaoSalvar: "i3GEO.editorOL.salvaGeo()", | |
28 | 28 | e_oce: new OpenLayers.Layer.ArcGIS93Rest( |
29 | 29 | "ESRI Ocean Basemap", |
30 | 30 | "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", |
... | ... | @@ -658,6 +658,22 @@ i3GEO.editorOL = { |
658 | 658 | testeSalvar: function(){ |
659 | 659 | alert("Funcao nao disponivel. Defina o nome da funcao em i3GEO.editorOL.nomeFuncaoSalvar "); |
660 | 660 | }, |
661 | + salvaGeo: function(){ | |
662 | + i3GEO.editorOL.testeSalvar(); | |
663 | + return; | |
664 | + //verifica se apenas uma geometria esta selecionada | |
665 | + //verifica se a geometria contem o atributo que indica a coluna ou codigo unico | |
666 | + var funcaoOK = function(){ | |
667 | + | |
668 | + alert("oi"); | |
669 | + }, | |
670 | + funcaoCombo = function(obj){ | |
671 | + $i("editorOLondeComboTemaEditavel").innerHTML = obj.dados; | |
672 | + }, | |
673 | + texto = "Salvar no tema:<br><div id=editorOLondeComboTemaEditavel ></div><br><br>"; | |
674 | + i3GEO.janela.confirma(texto,300,"Salva","Cancela",funcaoOK); | |
675 | + i3GEO.util.comboTemas("editorOLcomboTemaEditavel",funcaoCombo,"editorOLondeComboTemaEditavel","",false,"editavel"); | |
676 | + }, | |
661 | 677 | criaBotoes: function(botoes){ |
662 | 678 | var sketchSymbolizers = { |
663 | 679 | "Point": { | ... | ... |