Feature layer

The feature layer provides access to graphics within a feature class. The user can thus both query and edit the shapes and attributes of the graphics. We reviewed their REST service profile in Chapter 4, Finding Peace in REST. We load feature layers in much the same way we load dynamic and tiled services. However, their options often require more parameters, due to the editable nature of the content.

Feature service modes

When initializing a feature layer from a feature service, you have a choice as to how the data is loaded. Do you want to load it all at once? Do you want to load all the features that you can see? Do you only want to load the one you've selected, and not show the rest? In the next sections, we'll review the three ...

Get Mastering ArcGIS Server Development with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.