Solved! Go to Solution.
In the writing a class conceptual help topic there's an example that shows how to use only a feature layer in a map: http://servicesbeta.esri.com/demos/using-classes-with-javascript/legacy/empty_basemap.html
Is that similar to what you want?
If you're using that webmap with createMap, the simplest thing to do is get a reference to your basemap layer and call hide.
To get a reference to your basemap layer, pull the layerId out of map.layerIds and pass that to map.getLayer.