ESRI.ArcGIS.ADF.Web.UI.WebControls
InitialExtent Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class : InitialExtent Property




The initial extent at which the Map first renders.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("Sets the initial extent to the full extent or last saved extent (default) of the primary map resource. Ignored when the Extent property is set.")>
<PersistenceModeAttribute()>
<DefaultValueAttribute()>
<ResCategoryAttribute("Map Behavior")>
Public Overrides Property InitialExtent As InitialExtent
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim value As InitialExtent
 
instance.InitialExtent = value
 
value = instance.InitialExtent
C# 
[ResDescriptionAttribute("Sets the initial extent to the full extent or last saved extent (default) of the primary map resource. Ignored when the Extent property is set.")]
[PersistenceModeAttribute()]
[DefaultValueAttribute()]
[ResCategoryAttribute("Map Behavior")]
public override InitialExtent InitialExtent {get; set;}

Remarks

When the Map first loads in the page, the initial extent depends on this property. Two values are valid: Default and Full. Default (which is the default value) causes the map to display at the extent defined as default by the PrimaryMapResource Property of the Map. Full causes the map to display at the extent that covers all layers in the PrimaryMapResource Property. (If no PrimaryMapResource is set, the Map control uses the first (bottom) resource listed in the MapResourceManager as primary.)

See Also

© 2010 All Rights Reserved.