ESRI.ArcGIS.ADF.Web.UI.WebControls
ZoomToPointFactor Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : ZoomToPointFactor Property




When zooming to points, this is the number which the full extent will be divided by in order to calculate the extent to zoom to.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("When zooming to points, this is the number which the full extent will be divided by in order to calculate the extent to zoom to.")>
<BrowsableAttribute(True)>
<ResCategoryAttribute("TaskResults")>
<DefaultValueAttribute()>
Public Property ZoomToPointFactor As Double
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim value As Double
 
instance.ZoomToPointFactor = value
 
value = instance.ZoomToPointFactor
C# 
[ResDescriptionAttribute("When zooming to points, this is the number which the full extent will be divided by in order to calculate the extent to zoom to.")]
[BrowsableAttribute(true)]
[ResCategoryAttribute("TaskResults")]
[DefaultValueAttribute()]
public double ZoomToPointFactor {get; set;}

Remarks

The user may right-click on a graphics layer in the task results and, in the context menu, choose to zoom to selected features. When the features are lines, polygons, or multiple points, the zoomed extent will simply surround the set of selected features. However, a single selected point has no extent. Instead, an extent must be defined in another way. The TaskResults defines this extent by taking a fraction of the full extent of the Map associated with the TaskResults.

The Map's full extent (obtained from its GetFullExtent method) will be divided by the ZoomToPointFactor to set the height and width of the zoomed extent. For example, if the ZoomToPointFactor is 1000, and the full extent of the Map control is 1,000,000 meters in height and width, then the map will be zoomed to an extent 1,000 meters on each side when the user chooses to zoom to one selected point.

See Also

© 2010 All Rights Reserved.