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,7 +776,7 @@ $wkt - boolean indicando se $xy e um WKT | ||
| 776 | //$c->set("status",MS_DELETE); | 776 | //$c->set("status",MS_DELETE); |
| 777 | $pinlayer->setmetadata("TEMA",$texto); | 777 | $pinlayer->setmetadata("TEMA",$texto); |
| 778 | $pinlayer->setmetadata("tiles","nao"); | 778 | $pinlayer->setmetadata("tiles","nao"); |
| 779 | - $pinlayer->set("type",MS_LAYER_ANNOTATION); | 779 | + $pinlayer->set("type",MS_LAYER_POINT); |
| 780 | $pinlayer->set("opacity","100"); | 780 | $pinlayer->set("opacity","100"); |
| 781 | break; | 781 | break; |
| 782 | } | 782 | } |
| @@ -820,6 +820,7 @@ $wkt - boolean indicando se $xy e um WKT | @@ -820,6 +820,7 @@ $wkt - boolean indicando se $xy e um WKT | ||
| 820 | } | 820 | } |
| 821 | $this->adicionaLabel($novac,$wrap,$fonte,$tamanho,$angulo,$fundo,$sombra,$cor,$outlinecolor,$shadowcolor,$shadowsizex,$shadowsizey,$force,$mindistance,$minfeaturesize,$offsetx,$offsety,$partials,$position,""); | 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 | $pinlayer->addfeature($shp); | 824 | $pinlayer->addfeature($shp); |
| 824 | if($nomeTema != ""){ | 825 | if($nomeTema != ""){ |
| 825 | $pinlayer->setmetadata("tema",$nomeTema); | 826 | $pinlayer->setmetadata("tema",$nomeTema); |
| @@ -1211,7 +1212,6 @@ Adiciona LABEL em uma classe de um tema | @@ -1211,7 +1212,6 @@ Adiciona LABEL em uma classe de um tema | ||
| 1211 | $novac->updateFromString($s); | 1212 | $novac->updateFromString($s); |
| 1212 | } | 1213 | } |
| 1213 | } | 1214 | } |
| 1214 | - | ||
| 1215 | if($this->vi >= 60300){ | 1215 | if($this->vi >= 60300){ |
| 1216 | $label = $novac->getLabel(0); | 1216 | $label = $novac->getLabel(0); |
| 1217 | } | 1217 | } |
| @@ -1223,14 +1223,15 @@ Adiciona LABEL em uma classe de um tema | @@ -1223,14 +1223,15 @@ Adiciona LABEL em uma classe de um tema | ||
| 1223 | } | 1223 | } |
| 1224 | if($fonte != "bitmap") | 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 | $label->set("font",$fonte); | 1228 | $label->set("font",$fonte); |
| 1228 | $label->set("size",$tamanho); | 1229 | $label->set("size",$tamanho); |
| 1229 | } | 1230 | } |
| 1230 | else | 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 | $t = MS_TINY; | 1235 | $t = MS_TINY; |
| 1235 | if ($tamanho > 5 ){ | 1236 | if ($tamanho > 5 ){ |
| 1236 | $t = MS_TINY; | 1237 | $t = MS_TINY; |