Book Image

Developing Mobile Web ArcGIS Applications

Book Image

Developing Mobile Web ArcGIS Applications

Overview of this book

Table of Contents (14 chapters)
Developing Mobile Web ArcGIS Applications
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Finding features


So far, we have provided tools that help users to learn more about a layer and its features. Next, let's consider how we can find features. You can search a feature layer locally in memory or make a REST query to ArcGIS Online or ArcGIS Server. In this case we will make a remote call. We will again build from our base code. We have a number of goals for this feature search tool. We'd like a user to be able to type in a feature by name and automatically make the map zoom/pan to the highlighted feature.

Note

It is often a good idea to run some queries manually against the feature layer of interest. In the case of our marathon layer, you can test out feature queries at:

http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Boston_Marathon/FeatureServer/0/query.

It is possible to return queries using GeoJSON. For more on feature service queries see the following link:

http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Feature_Service_Layer/02r3000000r1000000...