Commit 5c3948eb8ad3a6537302922e7bc30994141231f4
1 parent
d06fa0b4
Exists in
master
and in
7 other branches
Alteração na opção de cálculo do tamanho do símbolo de cada classe, passando a d…
…efinir o nome do símbolo (symbolname) nos casos de estilos sem nome.
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
classesphp/classe_alteraclasse.php
| ... | ... | @@ -428,6 +428,15 @@ Calcula o tamanho dos estilos das classes, alterando o tamanho do símbolo. |
| 428 | 428 | $classe = $this->layer->getclass($i); |
| 429 | 429 | $estilo = $classe->getstyle(0); |
| 430 | 430 | $estilo->set("size",($i+1)); |
| 431 | + if ($estilo->symbolname == "") | |
| 432 | + { | |
| 433 | + if ($this->layer->type == MS_LAYER_LINE) | |
| 434 | + {$estilo->set("symbolname","linha");} | |
| 435 | + if ($this->layer->type == MS_LAYER_POINT) | |
| 436 | + {$estilo->set("symbolname","ponto");} | |
| 437 | + if ($this->layer->type == MS_LAYER_POLYGON) | |
| 438 | + {$estilo->set("symbolname","p4");} | |
| 439 | + } | |
| 431 | 440 | } |
| 432 | 441 | return("ok"); |
| 433 | 442 | } | ... | ... |