Added layer delete to the mapeditor