[Chameleon] Beginner needs help.

Kevin Ruland kruland at ku.edu
Thu Jul 14 11:38:23 EDT 2005


Hi all.

I'm a complete javascript/DHTML rookie but after seeing the fantastic
interfaces developed using Chameleon at OSG'05, I thought it would be
worth the big dive.

I have successfully installed Chameleon 2.2 and have made the samples
work.  My goal was to have a fixed base map containing colored area map
and some feature data such as state boundaries, major roads & rivers
etc, then allow the user to overlay different wms based layers.

I started with sample_enhanced and changed it to use the JSAPI.  I then
added a simple button did this:

goCWCJSAPI.oMap.AddWMSLayer( "Overlay", "Sample Overlay", "epsg:4326",
"http://localhost/maps/cgi-bin/mywms.py", "1.1.1", "gif");

There are two problems now:

First, the Legend is refreshed but it has double entries for all the
layers in the base map file.

Second, I'm getting intermitent core dumps.  I was running php 4.3 as an
apache module and using php_mapscript 4.6.  I have changed to using php
as a cgi using the little helper script to set the proper environment
var.  But this only changed the log messages from "unexpected end" to
"php segfault".

What is the proper way to add a layer to a map dynamically?  Any help
with the seg fault would also be appreciated.

Thanks

Kevin Ruland
University of Kansas.


More information about the Chameleon mailing list