Query Demographics


Purpose
Using a Dockable Window, this sample illustrates the following concepts:
  1. How to drag/drop map contents (point based notes) into a textbox
  2. How to use SOAP calls to query against a map service
  3. How to use the Google chart API to add graphs to your popup information

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open and build the solution in Visual Studio.
  2. Open ArcGIS Explorer, and open a map in which you want to use the sample task.
  3. Select the Add-Ins tab from the ArcGIS Explorer ribbon.
  4. Click the 'Query Demographics" button to activate the sample.
  5. Zoom somewhere into the continental United States, then use the point tool to the right of the Location text box to point to a location.
  6. As an alternative to step 5, you could also create a point note or execute find (with an address for example) to create a point note in the United States. Once created, the Note can be drag/dropped into the Location text box.
  7. Enter a search distance in miles (must be 10 or less). The search polygon that is created will be a rectangle.
  8. Choose the "Add result to Contents?" checkbox if you want the search polygon to be added to the map as a polygon note. If you don't check this box the search polygon will be added as a graphic.
  9. Click the Execute button to search for demographic data within the search distance and display the results as a popup.
  10. If you did not turn on the "Add result to Contents?" checkbox the search polygon will be a graphic you can remove by clicking on the Remove Last button.


  11. Query Demographic Form


Download the files for all languages
DockWindow.cs This file contains the code behind the DockWindow.
Download the C# files
DockWindow.vb This file contains the code behind the DockWindow.
Download the VB.NET files