Changing layer templates on the fly {Scanned} {Scanned}

Siki Zoltan siki at AGT.BME.HU
Wed Nov 2 13:31:50 PST 2005


Hi,

I suppose you use version 4.6.
You may heve header in the web section of the map file, the template
variable called map_web_header. You may have headers for each queryable
layer, the template variable for it map_layername_header. You should 
substitute layername with the name of your layer.

Bye
Zoltan


On Wed, 2 Nov 2005, Xin wrote:

> Hi,
> 
> I'm using MapServer 2.6 via CGI, it's working really well. After reading
> about changing attributes on-the-fly via CGI parameters I've been hooked on
> it. Changing everything from layer tolerance (map_mylayer_tolerance=10) to
> templates (map_mylayer_template=file.html). But for the life of me, I can't
> figure out how to change header templates! It simply doesn't work.
> 
> I've tried searching in the mailing list, but there is nothing.
> map_mylayer_header=header.html just doesn't work. Specifying the header
> attribute in the mapfile works file, but I'd rather change it dynamically. I
> realise the layer portion is case-sensitive, so that's not the problem.
> 
> Your help is greatly appreciated.
> 
> Xin
> 



More information about the MapServer-users mailing list