<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi there,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I am running a mixture of pre-defined map file configuration layers and some additional ones created dynamically via mapscript. Now, I would like to change the layer order from time to time. I saw that there a couple of commands like movelayerup and the layerdrawingorder, but I don't really see how they would be useful. In principle, I would like to access layer after layer by name (not by index number), to define the new order. Any way I can do this?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for any advice,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Stefan</DIV><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">        _______________________________________</FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        </SPAN><B style="font-family: Courier; font-size: 10px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; font-weight: bold; ">Stefan Schwarzer</SPAN></B></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        GIS &amp; Data Management</SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier; min-height: 12.0px; font-family: Courier; font-size: 10px; "><BR style="font-family: Courier; font-size: 10px; "></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        UNEP/DEWA/GRID-Europe</SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        Chemin des Anemones 11</SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        CH - 1219 Chatelaine</SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        Switzerland</SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier; min-height: 12.0px; font-family: Courier; font-size: 10px; "><BR style="font-family: Courier; font-size: 10px; "></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        Tel: (+41) 22.917.83.49</SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        Fax: (+41) 22.917.80.29</SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier; min-height: 12.0px; font-family: Courier; font-size: 10px; "><BR style="font-family: Courier; font-size: 10px; "></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Courier" size="2" style="font: 10.0px Courier; font-family: Courier; font-size: 10px; "><SPAN class="Apple-style-span" style="font-family: Courier; font-size: 10px; ">        Internet: </SPAN><A href="http://geodata.grid.unep.ch/"><FONT color="#0000ee" style="color: #0000ee; font-family: Courier; font-size: 10px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 238); font-family: Courier; font-size: 10px; -khtml-text-decorations-in-effect: underline; ">http://geodata.grid.unep.ch/</SPAN></FONT></A></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">        _______________________________________<SPAN class="Apple-converted-space"> </SPAN></FONT></P><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>