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,10 +100,10 @@ function iniciaMapa() | ||
| 100 | $nclasses = $layer->numclasses; | 100 | $nclasses = $layer->numclasses; |
| 101 | for($ii=0;$ii<$nclasses;++$ii){ | 101 | for($ii=0;$ii<$nclasses;++$ii){ |
| 102 | $classe = $layer->getclass($ii); | 102 | $classe = $layer->getclass($ii); |
| 103 | - $nestilos = $classe; | 103 | + $nestilos = $classe->numstyles; |
| 104 | for($j=0;$j<$nestilos;++$j){ | 104 | for($j=0;$j<$nestilos;++$j){ |
| 105 | $estilo = $classe->getstyle($j); | 105 | $estilo = $classe->getstyle($j); |
| 106 | - $estilo->set("symbolname","pt1"); | 106 | + $estilo->set("symbolname","p7"); |
| 107 | $estilo->set("size","2"); | 107 | $estilo->set("size","2"); |
| 108 | } | 108 | } |
| 109 | } | 109 | } |
| @@ -122,9 +122,7 @@ function iniciaMapa() | @@ -122,9 +122,7 @@ function iniciaMapa() | ||
| 122 | $of->set("driver","AGG/PNG"); | 122 | $of->set("driver","AGG/PNG"); |
| 123 | } | 123 | } |
| 124 | else | 124 | else |
| 125 | - { | ||
| 126 | - $of = $m->outputformat; | ||
| 127 | - } | 125 | + {$of = $m->outputformat;} |
| 128 | $of->set("transparent",MS_ON); | 126 | $of->set("transparent",MS_ON); |
| 129 | $m->save($map_file); | 127 | $m->save($map_file); |
| 130 | } | 128 | } |