[Chameleon] scalebar widget/ print friendly page/session

Delfos, Jacob Jacob.Delfos at maunsell.com
Tue Jun 12 19:59:13 EDT 2007


Hi Brent,
 
Whatever you do after your widget changes the style of the scalebar gets
applied to your session in general once you use this command:
 
$_SESSION['gszCurrentState'] = $oMapSession->saveState();
 
So either avoid having to save the changes to your session, or revert
whatever it is you did as soon as your image has been produced, and then
save it again.
 
regards,
 
Jacob
 
 


________________________________

	From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Brent Lund
	Sent: 12 June 2007 23:22
	To: chameleon at lists.maptools.org
	Subject: [Chameleon] scalebar widget/ print friendly
page/session
	
	

	I have a page where the scalebar background is non-white and the
scalebar text is white.   The user has the option to view a "Print
Friendly" page where the scalebar has black text.   The problem is after
viewing the "PF" page, the scalebar on the original page takes on the
properties of the "PF" page.   I know the session variables are being
changed - is there a way to either prevent or undo the changes?

	 

	Thanks,

	 

	Brent Lund

	 

	 



This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20070613/7d69d731/attachment.html


More information about the Chameleon mailing list