[mapserver-users] referenceMapObj - PHP

Daniel Morissette morissette at dmsolutions.ca
Wed Nov 21 16:27:43 EST 2001


"Hankley, Chip" wrote:
> 
> I've tried several variations on the following... ($map is set)
> 
>   $refmap=$map->referenceMapObj;
>   $refmap->set('width', 100);
> 
> or
> 
>   $map->referenceMapObj->set('width', 100);
> 
> ...both of these result in Fatal error: Call to a member function on a
> non-object in ...
> 

The class member is actually called "reference", so the following should
work:

  $refmap=$map->reference;
  $refmap->set('width', 100);
or
  $map->reference->set('width', 100);

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the mapserver-users mailing list