Map Service GetServerInfo method

Gets information about the present state of a map (data frame).

 

GetServerInfo(string MapName)

 

Parameter

Description

MapName

The name of the map (data frame) from which information will be returned.

 

Return Value

 

A MapServerInfo object containing the present state of a map.

 

Remarks

 

In many cases, this method is used as a starting point to get basic information about the contents of a map for eventual modification. For example, the MapServerInfo.DefaultMapDescription references a default MapDescription, which can be used with ExportMapImage to create a dynamic map, change layer visibility, set map extent. MapServerInfo also stores the default and full extents, spatial reference, and background color and transparency settings. Layer names and ids are available via the MapLayerInfos property of a MapServerInfo object.

 

Examples

C#

VB.NET

Java