[Mapserver-users] Re: How to change the sequence of layers ???
pkishor_98
pkishor@geoanalytics.com
Sat, 02 Aug 2003 19:17:36 -0000
--- In mapserver-users@yahoogroups.com, Josef Stromský
<Josef.Stromsky.hgf@v...> wrote:
> Hi folks,
>
> Im programming a simple WWW map browser(Java Applet). My question is:
>
> Is possible to generate raster output from MapServer with required sequence
> of layers ???
>
> I've found just one way, and it is: everytime generate a new MapFile
> (*.map).
>
as mentioned by Stepan, layer order is determined by the order in which they appear
in the map file.
Java applet itself is client-side... so, for the moment let's forget about it. You have to
control the order of the layers on the server side before the whole thing is put
through the grinder and an image is created.
You can either create a new mapfile on the fly, or use mapscript to control the order
in which the layers appear (effectively the same thing). If the "required sequence" is
changing based on user-input, just grab the cgi variables (form or url) to control the
order in which the layers will appear before generating the image.
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users