[Mapserver-users] querymap object in php/mapscript

Daniel Morissette dmorissette at dmsolutions.ca
Thu May 27 11:12:48 EDT 2004


Joukje de Haan wrote:
> Hello,
> 
> I'd like to change the size of the querymap object using php. I can't 
> find any info on the querymap object in the class reference. So I tried 
> something like this:
> 
> $qmap = $map->querymap;
> $qmap->width = 200;
> $qmap->height = 150;
> 
> It doesn't give me any errors, but it doesn't have any effect either ;-)
> $map->drawQuery still returns an image of the size as it is written in 
> the mapfile. Am I missing something?
> 

You have to use the set() method to set any class member variables in 
PHP MapScript:

   $qmap->set("width", 200);
   $qmap->set("height", 150);

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




More information about the mapserver-users mailing list