Changing Layer Order

Topics: General Topics
Jan 30, 2007 at 10:41 AM
Is there any way to change the layer display order in SharpMap without having to remove all the layers and then rebuilding them? Is there are MoveFront/MoveBack sort of command?

Thanks,

Dirk
Jan 30, 2007 at 1:53 PM
You can try manipulating the Layers List like so:

// move a layer to the bottom
_map.Layers.Remove(layerX);
map.Layers.Insert(map.Layers.Count, layerX);