Commit 0f736f6c73e9646a37e36c749868cd8ef96079e8
1 parent
b2c71900
Exists in
master
and in
7 other branches
--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 | 452 | return: |
453 | 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 | 457 | if ($tipo == 3){$tipo = 2;} //tipo raster |
458 | 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 | 460 | $f = fopen($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc","w"); |
461 | 461 | if ($tipo == 2){$t="simpol.map";} |
462 | 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 | 467 | if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) |
465 | 468 | {$mapatemp = ms_newMapObj($this->localaplicacao."\\aplicmap\\".$t);} |
466 | 469 | else |
... | ... | @@ -480,7 +483,7 @@ String no formato HTML com as imagens dos símbolos |
480 | 483 | $c = $tematemp->getClass(0); |
481 | 484 | $e = $c->getstyle(0); |
482 | 485 | $e->set("symbolname",$nomes); |
483 | - $e->set("size",5); | |
486 | + $e->set("size",$tamanho); | |
484 | 487 | $ico = $c->createLegendIcon(40,40); |
485 | 488 | $nimg = $ico->saveWebImage(); |
486 | 489 | $pat = $this->mapa->web->imageurl; | ... | ... |