Commit 94efdd9348343e294daf5ff96b144928191e928c

Authored by Edmar Moretti
1 parent 1abcceaf

Ticket #451

aplicmap/legenda.htm
1   -[leg_layer_html opt_flag=1]<table class=legendatemas cellspacing=0 width=248 >[if name=TEMA oper=neq value=NAO]<table [if name=CLASSE oper=eq value=NAO] style=display:none; [/if] ><tr><td style=text-align:left ><b><span class=legendaTema ><input value="[leg_layer_name]" name="layer" onclick="i3GEO.mapa.legendaHTML.ativaDesativaTema(this)" type=checkbox checked class=inputsb style=cursor:pointer >&nbsp;[metadata name=TEMA]</span></b><br> </td></tr>[if name=legendawms oper=isset ]<tr><td style=text-align:left ><img src='[metadata name=legendawms]' /></td></tr>[/if][if name=legendaimg oper=isset ]<tr><td style=text-align:left ><img src='[metadata name=legendaimg]' /></td></tr>[/if]</table>[/if][/leg_layer_html][leg_class_html][if name=CLASSE oper=neq value=NAO]<table ><tr><td colspan=2 width=22 >&nbsp;<img src=[leg_icon width=16 height=16 ] /></td><td width=210 style=text-align:left; ><span style=font-size:9px >[leg_class_name]</span></td></tr></table>[/if]</table>[/leg_class_html]
2 1 \ No newline at end of file
  2 +[leg_layer_html opt_flag=1]<table class=legendatemas cellspacing=0 width=248 >[if name=TEMA oper=neq value=NAO]<table [if name=CLASSE oper=eq value=NAO] style=display:none; [/if] ><tr><td style=text-align:left ><b><span class=legendaTema ><input value="[leg_layer_name]" name="layer" onclick="i3GEO.mapa.legendaHTML.ativaDesativaTema(this)" type=checkbox checked class=inputsb style=cursor:pointer;position:relative;top:2px;left:2px; >&nbsp;[metadata name=TEMA]</span></b><br> </td></tr>[if name=legendawms oper=isset ]<tr><td style=text-align:left ><img src='[metadata name=legendawms]' /></td></tr>[/if][if name=legendaimg oper=isset ]<tr><td style=text-align:left ><img src='[metadata name=legendaimg]' /></td></tr>[/if]</table>[/if][/leg_layer_html][leg_class_html][if name=CLASSE oper=neq value=NAO]<table style=margin-top:5px; ><tr><td colspan=2 style=width:35px;text-align:right; >&nbsp;<img src=[leg_icon width=16 height=16 ] /></td><td width=210 style=text-align:left; ><span style=font-size:9px;position:relative;left:2px;top:-2px; >[leg_class_name]</span></td></tr></table>[/if]</table>[/leg_class_html]
3 3 \ No newline at end of file
... ...
classesjs/classe_barradebotoes.js
... ... @@ -277,6 +277,8 @@ i3GEO.barraDeBotoes = {
277 277  
278 278 INCLUIBOTAO: {
279 279  
  280 + abreJanelaLegenda: false,
  281 +
280 282 zoomli: false,
281 283  
282 284 zoomiauto: false,
... ... @@ -334,6 +336,7 @@ i3GEO.barraDeBotoes = {
334 336 {obj}
335 337 */
336 338 INCLUIBOTAO: {
  339 + abreJanelaLegenda: true,
337 340 localizar: true,
338 341 zoomli: true,
339 342 zoomiauto: false,
... ... @@ -420,7 +423,9 @@ i3GEO.barraDeBotoes = {
420 423  
421 424 barraedicao: "/imagens/gisicons/eudock/editopen.png",
422 425  
423   - localizar: "/imagens/gisicons/eudock/search.png"
  426 + localizar: "/imagens/gisicons/eudock/search.png",
  427 +
  428 + abreJanelaLegenda: "/imagens/gisicons/eudock/legenda.png"
424 429 }
425 430  
426 431 Type:
... ... @@ -452,7 +457,8 @@ i3GEO.barraDeBotoes = {
452 457 inseregrafico: "/imagens/gisicons/eudock/grafico.png",
453 458 v3d: "/imagens/gisicons/eudock/v3d.png",
454 459 barraedicao: "/imagens/gisicons/eudock/editopen.png",
455   - localizar: "/imagens/gisicons/eudock/search.png"
  460 + localizar: "/imagens/gisicons/eudock/search.png",
  461 + abreJanelaLegenda: "/imagens/gisicons/eudock/show-legend.png"
456 462 },
457 463 /*
458 464 Propriedade: TEMPLATEBOTAO
... ...
classesjs/classe_configura.js
... ... @@ -1152,6 +1152,16 @@ i3GEO.configura = {
1152 1152 rotaEvento = GEvent.addListener(i3GeoMap, "click", parametrosRota);
1153 1153 i3GEO.janela.tempoMsg("Clique o ponto de origem da rota");
1154 1154 }
  1155 + },
  1156 + {
  1157 + //abre a legenda
  1158 + iddiv:"abreJanelaLegenda",
  1159 + tipo:"",
  1160 + dica:$trad("p3"),
  1161 + titulo:$trad("p3"),
  1162 + funcaoonclick:function(){
  1163 + i3GEO.mapa.legendaHTML.libera("sim");
  1164 + }
1155 1165 }
1156 1166 ]}
1157 1167 };
... ...
classesjs/classe_mapa.js
... ... @@ -427,8 +427,15 @@ i3GEO.mapa = {
427 427 Function: libera
428 428  
429 429 Libera a legenda criando uma janela flutuante sobre o mapa
  430 +
  431 + Parametros:
  432 +
  433 + ck - sim|nao - (opcional) inclui ou nao o checkbox que permitem desligar a camada
430 434 */
431   - libera: function(){
  435 + libera: function(ck){
  436 + if(!ck){
  437 + ck = "nao";
  438 + }
432 439 if(typeof(console) !== 'undefined'){console.info("i3GEO.mapa.legendaHTML.libera()");}
433 440 var temp = function(retorno){
434 441 var novoel,temp,n,i,janela;
... ... @@ -436,7 +443,7 @@ i3GEO.mapa = {
436 443 novoel = document.createElement("div");
437 444 novoel.id = "moveLegi";
438 445 novoel.style.display="block";
439   - temp = '<div class="hd" >Legenda</div>';
  446 + temp = '<div class="hd" >'+$trad("p3")+'</div>';
440 447 temp += '<div id="wlegenda" style="display:block;padding:5px 2px 5px 0px;text-align:left;background-color:white;height:300px;width:300px;overflow:auto" ></div>';
441 448 novoel.innerHTML = temp;
442 449 document.body.appendChild(novoel);
... ... @@ -455,10 +462,12 @@ i3GEO.mapa = {
455 462 janela = YAHOO.i3GEO.janela.manager.find("moveLegi");
456 463 }
457 464 $i("wlegenda").innerHTML = retorno.data.legenda;
458   - temp = $i("wlegenda").getElementsByTagName("input");
459   - n = temp.length;
460   - for(i=0;i<n;i += 1){
461   - temp[i].style.display = "none";
  465 + if(ck === "nao"){
  466 + temp = $i("wlegenda").getElementsByTagName("input");
  467 + n = temp.length;
  468 + for(i=0;i<n;i += 1){
  469 + temp[i].style.display = "none";
  470 + }
462 471 }
463 472 janela.show();
464 473 };
... ...
classesjs/dicionario.js
... ... @@ -1369,7 +1369,7 @@ it:&quot;Misura l&#39;area di un poligono tracciato sullo schermo. Il calcolo della super
1369 1369 }],
1370 1370 "d21at":[
1371 1371 {
1372   -pt:-"&aacute;rea",
  1372 +pt:"&aacute;rea",
1373 1373 en:"area",
1374 1374 es:"&aacute;rea",
1375 1375 it:"&aacute;rea"
... ...
imagens/gisicons/eudock/show-legend.png 0 → 100755

2.66 KB

interface/googleearth.phtml
... ... @@ -130,6 +130,7 @@ i3GEO.barraDeBotoes.COMPORTAMENTO = &quot;laranja&quot;;
130 130 i3GEO.Interface.ATUAL = "googleearth";
131 131 i3GEO.Interface.IDCORPO = "contemImg";
132 132 i3GEO.barraDeBotoes.INCLUIBOTAO = {
  133 + abreJanelaLegenda: true,
133 134 identifica: true,
134 135 identificaBalao: true,
135 136 mede: true,
... ...