Commit 21ad100a27e5a662fa8df4446d6f229669afbd6d
1 parent
1ce49275
Exists in
master
and in
7 other branches
Adaptação da opção de inserir texto para a versão 7 do Mapserver
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
classesphp/classe_temas.php
| ... | ... | @@ -776,7 +776,7 @@ $wkt - boolean indicando se $xy e um WKT |
| 776 | 776 | //$c->set("status",MS_DELETE); |
| 777 | 777 | $pinlayer->setmetadata("TEMA",$texto); |
| 778 | 778 | $pinlayer->setmetadata("tiles","nao"); |
| 779 | - $pinlayer->set("type",MS_LAYER_ANNOTATION); | |
| 779 | + $pinlayer->set("type",MS_LAYER_POINT); | |
| 780 | 780 | $pinlayer->set("opacity","100"); |
| 781 | 781 | break; |
| 782 | 782 | } |
| ... | ... | @@ -820,6 +820,7 @@ $wkt - boolean indicando se $xy e um WKT |
| 820 | 820 | } |
| 821 | 821 | $this->adicionaLabel($novac,$wrap,$fonte,$tamanho,$angulo,$fundo,$sombra,$cor,$outlinecolor,$shadowcolor,$shadowsizex,$shadowsizey,$force,$mindistance,$minfeaturesize,$offsetx,$offsety,$partials,$position,""); |
| 822 | 822 | } |
| 823 | + | |
| 823 | 824 | $pinlayer->addfeature($shp); |
| 824 | 825 | if($nomeTema != ""){ |
| 825 | 826 | $pinlayer->setmetadata("tema",$nomeTema); |
| ... | ... | @@ -1211,7 +1212,6 @@ Adiciona LABEL em uma classe de um tema |
| 1211 | 1212 | $novac->updateFromString($s); |
| 1212 | 1213 | } |
| 1213 | 1214 | } |
| 1214 | - | |
| 1215 | 1215 | if($this->vi >= 60300){ |
| 1216 | 1216 | $label = $novac->getLabel(0); |
| 1217 | 1217 | } |
| ... | ... | @@ -1223,14 +1223,15 @@ Adiciona LABEL em uma classe de um tema |
| 1223 | 1223 | } |
| 1224 | 1224 | if($fonte != "bitmap") |
| 1225 | 1225 | { |
| 1226 | - $label->set("type",MS_TRUETYPE); | |
| 1226 | + //para funcionar na versao 7 do mapserver | |
| 1227 | + $label->updateFromString("LABEL type truetype END"); | |
| 1227 | 1228 | $label->set("font",$fonte); |
| 1228 | 1229 | $label->set("size",$tamanho); |
| 1229 | 1230 | } |
| 1230 | 1231 | else |
| 1231 | 1232 | { |
| 1232 | - $label->set("type",MS_BITMAP); | |
| 1233 | - //$label->set("font",$fonte); | |
| 1233 | + //para funcionar na versao 7 do mapserver | |
| 1234 | + $label->updateFromString("LABEL type bitmap END"); | |
| 1234 | 1235 | $t = MS_TINY; |
| 1235 | 1236 | if ($tamanho > 5 ){ |
| 1236 | 1237 | $t = MS_TINY; | ... | ... |