Query Map Layer Order

Daniel Morissette dmorissette at MAPGEARS.COM
Thu Jun 7 13:17:18 EDT 2007


John Lhotak wrote:
> In my php script I order my layers using setlayersdrawingorder().  This 
> works fine and the layers are drawn in the proper order when using 
> draw().  However, when a query is done and the program does drawQuery(), 
> the layer order is lost.  Is there way order layers for a query map?
> 

Which version of MapServer are you using? Version 4.8 and older didn't 
follow the layer order, but that should be fixed in 4.10 according to
http://trac.osgeo.org/mapserver/changeset/5592

Note that drawQuery has always had a bunch of issues and in the dev 
version of MapServer 5.0 msDrawQueryMap() has been modified internally 
to call the same code as the regular msDrawMap(), just with a special 
flag to request highlighting query results, so all those issues will be 
behind us for good.

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/



More information about the mapserver-users mailing list