<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      you're probably looking for the "ascending" attribute. It's not
      well documented.<br>
<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Control/LayerSwitcher-js.html#OpenLayers.Control.LayerSwitcher.ascending">http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Control/LayerSwitcher-js.html#OpenLayers.Control.LayerSwitcher.ascending</a><br>
      Try:<br>
      new OpenLayers.Control.LayerSwitcher({'div':
      document.getElementById('layerSwitcher'),"ascending":false})<br>
      <br>
      Am 21.11.2012 16:57, schrieb Paul Meems:<br>
    </div>
    <blockquote
cite="mid:CAHNf2YSq=1rMvwaaNai4wF3RPq5uVo7SHk2jNApHnxdx318UMQ@mail.gmail.com"
      type="cite">I want to create a custom layer switcher.<br>
      I can put the 'normal' text in another div, but I also want to
      change the order:<br>
      The base layers at the bottom and the overlays on top.<br>
      Looking at the docs I think I need to use baseLayersDiv and
      dataLayersDiv but when I use those nothing happens.<br>
      <br>
      This is working:<br>
      new OpenLayers.Control.LayerSwitcher({'div':
      document.getElementById('layerSwitcher')})<br>
      but with the default ordering.<br>
      <br>
      This isn't working:<br>
      new OpenLayers.Control.LayerSwitcher({'baseLayersDiv':
      document.getElementById('baseLayers'), 'dataLayersDiv':
      document.getElementById('dataLayers')})<br>
      <br>
      Does anybody has experience with this?<br>
      Searching didn't resulted in any example.<br>
      <br>
      Thanks,<br>
      <br>
      Paul<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
    </blockquote>
  </body>
</html>