Getting in Touch with Volunteered Geographic Information Continued from page 53 Modify the Application Code Now that your application is recognized by your Web server, you’ll make a few minor changes to the application code so that it will work on your local machine. 1. First, in your Web browser, go back to the ArcGIS API for JavaScript Resource Center and click the Concepts tab. Expand the Working with ArcGIS Server Services book and click Using the proxy page. 2. Click the Download and configure link (in the body of the Topic text) and click proxypage_net.zip to download the zipped file. Save it to your MyVGI folder. 5. In Windows Explorer, navigate to your MyVGI folder, right-click the proxy.config file, and open it in Notepad. 6. Find the following line (near the top) and change “true” in the line to “false.” Save and close proxy.config. 7. Open a Web browser and go to your MyVGI Web app: http:///MyVGI/sample_VGI.html Remember to replace with the name of your machine. Change ProxyConfig mustMatch to False. The appearance and functionality of the application will be exactly the same as the sample in the JavaScript API Resource Center, except that now it is hosted on your machine. Replace the Feature Service with a Different Feature Service Now that you’re hosting the MyVGI app, you will replace the feature service it uses with a different feature service. This action represents what you might do if you were to use your own feature service hosted on your ArcGIS Server. In this case, you will borrow a different feature service from Esri. The proxy page consists of server-side code that runs on your Web server. 3. Extract the proxypage_net.zip to the MyVGI folder. 4. In Notepad, open your sample_VGI.html file and find the section that begins, function init() { Change the path in the line esri.config.defaults.io.proxyUrl = "/arcgisserver/apis/javascript/proxy/proxy.ashx"; to esri.config.defaults.io.proxyUrl = “http:///MyVGI/proxy.ashx”; Save and close sample_VGI.html. Note: Be sure to replace with the name of your machine. In your Web browser, go to http://sampleserver3.arcgisonline.com/ArcGIS/rest/services This page is the ArcGIS Services Directory for sampleserver3 at Esri. The Services Directory is part of any ArcGIS Server implementation and is a way to explore and access the REST endpoints of ArcGIS Server services. Keep in mind that the services on sampleserver3 are for demo purposes only and should not be used in your production applications. 1. Click BloomfieldHillsMichigan to expose the services in that folder. These services were created using the process described in the first part of this article. 2. Click BloomfieldHillsMichigan/LandusePlanning (FeatureServer) to expose a list of the layers of this service. The service contains three layers: Land Use Points of Interest, Land Use Linear Features, and Land Use Planning Areas. 3. Click Land Use Points of Interest (0) and copy the URL from the address bar of the browser to your system clipboard. 4. If necessary, open your sample_VGI.html file in Notepad again and find the line that begins as follows (near the middle of the file): 54 ArcUser Summer 2010 www.esri.com