<br><div class="gmail_extra">Thanks Slawomir,<br><br>Adding "ascending":false solved my problem.<br><br>Thanks again,<br><br>Paul<br>
<br><br><div class="gmail_quote">2012/11/21 Slawomir Messner <span dir="ltr"><<a href="mailto:slawomir.messner@staff.uni-marburg.de" target="_blank">slawomir.messner@staff.uni-marburg.de</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hi,<br>
      you're probably looking for the "ascending" attribute. It's not
      well documented.<br>
<a href="http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Control/LayerSwitcher-js.html#OpenLayers.Control.LayerSwitcher.ascending" target="_blank">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 type="cite"><div><div class="h5">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></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
    </blockquote>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>