Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

Zoom To Results



contact author | download help | add bookmark | view bookmarks
Author Tom Brenneman
File Name ZoomToResults.zip
Language C#
Last Modified Nov 5 2009
Status of work Public Domain
Software ArcGIS Server
File Size 2.86 kb
Downloads 92

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
This control, called ZoomToResults, enables you to automatically zoom to the result set returned from a task instead of requiring you to navigate through tree-view results in a standard TaskResults control. By default, this control is not visible at runtime. It is designed to simply zoom to the result set in the map if the number of features returned is less than the MaxResultsForMapZoom property. You will need to add this control to a task’s TaskResultsContainers collection to take advantage of these features. This control was developed for ArcGIS Server 9.3.1.
This control was original discussed in the developer blog here: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2007/08/28/Automatically-zooming-to-task-results.aspx