mapquery/mapquery — Issue #15: layer.up() and .down() doesn't work as expected
Author: vmx
Created: 2012-03-09 18:58:43+00:00
State: open

I would expect that `layer.up()` and `.down()` really changes the ordering of the layers, and not only change the internally stored position.

`map.layers()` returns an array with all layers, the top-most at position `[0]`. Hence a `map.layers()[0].down()` should really move the layer down, so that is on the next `map.layers()` call on position `[1]`.

Currently that's not the case.