[Mapserver-users] Set scalebar properties

Dylan Keon keon at nacse.org
Thu May 22 09:45:11 PDT 2003


Stefan Schwarzer wrote:
> Hi list,
> 
> I would like to change the size of my scalebar dynamically in 
> MapScript/PHP, but couldn't find anything in the mailing list archives. 
> Does someone has an idea? Something like
>  $scalebar = $map -> scalebarobj();
>  $scalebar = set("width", 200);

Try this:

$map->{'scalebar'}->set('width', 200);

--Dylan




More information about the MapServer-users mailing list