Add ItemsControl to map editing and get the map configuration (number of rows and cols).