Solved! Go to Solution.
FeatureLayer | API Reference | ArcGIS API for JavaScript
The feature layer inherits from the graphics layer and can be used to display features from a single layer in either a Map Service or Feature Service. The layer can be either a (spatial) layer or (non-spatial) table. The features in a feature layer can be edited if the isEditable
method is true.
The FeatureLayer will, by default, use the drawing information from the server (requires ArcGIS Server 10 or above). See for example the simple renderer in the Drawing Info at http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/...
___________________
As per the above - One should be able to use a single layer from a map service. Can anyone clarify -whether a FeatureLayer works only with a feature service or if it can consume a layer from a map service.
Subu,
The FeatureLayer will work with a MapService too.