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.
isEditable
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 <A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0" rel="nofollow noopener noreferrer" target="_blank">http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0</A>
<A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0" rel="nofollow noopener noreferrer" target="_blank">http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0</A>
___________________
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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.