<!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.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Kevin,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Not sure about the legend problem, but as far as I
know, php_mapscript is not expected to run well as a module. You also have to
make sure you use the correct version of php. I think mapscript 4.6 was compiled
against php 4.3.11, so best make sure that that is what you have.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The log messages you have, are they from your php
log, or your webserver log?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Kevin Ruland<BR>Sent:
14 July 2005 23:38<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
[Chameleon] Beginner needs help.</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Hi all.</DIV>
<DIV> </DIV>
<DIV>I'm a complete javascript/DHTML rookie but after seeing the
fantastic<BR>interfaces developed using Chameleon at OSG'05, I thought it would
be<BR>worth the big dive.</DIV>
<DIV> </DIV>
<DIV>I have successfully installed Chameleon 2.2 and have made the
samples<BR>work. My goal was to have a fixed base map containing colored
area map<BR>and some feature data such as state boundaries, major roads &
rivers<BR>etc, then allow the user to overlay different wms based layers.</DIV>
<DIV> </DIV>
<DIV>I started with sample_enhanced and changed it to use the JSAPI. I
then<BR>added a simple button did this:</DIV>
<DIV> </DIV>
<DIV>goCWCJSAPI.oMap.AddWMSLayer( "Overlay", "Sample Overlay",
"epsg:4326",<BR>"<A
href="http://localhost/maps/cgi-bin/mywms.py">http://localhost/maps/cgi-bin/mywms.py</A>",
"1.1.1", "gif");</DIV>
<DIV> </DIV>
<DIV>There are two problems now:</DIV>
<DIV> </DIV>
<DIV>First, the Legend is refreshed but it has double entries for all
the<BR>layers in the base map file.</DIV>
<DIV> </DIV>
<DIV>Second, I'm getting intermitent core dumps. I was running php 4.3 as
an<BR>apache module and using php_mapscript 4.6. I have changed to using
php<BR>as a cgi using the little helper script to set the proper
environment<BR>var. But this only changed the log messages from
"unexpected end" to<BR>"php segfault".</DIV>
<DIV> </DIV>
<DIV>What is the proper way to add a layer to a map dynamically? Any
help<BR>with the seg fault would also be appreciated.</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Kevin Ruland<BR>University of
Kansas.<BR>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV></BODY></HTML>