Commit 8913d43807231343b42133f5958b33e53b4327e2
1 parent
d65eaa3d
Exists in
master
and in
7 other branches
Correção na inclusão de labels em classes no editor de legenda
Showing
5 changed files
with
3 additions
and
6 deletions
Show diff stats
classesphp/classe_temas.php
classesphp/classe_toponimia.php
... | ... | @@ -176,7 +176,7 @@ $novotema sim|nao Cria um novo tema ou não, nesse último caso, a t |
176 | 176 | |
177 | 177 | Retorno: |
178 | 178 | |
179 | -{string} - c�digo do layer criado | |
179 | +{string} - codigo do layer criado | |
180 | 180 | */ |
181 | 181 | function criaToponimia($item,$position,$partials,$offsetx,$offsety,$minfeaturesize,$mindistance,$force,$shadowcolor,$shadowsizex,$shadowsizey,$outlinecolor,$cor,$sombray,$sombrax,$sombra,$fundo,$angulo,$tamanho,$fonte,$tipo,$wrap,$novotema="sim") |
182 | 182 | { |
... | ... | @@ -216,7 +216,6 @@ Retorno: |
216 | 216 | } |
217 | 217 | else |
218 | 218 | { |
219 | - //$novac = $this->layer->getclass(0); | |
220 | 219 | $nomer = $this->layer->name; |
221 | 220 | } |
222 | 221 | if(!($this->vi >= 60200)){ |
... | ... | @@ -226,7 +225,6 @@ Retorno: |
226 | 225 | for ($i=0; $i < $nclasses; ++$i){ |
227 | 226 | $novac = $this->layer->getclass($i); |
228 | 227 | if($this->vi >= 60200){ |
229 | - //$indiceLabel = $novac->addLabel(new labelObj()); | |
230 | 228 | $s = "CLASS LABEL TEXT '[".$item."]' END END"; |
231 | 229 | $novac->updateFromString($s); |
232 | 230 | $label = $novac->getLabel($indiceLabel); |
... | ... | @@ -279,8 +277,6 @@ Retorno: |
279 | 277 | corE($label,$cor,"color"); |
280 | 278 | corE($label,$fundo,"backgroundcolor"); |
281 | 279 | corE($label,$sombra,"backgroundshadowcolor",$sombrax,$sombray); |
282 | - //$label->set("backgroundshadowsizex",$sombrax); | |
283 | - //$label->set("backgroundshadowsizey",$sombray); | |
284 | 280 | corE($label,$outlinecolor,"outlinecolor"); |
285 | 281 | corE($label,$shadowcolor,"shadowcolor"); |
286 | 282 | $label->set("shadowsizex",$shadowsizex); | ... | ... |
ferramentas/legenda/exec.php
... | ... | @@ -67,7 +67,7 @@ Adiciona LABEL em uma classe de um layer |
67 | 67 | include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
68 | 68 | $m = new Temas($map_file,$tema); |
69 | 69 | $l = $m->mapa->getlayerbyname($tema); |
70 | - if(empty($item)) | |
70 | + if(empty($_GET["item"])) | |
71 | 71 | {$retorno = "erro";} |
72 | 72 | else{ |
73 | 73 | //$l->set("labelitem",$item); | ... | ... |