[Mapserver-users] mapserver templates

Eric Bridger eric at gomoos.org
Tue Mar 18 00:28:00 PST 2003


Grant,
I don't think [layers] will work in a template file.
But [layername_select]  or [layername_check] will be set correctly by
mapserv.  Here is an example from the tutorial:

<select multiple name="layer">
        <option value="water" [water_select]> Water Features
        <option value="roads" [roads_select]> Transportation
        <option value="states" [states_select]> State Boundaries
        <option value="state_label" [state_label_select]> State Labels
      </select>

You can do your form however you like, but the end result for the form
submission must be &layer=layername1&layer=layername2 ... etc. or 
&layers=layername1+layername2+layername3 etc.  When the form is parsed 
[layername1_select] will be set to "SELECTED" and [layername1_check] 
will be set to "CHECKED".

Eric Bridger
www.gomoos.org


On Mon, 2003-03-17 at 22:19, Grant Howarth wrote:
> I am trying to use a template to get information about mapserver and a mapfile.
> 
> my template looks simillar to the following:
> [mapsize] [mapwidth] [layers] [center]
> 
> everything seems to work except for the layers which is the one i am most interested in.
> 
> my .map file has a web entry that references the template
> 
> WEB
>   TEMPLATE "my_template_name"
> END
> 
> my cgi call looks similar to the following:
> http://sdb/cgi-bin/mapserv?map=/web/sdb/packages/dv-mapping/map/my.map 
> 
> 
> Is there something that i am missing in order to get a list of the layernames in the .map file?
> Am i approaching this completely wrong?
> 
> Thanks in advance.
> - Grant
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the MapServer-users mailing list