From 5eaf5b2c314a713022c9553f7eb6c49cff28b858 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sat, 17 Oct 2009 02:30:38 +0000 Subject: [PATCH] Correção na inicialização das interfaces GE e GM --- classesphp/mapa_inicia.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/classesphp/mapa_inicia.php b/classesphp/mapa_inicia.php index 0623b5c..d3a58e4 100644 --- a/classesphp/mapa_inicia.php +++ b/classesphp/mapa_inicia.php @@ -100,10 +100,10 @@ function iniciaMapa() $nclasses = $layer->numclasses; for($ii=0;$ii<$nclasses;++$ii){ $classe = $layer->getclass($ii); - $nestilos = $classe; + $nestilos = $classe->numstyles; for($j=0;$j<$nestilos;++$j){ $estilo = $classe->getstyle($j); - $estilo->set("symbolname","pt1"); + $estilo->set("symbolname","p7"); $estilo->set("size","2"); } } @@ -122,9 +122,7 @@ function iniciaMapa() $of->set("driver","AGG/PNG"); } else - { - $of = $m->outputformat; - } + {$of = $m->outputformat;} $of->set("transparent",MS_ON); $m->save($map_file); } -- libgit2 0.21.2