| Visual Basic (Declaration) | |
|---|---|
Public Property PrimaryMapResource As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public string PrimaryMapResource {get; set;} | |
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.
Target Platforms:Windows XP Professional, Windows Server 2003 family