This project has moved. For the latest updates, please go here.


Topics: SharpMap v2.0
Oct 25, 2007 at 3:09 PM
Edited Oct 25, 2007 at 3:10 PM
When removing a layer (with a correct index and everything) – I got the following exception thrown:
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
As far as I understand it happens because of the attempt to provide "OnDeleting" functionality in LayerCollection.RemoveItem. But BindingList<ILayer> (the base of LayerCollection) seems not to like being passed -1 as the new index.
Where did I go wrong?
Oct 31, 2007 at 10:37 PM
Hey blackrussian -

It smells like a bug to me (which is probably what you were thinking, too). I'll investigate. Thanks!
Oct 31, 2007 at 10:37 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.