The example from the developers website shows loading layers into a list https://developers.arcgis.com/javascript/jssamples/map_dynamiclayerlist.html However, those appear to be Map Service layers.
My layers are hosted as a feature layer can I still use the same methods?
http://univredlands.maps.arcgis.com/home/item.html?id=ceb1f4b4a4e24b0b8d6718267a768312