Commit 5eaf5b2c314a713022c9553f7eb6c49cff28b858
1 parent
3273debf
Exists in
master
and in
7 other branches
Correção na inicialização das interfaces GE e GM
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
classesphp/mapa_inicia.php
| ... | ... | @@ -100,10 +100,10 @@ function iniciaMapa() |
| 100 | 100 | $nclasses = $layer->numclasses; |
| 101 | 101 | for($ii=0;$ii<$nclasses;++$ii){ |
| 102 | 102 | $classe = $layer->getclass($ii); |
| 103 | - $nestilos = $classe; | |
| 103 | + $nestilos = $classe->numstyles; | |
| 104 | 104 | for($j=0;$j<$nestilos;++$j){ |
| 105 | 105 | $estilo = $classe->getstyle($j); |
| 106 | - $estilo->set("symbolname","pt1"); | |
| 106 | + $estilo->set("symbolname","p7"); | |
| 107 | 107 | $estilo->set("size","2"); |
| 108 | 108 | } |
| 109 | 109 | } |
| ... | ... | @@ -122,9 +122,7 @@ function iniciaMapa() |
| 122 | 122 | $of->set("driver","AGG/PNG"); |
| 123 | 123 | } |
| 124 | 124 | else |
| 125 | - { | |
| 126 | - $of = $m->outputformat; | |
| 127 | - } | |
| 125 | + {$of = $m->outputformat;} | |
| 128 | 126 | $of->set("transparent",MS_ON); |
| 129 | 127 | $m->save($map_file); |
| 130 | 128 | } | ... | ... |