Changed the SelectionLayer to use map instead of vector, getting ready for undo feature