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




The initial extent at which the Map first renders.

Syntax

Visual Basic (Declaration) 
<ResCategoryAttribute("Map Behavior")>
<DefaultValueAttribute()>
<PersistenceModeAttribute(PersistenceMode.Attribute)>
<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.")>
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# 
[ResCategoryAttribute("Map Behavior")]
[DefaultValueAttribute()]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[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.")]
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.)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.