<!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.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>List,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I'm pretty new to Chameleon and am not sure where
the best place is to apply PHP/MapScript logic within the Chameleon
framework. Armed with the information gained from the MapServer User's
Meeting last month, I was able to get my interface up and styled with relative
ease. Now I have to change the data content (i.e. name and data source of
a layer) based on user interaction with a pull<SPAN
class=375223115-01072004>-</SPAN>down form field. I'm pretty comfortable
with how to do this in P<SPAN class=375223115-01072004>H</SPAN>P/MapScript (see
my basic approach below), but not knowing much about how map session and state
information is maintained with Chameleon, I'm not sure where I should go with
this.</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>$nLayers=$oApp->moMapSession->oMap->numlayers;</DIV>
<DIV> </DIV>
<DIV>for($i=0; $i<$nLayers; $i++)<BR>{<BR>
$oLayer=$oApp->moMapSession->oMap->getlayer($i);<BR>
if ($oLayer->name == 'Original_Layer_Name')
{<BR>
$oLayer->set("name","User_Defined_Layer_Name");<BR>
$oLayer->set("data","/data1/rest_of_path_to_data");<BR>
}<BR>}</DIV>
<DIV> </DIV>
<DIV><BR>If there doesn't already exist a widget to help me perform this task,
perhaps a custom widget is the answer, but again without more knowledge of the
anatomy of widgets and how to develop them, I wouldn't know where to
start. A push in the right direction would be very much appreciated.
I'm excited to get past the initial learning curve for utilizing all the
potential of Chameleon and hope this exercise will bring me closer.</DIV>
<DIV> </DIV>
<DIV>Thanks,<BR>Shon </DIV>
<DIV></FONT><FONT face="Times New Roman"
size=2>________________________________________<BR>Shon M. Doseck<BR>GIS
Analyst<BR>Pangaea Information Technologies, Ltd.<BR>Tel. 312.986.9471<BR>Cell.
312.804.9650<BR>Fax. 312.986.9477<BR><U></U></FONT><U><FONT
face="Times New Roman" color=#0000ff size=2><A
href="http://www.pangaeatech.com/"
target=_blank>http://www.pangaeatech.com</A></FONT></U><BR><FONT
face="Times New Roman" size=2>________________________________________</FONT>
</FONT></DIV></DIV>
<DIV> </DIV></BODY></HTML>