O'Reilly logo

Building Web Applications with ArcGIS by Hussein Nasser

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using definition query to filter map

After we have added the identify feature on our web application, it is time to add some filters. We will start by filtering the map by category and rating. The user will select a category, say the Café category, and the map should be updated to show only café. This is where we will use the upper toolbar.

Filtering by category

First, we will need to add the necessary control for the filter that will assist the user to a query. If you referred to our interface design that was covered in Chapter 1, The Bestaurants Project, you will notice that we can use a drop-down list for the categories and as the user changes; we will update our feature layer.

As a programmer, you should know that if we are planning to make changes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required