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

Mark Cave-Ayland m.cave-ayland at WEBBASED.CO.UK
Wed Feb 22 09:42:47 EST 2006


> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sebastian Albrecht
> Sent: 22 February 2006 12:10
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] [PHP/MapScript]: How to change 
> size of query map
> 
> Hello everybody,
> 
> how can I change the size of a query map in my PHP/Mapscript 
> application. I would like to query multiple features and 
> generate a list of small query map images for every feature.
> 
> In the doc there's a querymapObj described but no method or 
> way to get it from the current mapObj.
> 
> Is there another way to change the size of the query map 
> except changing the map file or using a second map file?
> 
> Best regards
> 
> Sebastian


Hi Sebastian,

It looks like the documentation is missing an entry for the queryMapObj in
the MapObj class. You should be to set the query map size using something
like the following:

	$mapobj->querymap->set("width", 100);
	$mapobj->querymap->set("height", 100);


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