Yes, in an earlier version it did. You can hide/show, add/delete layers. You have to pay attention to:
1. Keep a list of the layers and their status (hidden/show)
2. Each layer is represented by a RadioMenuItem (keep a list of these) that displays name and status. Add/delete the RadioMenuItem and/or modify the status depending of what the user selects
3. If the users wants to hide/show use Layer.setVisibility(true/false)
4. If the user wants to delete/add a layer use Map.addLayer/removeLayer and modify the list of layers and RadioMenuItem
5. Also, you have to consider the array of layers in the legend and modified it accordingly
In the version that I am currently working on, the visibility of the layers is managed in the Table of Contents. Here I keep a list of legends (each is presented to the user with a CheckBox) and their corresponding layer.