Select to view content in your preferred language

Address Search Query by Road Names

717
2
10-31-2012 05:08 AM
GaryWine
Deactivated User
I am trying to create a SEARCH where the user types in a road name, and the display box shows all addresses that fall under that road name. The user can then select the address they want and the map will auot zoom to that point.

I have seen some posts close to this, but not quite what I need.

Can anyone get me started in the right direction?

Thank You
0 Kudos
2 Replies
SanajyJadhav
Deactivated User
This seems normal attribute query to me.

1. You query your roads layer
2. Get the results
3. Create the class that exposes 2 public properties, one in Road name and other is geometry.
4. Loop thru query result, create instance of the class ( step #3) and set its properties. Add this instance to some List<T>.
5. Bind the list to your UI control.
6. On some event of that UI control, get the geometry from the class instance.
7. Zoom to that geometry.

HTH.
0 Kudos
deleted-user-ATjHIWsdQYmT
Deactivated User
Check out the "Query" section in the Silverlight samples :
http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm

You can use the "Attribute Query", "Query Only", or "Find Query" (or any combination of them) to achieve what you're looking for.

There is some great info in these samples and they will help you get exactly what you want.
0 Kudos