How to change the orders of layers bying programming?

Aug 12, 2012 at 3:28 AM

I'd like to control the image layer to submerge to the bottom as a background layer while loading it. How to change the display orders of layers?

Developer
Aug 14, 2012 at 5:32 PM

I believe the display order is the same as the order of the layers in map.Layers.

You'll need to remove and insert (for example) the layer in question.

Aug 15, 2012 at 11:22 AM



You can use this very easy code from mudnug and modify it a bit to just shift the 0th layer to the end
http://mudnug.wordpress.com/2012/05/09/how-to-sort-layers-alphabetically/
Aug 17, 2012 at 1:59 AM

Sorry but it's unable to open the webpage···

Developer
Aug 17, 2012 at 3:10 PM

There were others that said something like that a while back. Can you post the server response and what browser you are using?