[Mapserver-users] Set scalebar properties

Daniel Morissette morissette at dmsolutions.ca
Sun May 25 16:46:39 EDT 2003


Dylan Keon wrote:
> 
> Stefan Schwarzer wrote:
> > 
> > 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);
> 

Does the Perl hash table notation ($map->{'scalebar'}->...) work with
PHP objects?  I never tried it myself, but if the above doesn't work
then try:

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

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-users mailing list