Commit 0f736f6c73e9646a37e36c749868cd8ef96079e8

Authored by Edmar Moretti
1 parent b2c71900

--no commit message

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
classesphp/classe_legenda.php
@@ -452,7 +452,7 @@ $onclick - Função que será incluída no HTML no evento onclick sobre o símbolo @@ -452,7 +452,7 @@ $onclick - Função que será incluída no HTML no evento onclick sobre o símbolo
452 return: 452 return:
453 String no formato HTML com as imagens dos símbolos 453 String no formato HTML com as imagens dos símbolos
454 */ 454 */
455 - function listaSimbolos($tipo,$dir_tmp,$imgdir,$onclick) 455 + function listaSimbolos($tipo,$dir_tmp,$imgdir,$onclick,$tamanho=16)
456 { 456 {
457 if ($tipo == 3){$tipo = 2;} //tipo raster 457 if ($tipo == 3){$tipo = 2;} //tipo raster
458 if (!file_exists($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc")) 458 if (!file_exists($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc"))
@@ -460,7 +460,10 @@ String no formato HTML com as imagens dos símbolos @@ -460,7 +460,10 @@ String no formato HTML com as imagens dos símbolos
460 $f = fopen($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc","w"); 460 $f = fopen($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc","w");
461 if ($tipo == 2){$t="simpol.map";} 461 if ($tipo == 2){$t="simpol.map";}
462 if ($tipo == 0){$t="simpt.map";} 462 if ($tipo == 0){$t="simpt.map";}
463 - if ($tipo == 1){$t="simlin.map";} 463 + if ($tipo == 1){
  464 + $t="simlin.map";
  465 + $tamanho = $tamanho / 4;
  466 + }
464 if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) 467 if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN'))
465 {$mapatemp = ms_newMapObj($this->localaplicacao."\\aplicmap\\".$t);} 468 {$mapatemp = ms_newMapObj($this->localaplicacao."\\aplicmap\\".$t);}
466 else 469 else
@@ -480,7 +483,7 @@ String no formato HTML com as imagens dos símbolos @@ -480,7 +483,7 @@ String no formato HTML com as imagens dos símbolos
480 $c = $tematemp->getClass(0); 483 $c = $tematemp->getClass(0);
481 $e = $c->getstyle(0); 484 $e = $c->getstyle(0);
482 $e->set("symbolname",$nomes); 485 $e->set("symbolname",$nomes);
483 - $e->set("size",5); 486 + $e->set("size",$tamanho);
484 $ico = $c->createLegendIcon(40,40); 487 $ico = $c->createLegendIcon(40,40);
485 $nimg = $ico->saveWebImage(); 488 $nimg = $ico->saveWebImage();
486 $pat = $this->mapa->web->imageurl; 489 $pat = $this->mapa->web->imageurl;