[Mapserver-users] Mapserver layers selection

Björn Platzen bplatzen@sosnetz.de
Fri, 31 Jan 2003 09:24:02 +0100


Hello Alessandro,

> I've a .map file that contains various layers. How can I do to allow the
> user (via web) to select some layer and display only these?

You could provide a <select> in your template-file like:

<select multiple name="layer">
        <option value="water" selected> Water Features 
        <option value="roads"> Transportation 
        <option value="states" selected> State Boundaries
	<option value="state_label" > State Labels 
</select>

The option values should be the names of your layers.

There's a tutorial that may help you at:
http://terrasip.gis.umn.edu/projects/tutorial35/

hth, Bjoern
-- 
small office solutions
info@sosnetz.de  -  http://www.sosnetz.de

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users