Hi Till, Take a look here: http://dev.openlayers.org/sandbox/jvanulden/openlayers/examples/extended-layerswitcher.html and the relevant code to implement what you need: map.raiseLayer(layer, 1) for up, or map.raiseLayer(layer, -1) for down. Hope this helps.
________________________________ From: [EMAIL PROTECTED] on behalf of Till Adams Sent: Wed 10/09/2008 5:06 AM To: [email protected] Subject: [OpenLayers-Users] change layer order Dear list, is there any idea or possibility to change the order of layers in OL? I found one point which might be of interest in this context, bit I have no real idea how to proceed: OpenLayers.Util.IndexOf(ma.layers, layername) Gives me the actual index position of a layer called "layername" Thanks in advance and regards, Till -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Geschäftsführung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 [EMAIL PROTECTED] http://www.terrestris.de <http://www.terrestris.de/> Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplementärin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
