Book Image

Mastering ArcGIS Server Development with JavaScript

By : Raymond Kenneth Doman
Book Image

Mastering ArcGIS Server Development with JavaScript

By: Raymond Kenneth Doman

Overview of this book

Table of Contents (18 chapters)
Mastering ArcGIS Server Development with JavaScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 feature service modes used to download data to the client browser.

Snapshot mode

Sometimes, if there is not a lot of data, it's better to download it all at once. That's what snapshot mode does. Snapshot mode downloads feature data based on time definitions...