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
@@ -1256,6 +1256,7 @@ Adiciona LABEL em uma classe de um tema | @@ -1256,6 +1256,7 @@ Adiciona LABEL em uma classe de um tema | ||
1256 | } | 1256 | } |
1257 | else{ | 1257 | else{ |
1258 | $s = "CLASS LABEL TEXT '".$texto."' END END"; | 1258 | $s = "CLASS LABEL TEXT '".$texto."' END END"; |
1259 | + //$s = "CLASS LABEL TEXT '[".$texto."]' END END"; | ||
1259 | $novac->updateFromString($s); | 1260 | $novac->updateFromString($s); |
1260 | } | 1261 | } |
1261 | } | 1262 | } |
classesphp/classe_toponimia.php
@@ -176,7 +176,7 @@ $novotema sim|nao Cria um novo tema ou não, nesse último caso, a t | @@ -176,7 +176,7 @@ $novotema sim|nao Cria um novo tema ou não, nesse último caso, a t | ||
176 | 176 | ||
177 | Retorno: | 177 | Retorno: |
178 | 178 | ||
179 | -{string} - c�digo do layer criado | 179 | +{string} - codigo do layer criado |
180 | */ | 180 | */ |
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") | 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,7 +216,6 @@ Retorno: | ||
216 | } | 216 | } |
217 | else | 217 | else |
218 | { | 218 | { |
219 | - //$novac = $this->layer->getclass(0); | ||
220 | $nomer = $this->layer->name; | 219 | $nomer = $this->layer->name; |
221 | } | 220 | } |
222 | if(!($this->vi >= 60200)){ | 221 | if(!($this->vi >= 60200)){ |
@@ -226,7 +225,6 @@ Retorno: | @@ -226,7 +225,6 @@ Retorno: | ||
226 | for ($i=0; $i < $nclasses; ++$i){ | 225 | for ($i=0; $i < $nclasses; ++$i){ |
227 | $novac = $this->layer->getclass($i); | 226 | $novac = $this->layer->getclass($i); |
228 | if($this->vi >= 60200){ | 227 | if($this->vi >= 60200){ |
229 | - //$indiceLabel = $novac->addLabel(new labelObj()); | ||
230 | $s = "CLASS LABEL TEXT '[".$item."]' END END"; | 228 | $s = "CLASS LABEL TEXT '[".$item."]' END END"; |
231 | $novac->updateFromString($s); | 229 | $novac->updateFromString($s); |
232 | $label = $novac->getLabel($indiceLabel); | 230 | $label = $novac->getLabel($indiceLabel); |
@@ -279,8 +277,6 @@ Retorno: | @@ -279,8 +277,6 @@ Retorno: | ||
279 | corE($label,$cor,"color"); | 277 | corE($label,$cor,"color"); |
280 | corE($label,$fundo,"backgroundcolor"); | 278 | corE($label,$fundo,"backgroundcolor"); |
281 | corE($label,$sombra,"backgroundshadowcolor",$sombrax,$sombray); | 279 | corE($label,$sombra,"backgroundshadowcolor",$sombrax,$sombray); |
282 | - //$label->set("backgroundshadowsizex",$sombrax); | ||
283 | - //$label->set("backgroundshadowsizey",$sombray); | ||
284 | corE($label,$outlinecolor,"outlinecolor"); | 280 | corE($label,$outlinecolor,"outlinecolor"); |
285 | corE($label,$shadowcolor,"shadowcolor"); | 281 | corE($label,$shadowcolor,"shadowcolor"); |
286 | $label->set("shadowsizex",$shadowsizex); | 282 | $label->set("shadowsizex",$shadowsizex); |
ferramentas/legenda/exec.php
@@ -67,7 +67,7 @@ Adiciona LABEL em uma classe de um layer | @@ -67,7 +67,7 @@ Adiciona LABEL em uma classe de um layer | ||
67 | include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); | 67 | include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
68 | $m = new Temas($map_file,$tema); | 68 | $m = new Temas($map_file,$tema); |
69 | $l = $m->mapa->getlayerbyname($tema); | 69 | $l = $m->mapa->getlayerbyname($tema); |
70 | - if(empty($item)) | 70 | + if(empty($_GET["item"])) |
71 | {$retorno = "erro";} | 71 | {$retorno = "erro";} |
72 | else{ | 72 | else{ |
73 | //$l->set("labelitem",$item); | 73 | //$l->set("labelitem",$item); |