<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I did something similar by hacking drawmap.php with
this function:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>function
setMyLineLayerData($oMapSession)<BR>{<BR>$layerobj =
$oMapSession->oMap->getLayerByName("lineslayer");<BR>$query = "geomline
from (SELECT geomline,evorder,linedays,oid FROM
a2_eventpointandline(".calcDistFromScale($oMapSession->oMap->scale)",".$_SESSION["sCharId"]."))
AS new_table USING UNIQUE oid USING SRID=4269";<BR>$layerobj->set("data",
$query);<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I call the function somewhere in</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> /*
============================================================================<BR> *
Re-instate the previous map state<BR> *
=========================================================================
*/<BR>@$oMapSession->restoreState( $szCurrentState, $szMapName, $szMapPath
);</FONT></DIV>
<DIV><FONT face=Arial size=2>if
(isset($_SESSION["sCharId"]))<BR>{<BR>
setMyPointLayerData($oMapSession);<BR>
setMySmallPointLayerData($oMapSession);<BR>
setMyLineLayerData($oMapSession);<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I set the SESSION variable in my .phtml file just
before the CWCExecute:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if ( isset($_GET["charid"]) )<BR>
$_SESSION['sCharId'] = $_GET["charid"];</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>$oApp->CWCExecute();<BR>?><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hope that help,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Pierre</DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>