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




The primary MapResource whose properties other MapResources will adhere to for blending to take place.

Syntax

Visual Basic (Declaration) 
<NotifyParentPropertyAttribute(True)>
<ResDescriptionAttribute("The primary MapResource whose properties other MapResources will adhere to for blending to take place.")>
<DefaultValueAttribute()>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.MapResourceEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResCategoryAttribute("Resources")>
Public Property PrimaryMapResource As String
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim value As String
 
instance.PrimaryMapResource = value
 
value = instance.PrimaryMapResource
C# 
[NotifyParentPropertyAttribute(true)]
[ResDescriptionAttribute("The primary MapResource whose properties other MapResources will adhere to for blending to take place.")]
[DefaultValueAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.MapResourceEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResCategoryAttribute("Resources")]
public string PrimaryMapResource {get; set;}

Remarks

The Map control uses the PrimaryMapResource to determine a number of properties for the Map as a whole, including:

  • Projection: the Map control will attempt to project all resources to the projection set in the PrimaryMapResource.
  • Initial extent: the Map will set its initial extent to that of the primary resource.
  • Map rotation: the Map will set its initial rotation to that of the primary resource.
  • Tiling scheme: if the primary resource is an ArcGIS Server resource with a cached tiling scheme, the Map will use this tiling scheme when requesting maps from other resources.

This property only has an effect when more than one resource is used in the Map.

The PrimaryMapResource, if set, must be the Name of one of the resources in the MapResourceManager set as the MapResourceManager property of the Map.

If PrimaryMapResource is not set, then the first map resource used will be treated as primary. The first resource will be the one listed at the bottom of the list in the MapResourceManager, unless resources are changed programmatically at runtime.

See Also

© 2010 All Rights Reserved.