[PHP/MapScript]: How to change size of query map

Mark Cave-Ayland m.cave-ayland at WEBBASED.CO.UK
Wed Feb 22 10:29:32 EST 2006


> -----Original Message-----
> From: Sebastian Albrecht [mailto:albrecht at fielax.de] 
> Sent: 22 February 2006 14:58
> To: Mark Cave-Ayland
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] [PHP/MapScript]: How to 
> change size of query map
> 
> Hello Mark,
> 
> thanks for your reply.
> 
> > $mapobj->querymap->set("width", 100);
> > $mapobj->querymap->set("height", 100);
> 
> I get a fatal error: Call to a member function set() on a non-object
> 
> If I var_dump the $mapobj there is no "querymap" object, too, 
> but I suppose this has to do with my MapServer version 
> (4.6.1). I think the querymapObj is supported since 4.8.1. 
> And that version does not work ATM (my other posting).
> 
> Best regards
> 
> Sebastian


Hi Sebastian,

Yes, the querymapObj is only present in 4.8. In terms of debugging your
problem with 4.8, can you isolate the problem? For example, does it still
occur if you change the output format to JPEG temporarily? Also have you
tried enable debugging (setting the webObj log property to a filename and
then setting the mapObj debug property to true)? This should give you more
information as to why Mapserver is failing.


Kind regards,

Mark.

------------------------
WebBased Ltd
17 Research Way
Plymouth
PL6 8BT

T: +44 (0)1752 797131
F: +44 (0)1752 791023

http://www.webbased.co.uk   
http://www.infomapper.com
http://www.swtc.co.uk  

This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person.



More information about the mapserver-users mailing list