Commit 666902274c5bd4a3f6ce750cfc801e4cdaf75d62
1 parent
8913d438
Exists in
master
and in
7 other branches
Correção na inclusão de labels em classes no editor de legenda
Showing
12 changed files
with
51 additions
and
44 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/php/editormapfile.php
... | ... | @@ -1183,11 +1183,11 @@ function refazerLayer() |
1183 | 1183 | $layernovo = @$mapa->getlayerbyname($nomelayer); |
1184 | 1184 | if($layeroriginal != "" && $layernovo != "") |
1185 | 1185 | { |
1186 | - $plugin = $layeroriginal->getmetadata("PLUGINI3GEO"); | |
1186 | + //$plugin = $layeroriginal->getmetadata("PLUGINI3GEO"); | |
1187 | 1187 | $layeroriginal->set("status",MS_DELETE); |
1188 | 1188 | $nl = ms_newLayerObj($mapatema,$layernovo); |
1189 | 1189 | $nl->set("name",$codigomap); |
1190 | - $nl->setmetadata("PLUGINI3GEO",$plugin); | |
1190 | + //$nl->setmetadata("PLUGINI3GEO",$plugin); | |
1191 | 1191 | $nl->setmetadata("nomeoriginal",""); |
1192 | 1192 | $nl->setmetadata("arquivotemaoriginal",""); |
1193 | 1193 | $nl->setmetadata("olopacity",""); | ... | ... |
aplicmap/dados/locali.dbf
No preview for this file type
aplicmap/dados/locali.qix
No preview for this file type
ferramentas/aplicarsld/index.js
... | ... | @@ -120,6 +120,7 @@ i3GEOF.aplicarsld = { |
120 | 120 | minimiza |
121 | 121 | ); |
122 | 122 | divid = janela[2].id; |
123 | + janela[0].bringToTop(); | |
123 | 124 | $i("i3GEOF.aplicarsld_corpo").style.backgroundColor = "white"; |
124 | 125 | i3GEOF.aplicarsld.aguarde = $i("i3GEOF.aplicarsld_imagemCabecalho").style; |
125 | 126 | i3GEOF.aplicarsld.inicia(divid); | ... | ... |
ferramentas/atalhosedicao/index.js
... | ... | @@ -50,11 +50,11 @@ i3GEOF.atalhosedicao = |
50 | 50 | var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; |
51 | 51 | var montaEditorPlugin = function(retorno){ |
52 | 52 | i3GEO.pluginI3geo.parametrossql.formAdmin( |
53 | - retorno, | |
54 | - "editor_bd", | |
55 | - i3GEO.temaAtivo, | |
56 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"parametrossql",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
57 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
53 | + retorno, | |
54 | + "editor_bd", | |
55 | + i3GEO.temaAtivo, | |
56 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"parametrossql",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
57 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
58 | 58 | ); |
59 | 59 | }; |
60 | 60 | core_pegaDados("",sUrl,montaEditorPlugin); |
... | ... | @@ -68,11 +68,11 @@ i3GEOF.atalhosedicao = |
68 | 68 | var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; |
69 | 69 | var montaEditorPlugin = function(retorno){ |
70 | 70 | i3GEO.pluginI3geo.layerkml.formAdmin( |
71 | - retorno, | |
72 | - "editor_bd", | |
73 | - i3GEO.temaAtivo, | |
74 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"layerkml",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
75 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
71 | + retorno, | |
72 | + "editor_bd", | |
73 | + i3GEO.temaAtivo, | |
74 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"layerkml",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
75 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
76 | 76 | ); |
77 | 77 | }; |
78 | 78 | core_pegaDados("",sUrl,montaEditorPlugin); |
... | ... | @@ -85,11 +85,11 @@ i3GEOF.atalhosedicao = |
85 | 85 | var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; |
86 | 86 | var montaEditorPlugin = function(retorno){ |
87 | 87 | i3GEO.pluginI3geo.markercluster.formAdmin( |
88 | - retorno, | |
89 | - "editor_bd", | |
90 | - i3GEO.temaAtivo, | |
91 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"markercluster",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
92 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
88 | + retorno, | |
89 | + "editor_bd", | |
90 | + i3GEO.temaAtivo, | |
91 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"markercluster",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
92 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
93 | 93 | ); |
94 | 94 | }; |
95 | 95 | core_pegaDados("",sUrl,montaEditorPlugin); |
... | ... | @@ -102,11 +102,11 @@ i3GEOF.atalhosedicao = |
102 | 102 | var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; |
103 | 103 | var montaEditorPlugin = function(retorno){ |
104 | 104 | i3GEO.pluginI3geo.heatmap.formAdmin( |
105 | - retorno, | |
106 | - "editor_bd", | |
107 | - i3GEO.temaAtivo, | |
108 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"heatmap",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
109 | - 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
105 | + retorno, | |
106 | + "editor_bd", | |
107 | + i3GEO.temaAtivo, | |
108 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"heatmap",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);', | |
109 | + 'i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema);' | |
110 | 110 | ); |
111 | 111 | }; |
112 | 112 | core_pegaDados("",sUrl,montaEditorPlugin); |
... | ... | @@ -262,6 +262,9 @@ i3GEOF.atalhosedicao = |
262 | 262 | else { |
263 | 263 | YAHOO.admin.container.panelEditor.destroy(); |
264 | 264 | YAHOO.admin.container.panelEditor = null; |
265 | + i3GEO.Interface.openlayers.removeTodosOsLayers(); | |
266 | + i3GEO.arvoreDeCamadas.CAMADAS = []; | |
267 | + i3GEO.atualiza(); | |
265 | 268 | } |
266 | 269 | } |
267 | 270 | catch(e){core_handleFailure(e,o.responseText);} |
... | ... | @@ -270,5 +273,4 @@ i3GEOF.atalhosedicao = |
270 | 273 | }; |
271 | 274 | core_makeRequest(sUrl,callback,'POST'); |
272 | 275 | } |
273 | - | |
274 | 276 | }; | ... | ... |
ferramentas/filtro/index.js
... | ... | @@ -185,6 +185,7 @@ i3GEOF.filtro = { |
185 | 185 | "" |
186 | 186 | ); |
187 | 187 | divid = janela[2].id; |
188 | + janela[0].bringToTop(); | |
188 | 189 | i3GEOF.filtro.aguarde = $i("i3GEOF.filtro_imagemCabecalho").style; |
189 | 190 | $i("i3GEOF.filtro_corpo").style.backgroundColor = "white"; |
190 | 191 | i3GEOF.filtro.inicia(divid,modoCalculadora,idRetorno); | ... | ... |
ferramentas/legenda/index.js
ferramentas/salvamapfile/index.js
... | ... | @@ -93,25 +93,18 @@ i3GEOF.salvamapfile = { |
93 | 93 | i3GEOF.salvamapfile.aguarde.visibility = "hidden"; |
94 | 94 | var nome = retorno.data.nomeoriginal; |
95 | 95 | if(nome == ""){ |
96 | - $i(iddiv).innerHTML = "<p class=paragrafo >"+$trad('naoExisteMapfile',i3GEOF.salvamapfile.dicionario)+"<a href='"+i3GEO.configura.locaplic+"/admin/html/editormapfile.html' target=_blank >link</a>"; | |
96 | + $i(iddiv).innerHTML = "<h5 class='alert alert-danger'>"+$trad('naoExisteMapfile',i3GEOF.salvamapfile.dicionario)+"</h5>"; | |
97 | 97 | return; |
98 | 98 | } |
99 | 99 | if(nome == undefined){ |
100 | - $i(iddiv).innerHTML = "<p class=paragrafo >"+$trad('naosalva',i3GEOF.salvamapfile.dicionario); | |
100 | + $i(iddiv).innerHTML = "<h5 class='alert alert-danger'>"+$trad('naosalva',i3GEOF.salvamapfile.dicionario)+"</h5>"; | |
101 | 101 | return; |
102 | 102 | } |
103 | - var ins = "<p class=paragrafo >"+$trad('ajuda',i3GEOF.salvamapfile.dicionario) + | |
104 | - '<span id="i3GEOsalvamapconcluido" style=display:none;color:red > '+$trad('concluido',i3GEOF.salvamapfile.dicionario)+'</span></p>' + | |
105 | - '<br><p class=paragrafo ><input size=20 id=i3GEOsalvamapfilebotao1 type=button value="'+$trad('salva',i3GEOF.salvamapfile.dicionario)+'" />'; | |
106 | - $i(iddiv).innerHTML = ins; | |
107 | - new YAHOO.widget.Button( | |
108 | - "i3GEOsalvamapfilebotao1", | |
109 | - {onclick:{fn: function(){i3GEOF.salvamapfile.salva(nome,retorno.data.mapfile,retorno.data.nomelayer);}}} | |
110 | - ); | |
111 | - new YAHOO.widget.Button( | |
112 | - "i3GEOsalvamapfilebotao2", | |
113 | - {onclick:{fn: function(){window.open(i3GEO.configura.locaplic+"/testamapfile.php?map="+nome);}}} | |
114 | - ); | |
103 | + var ins = "<h5>"+$trad('ajuda',i3GEOF.salvamapfile.dicionario) + "</h5>" + | |
104 | + "<h5 class='alert alert-success' style='display:none;' id='i3GEOsalvamapconcluido' >"+$trad('concluido',i3GEOF.salvamapfile.dicionario)+"</h5>" + | |
105 | + '<br><button onclick="i3GEOF.salvamapfile.salva(\'' + nome + '\',\'' + retorno.data.mapfile + '\',\'' + retorno.data.nomelayer + '\');" class="btn btn-primary btn-sm btn-raised">'+$trad('salva',i3GEOF.salvamapfile.dicionario)+'</button>'; | |
106 | + $i(iddiv).innerHTML = "<div class='container-fluid'>" + ins + "</div>"; | |
107 | + | |
115 | 108 | }; |
116 | 109 | cp.set_response_type("JSON"); |
117 | 110 | cp.call(p,"",retorno); |
... | ... | @@ -135,8 +128,8 @@ i3GEOF.salvamapfile = { |
135 | 128 | //cria a janela flutuante |
136 | 129 | titulo = "</div><a class='i3GeoTituloJanelaBs' target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=5&idajuda=92' >" + $trad("x55")+" <i>"+i3GEO.temaAtivo+"</i></a>"; |
137 | 130 | janela = i3GEO.janela.cria( |
138 | - "330px", | |
139 | - "130px", | |
131 | + "340px", | |
132 | + "160px", | |
140 | 133 | "", |
141 | 134 | "", |
142 | 135 | "", |
... | ... | @@ -148,7 +141,10 @@ i3GEOF.salvamapfile = { |
148 | 141 | minimiza, |
149 | 142 | "", |
150 | 143 | true, |
151 | - i3GEO.configura.locaplic+"/imagens/oxygen/16x16/document-save.png" | |
144 | + "", | |
145 | + "", | |
146 | + "", | |
147 | + "" | |
152 | 148 | ); |
153 | 149 | divid = janela[2].id; |
154 | 150 | $i("i3GEOF.salvamapfile_corpo").style.backgroundColor = "white"; | ... | ... |
temas/_llocali.map
... | ... | @@ -3,7 +3,6 @@ MAP |
3 | 3 | SYMBOLSET "../symbols/simbolosv6.sym" |
4 | 4 | LAYER |
5 | 5 | CONNECTION "" |
6 | - #o caminho aqui tem de ser completo | |
7 | 6 | DATA "/var/www/i3geo/aplicmap/dados/locali.shp" |
8 | 7 | METADATA |
9 | 8 | "METAESTAT_ID_MEDIDA_VARIAVEL" "" |
... | ... | @@ -11,17 +10,26 @@ MAP |
11 | 10 | "cache" "nao" |
12 | 11 | "CLASSE" "SIM" |
13 | 12 | "LTEMPOITEMDESCRICAO" "TIPO" |
13 | + "olopacity" "" | |
14 | 14 | "LTEMPOITEMINICIO" "ANOCRIA" |
15 | 15 | "permitekmz" "sim" |
16 | 16 | "LTEMPOITEMTIP" "ANOCRIA" |
17 | + "gmopacity" "" | |
18 | + "gmstatus" "" | |
17 | 19 | "ITENSDESC" "Município,TIPO,Localidade,ANOCRIA" |
18 | 20 | "LTEMPOITEMTITULO" "NOMELOC" |
19 | 21 | "ITENSLINK" ",,," |
20 | 22 | "TILES" "SIM" |
21 | 23 | "METAESTAT_CODIGO_TIPO_REGIAO" "" |
24 | + "arquivotemaoriginal" "" | |
25 | + "nomeoriginal" "" | |
26 | + "olstatus" "" | |
22 | 27 | "permitedownload" "sim" |
23 | 28 | "LTEMPOFORMATODATA" "iso8601" |
29 | + "FILTROORIGINAL" "" | |
24 | 30 | "permitecomentario" "SIM" |
31 | + "DATAORIGINAL" "" | |
32 | + "PLUGINI3GEO" "" | |
25 | 33 | "metaestat" "" |
26 | 34 | "download" "SIM" |
27 | 35 | "itembuscarapida" "NOMELOC" |
... | ... | @@ -31,13 +39,13 @@ MAP |
31 | 39 | "transitioneffect" "NAO" |
32 | 40 | "TEMA" "Localidades (usar com timeline) para teste" |
33 | 41 | "cortepixels" "40" |
42 | + "identifica" "sim" | |
34 | 43 | "LTEMPOCONVENCODE" "SIM" |
35 | - #"CONVCARACTER" "NAO" | |
36 | 44 | END # METADATA |
37 | 45 | NAME "_llocali" |
38 | 46 | PROCESSING "LABEL_NO_CLIP=True" |
39 | 47 | PROCESSING "POLYLINE_NO_CLIP=True" |
40 | - STATUS OFF | |
48 | + STATUS DEFAULT | |
41 | 49 | TEMPLATE "none.htm" |
42 | 50 | TILEITEM "location" |
43 | 51 | TYPE POINT | ... | ... |