change layer template on the fly {Scann ed}
Jean-Francois Doyon
Jean-Francois.Doyon at CCRS.NRCAN.GC.CA
Mon Nov 29 06:42:09 PST 2004
Zoltan,
To change the template used by the layer on the fly in a request, one of
these should work:
&map_parcel_template=mytemplate.html
If that doesn't work, you may need to set TEMPLATEPATTERN (As documented).
Inserting [map_layer_parcel_template] into your main template shouldn't work
however.
The template set for a layer is used when in query or nquery mode, in
combination with the header and footer.
J.F.
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Siki Zoltan
Sent: November 28, 2004 8:08 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] change layer template on the fly
{Scanned}
Hi,
I only try to insert [map_layer_parcel_template] into my main html
template, and other variants.
It works for several cgi variables, is this different?
Tanx
Zoltan
On Sat, 27 Nov 2004, Tyler Mitchell wrote:
> Can you show us exactly how you are using, i.e. an example URL.
>
> Tyler
>
> On November 26, 2004 04:37 pm, Siki Zoltan wrote:
> > Hi,
> >
> > I would like to change the layer template on the fly, using cgi
mapserver.
> > Is it possible? I can't find the cgi variable name.
> > The layer name is parcel, I tried
> > layer_parcel_template
> > parcel_template
> > without success.
> >
> > Any idea
> >
> > Tanx
> > Zoltan
>
More information about the MapServer-users
mailing list