[Chameleon] layer list order

Julien-Samuel Lacroix jlacroix at mapgears.com
Mon Mar 27 10:04:52 EST 2006


Hi Tom,
Can you give us more details? Which widget are you using?
Normally it's as simple as changing a for() loop in your code. Instead of:
for(i=0; i<numLayers; i++)

use:
for(i=numLayers-1; i>=0; i--)


Julien

Kralidis,Tom [Burlington] wrote:
> Hi,
> 
> For our maps, we have a main map, with title/abstract/etc. info for each
> layer listed below the map.  Clicking the layer name in the legend will
> jump to a pointer to the desc of the layer.
> 
> WMC lists layers as first listed, first drawn (pseudo XML e.g. below).
> 
> <layer>basemap</layer>
> <layer>roads</layer>
> 
> The order of the legend layers are fine (topmost on top, bottommost on
> bottom), i.e.:
> 
> Roads
> basemap
> 
> The order of the description layers are not fine (topmost on bottom,
> bottommost on top), i.e.:
> 
> Basemap
> Roads
> 
> We would like to reverse this.  Is there somewhere in the chameleon code
> which we can tweak to  do a reverse sort?
> 
> Thanks
> 
> ..Tom
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list