Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Web Applications with ArcGIS

You're reading from   Building Web Applications with ArcGIS Build an engaging GIS Web application from scratch using ArcGIS

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783552955
Length 138 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Hussein Nasser Hussein Nasser
Author Profile Icon Hussein Nasser
Hussein Nasser
Arrow right icon
View More author details
Toc

Searching and displaying restaurants by name

We have completed the feature layer filtering, where we learned how to use the layer definition to filter out map results. However, there are cases where we will need to get the results, manipulate them, list, and interact with them. This is where we will use the query tasks. In this section, we will learn how to search restaurants by name and display the results and then we will add some code to the result to interact with the map.

However, first, we need to learn about an important object that is the center of ArcGIS JavaScript development and that is feature.

Note

Feature: This is an object that represents a single record in a feature layer. Feature has a list of attributes and a geometry that represents the location of that feature. A geometry can mainly be a point, line, or a polygon.

Each feature has a geometry; we use that geometry to highlight and zoom to the feature on a map. Beside geometry, feature has a list of attributes; the attributes...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image