Commit b532aaed572b5391463bb2c7f54e4ff07fc294fe
1 parent
7d456a3f
Exists in
master
and in
7 other branches
Opções de SLD movidas para a ferramenta de edição da legenda
Showing
3 changed files
with
24 additions
and
5 deletions
Show diff stats
classesjs/classe_arvoredecamadas.js
... | ... | @@ -773,9 +773,10 @@ i3GEO.arvoreDeCamadas = { |
773 | 773 | } |
774 | 774 | if(i3GEO.Interface.ATUAL !== "padrao" && i3GEO.Interface.ATUAL !== "googleearth" && i3GEO.Interface.ATUAL !== "flamingo"){ |
775 | 775 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t42"),$trad("t42"),'i3GEO.tema.dialogo.cortina(\"'+ltema.name+'\")',node); |
776 | - } | |
777 | - i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t38"),$trad("t39"),'i3GEO.tema.dialogo.sld(\"'+ltema.name+'\")',node); | |
778 | - i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t43"),$trad("t43"),'i3GEO.tema.dialogo.aplicarsld(\"'+ltema.name+'\")',node); | |
776 | + } | |
777 | + //as opções SLD foram migradas para a ferramenta de edição de legenda | |
778 | + //i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t38"),$trad("t39"),'i3GEO.tema.dialogo.sld(\"'+ltema.name+'\")',node); | |
779 | + //i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t43"),$trad("t43"),'i3GEO.tema.dialogo.aplicarsld(\"'+ltema.name+'\")',node); | |
779 | 780 | if(ltema.editorsql == "sim" || ltema.editorsql == "SIM") |
780 | 781 | {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t40"),$trad("t41"),'i3GEO.tema.dialogo.editorsql(\"'+ltema.name+'\")',node);} |
781 | 782 | ... | ... |
classesjs/classe_janela.js
... | ... | @@ -278,10 +278,10 @@ i3GEO.janela = { |
278 | 278 | {YAHOO.janelaDoca.xp.panel.iframe.style.zIndex = 0;} |
279 | 279 | if(modal === true){ |
280 | 280 | if($i(id+"_mask")) |
281 | - {$i(id+"_mask").style.zIndex = 9000;} | |
281 | + {$i(id+"_mask").style.zIndex = 9000 + i3GEO.janela.ULTIMOZINDEX + 1;} | |
282 | 282 | } |
283 | 283 | if($i(id+"_c")) |
284 | - {$i(id+"_c").style.zIndex = 10000;} | |
284 | + {$i(id+"_c").style.zIndex = 10000 + i3GEO.janela.ULTIMOZINDEX + 1;} | |
285 | 285 | if(funcaoCabecalho) |
286 | 286 | {$i(id+'_cabecalho').onclick = funcaoCabecalho;} |
287 | 287 | if(funcaoMinimiza) | ... | ... |
ferramentas/legenda/index.js.php
... | ... | @@ -109,6 +109,9 @@ i3GEOF.legenda = { |
109 | 109 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia4","i3GEOlegendaguia"); |
110 | 110 | i3GEOF.legenda.mostraGrafico(); |
111 | 111 | }; |
112 | + $i("i3GEOlegendaguia5").onclick = function(){ | |
113 | + i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia5","i3GEOlegendaguia"); | |
114 | + }; | |
112 | 115 | new YAHOO.widget.Button( |
113 | 116 | "i3GEOlegendabotao1", |
114 | 117 | {onclick:{fn: i3GEOF.legenda.mudaLegenda}} |
... | ... | @@ -157,6 +160,14 @@ i3GEOF.legenda = { |
157 | 160 | "i3GEOlegendabotao17", |
158 | 161 | {onclick:{fn: i3GEOF.legenda.alteraGeometriaTema}} |
159 | 162 | ); |
163 | + new YAHOO.widget.Button( | |
164 | + "i3GEOlegendabotaoSLDe", | |
165 | + {onclick:{fn: function(){window.open(i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=tema2sld&tema="+i3GEOF.legenda.tema+"&g_sid="+i3GEO.configura.sid);}}} | |
166 | + ); | |
167 | + new YAHOO.widget.Button( | |
168 | + "i3GEOlegendabotaoSLDi", | |
169 | + {onclick:{fn: function(){i3GEO.tema.dialogo.aplicarsld(i3GEOF.legenda.tema);}}} | |
170 | + ); | |
160 | 171 | i3GEOF.legenda.ativaFoco(); |
161 | 172 | i3GEOF.legenda.mostralegenda(); |
162 | 173 | i3GEO.util.comboItens( |
... | ... | @@ -188,6 +199,7 @@ i3GEOF.legenda = { |
188 | 199 | ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia2" style="text-align:center;left:0px;" >Classes</div></em></a></li>'+ |
189 | 200 | ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia3" style="text-align:center;left:0px;" >Editor</div></em></a></li>'+ |
190 | 201 | ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia4" style="text-align:center;left:0px;" >Gráficos</div></em></a></li>'+ |
202 | + ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia5" style="text-align:center;left:0px;" >Aplicar/exportar</div></em></a></li>'+ | |
191 | 203 | ' </ul>'+ |
192 | 204 | '</div><br>'+ |
193 | 205 | '<div id=i3GEOlegendaguia1obj style="width:99%;text-align:left;">'+ |
... | ... | @@ -259,6 +271,12 @@ i3GEOF.legenda = { |
259 | 271 | ' </div>'+ |
260 | 272 | '</div>'+ |
261 | 273 | '<div id=i3GEOlegendaguia4obj style="width:99%;text-align:left;">'+ |
274 | + '</div>'+ | |
275 | + '<div id=i3GEOlegendaguia5obj style="width:99%;text-align:left;">'+ | |
276 | + ' <p class=paragrafo >Gera um arquivo XML, no padrão SLD, contendo a legenda atual da camada. Para maiores informações, veja <a href="http://mapserver.org/ogc/sld.html#sld" target=_blank >Mapserver SLD</a>'+ | |
277 | + ' <p class=paragrafo ><input id=i3GEOlegendabotaoSLDe size="25" type="button" value="Exportar SLD"></p>'+ | |
278 | + ' <p class=paragrafo >Aplica um arquivo SLD à camada ativa' + | |
279 | + ' <p class=paragrafo ><input id=i3GEOlegendabotaoSLDi size="25" type="button" value="Aplicar SLD"></p>'+ | |
262 | 280 | '</div>'; |
263 | 281 | return ins; |
264 | 282 | }, | ... | ... |