MapDescription

Describes the content of a map.

 

Property

Type

Description

BackgroundSymbol

FillSymbol

The background fill of the map.
 

CustomGraphics

GraphicElement[]

An array of graphics (GraphicElement objects) to render in a map.  
 

GeoTransformation

GeoTransformation

The datum transform used to draw a map.
 

LayerDescriptions

LayerDescription[]

An array of layer descriptions (LayerDescription objects) in a map.  Each layer is represented by a layer description.  
 

MapArea

MapArea

The map area (extent) used to draw the map.  
 

Name

string

Name of the map.
 

Rotation

double

The angle/rotation of the map in degrees, measured anti-clockwise .
 

SelectionColor

Color

Default selection color for all layers.
 

SpatialReference

SpatialReference

The spatial reference (projection) used to draw the map.
  

TransparentColor

Color

The color rendered completely transparent when the map is drawn.
 

 

Remarks


MapDescription is used to both access map properties and change map settings.  Properties on a MapDescription object can be set to change how map images are rendered by a map service.   Please note the difference between MapServerInfo and MapDescription. MapServerInfo is only designed to retrieve information about a map, such as the name of the map or a layer.  Properties on MapServerInfo cannot be changed to alter map display.    
 

Setting a transparent color is only valid for image formats that support transparency. These include: png, png24 and gif.  A transparent color can also be set on ImageDisplay. The color set for ImageDisplay takes precedence over the transparent color set in the MapDescription.
 

Use SpatialReference to retrieve or set a spatial reference for a map. If the spatial reference for a map has been changed, remember to assign the new spatial reference to any subsequent geometry used to change the map area or to identify or to select features.


Use SelectionColor when you wish to change the default selection color for all layers in the map. The default selection color is cyan. This color applies to all layers within the map. If you want to use different selection colors for individual layers, use SelectionColor on LayerDescription. The default selection symbols for a map are: a circle for points, a solid line for lines and a hollow fill (solid outline) for polygons. If you want to change the selection symbol for a layer, use SelectionSymbol on LayerDescription.

 

Examples

C#

VB.NET

Java