A Map control displays a collection of layers.


The following tables list the members exposed by Map.

Public Constructors

  Name Description
Public method Map Initializes a new instance of the Map class.
Top

Public Properties

  Name Description
Public property AnimationInterval Gets or sets a value in milliseconds indicating how frequently the AnimationLayer is refreshed.
Public property AnimationLayer Returns the AnimationLayer object associated with the Map.
Public property AutoDispose Specifies whether the Map control will be disposed automatically when the web form is unloaded (True by default).
Public property BackColor Overridden. Gets or sets the background color of the Map.
Public property BackgroundLayer Specifies an external map service (such as Google Maps or Microsoft Virtual Earth) as the background layer for your map.
Public property BackImageUrl Gets or sets the URL of the background image for the Map control.
Public property Callouts Returns the Callouts collection of the Map.
Public property ClientCoordinateType Specifies the type of coordinates used in the client-side API.
Public property ClientScript Gets or sets a value indicating whether client-side scripting is enabled.
Public property CoordinateSystem Gets or sets the coordinate system for the Map.
Public property Cursor Gets or sets the cursor that is displayed when the mouse pointer is over the Map control.
Public property DrawingUnits Returns or sets the drawing units constant value that indicates the coordinate system for the DrawEllipse, DrawRectangle, DrawLine, DrawString, DrawPoint, DrawShape, DrawLabel methods.
Public property EnableAnimation Enables refreshing of the AnimationLayer associated with the Map.
Public property EnablePan Allows the user to pan the map if a map tool other than the Pan tool is selected.
Public property EnableScrollWheelZoom Enables or disables zooming using a mouse's scroll wheel.
Public property EnableSession Indicates whether session state is enabled for the Map.
Public property EnableZoomAnimation Enables or disables zoom animation effects when the user zooms the map using a mouse's scroll wheel.
Public property Extent Gets or sets the current spatial extent of the Map.
Public property FontQuality Gets or sets the font rendering quality for this Map object.
Public property FullExtent Gets or sets the full spatial extent of the Map.
Public property Height Overridden. Gets or sets the height of the control.
Public property HotspotPostBack Specifies whether clicking on a hotspot causes postback (False by default).
Public property Hotspots Returns the MapHotspots collection of the Map.
Public property Image Returns the binary data of the map image.
Public property ImageFormat Specifies the format of the map image.
Public property ImageInterlace Specifies whether the map image can be progressively displayed when it is decompressed (PNG/GIF images).
Public property ImageOpacity Returns or sets the opacity of the map image (GIF/PNG).
Public property ImagePriority Specifies the priority of the map image when it is stored in the ASP.NET Cache (by default).
Public property ImageQuality Specifies the quality of the JPEG image to be saved.
Public property ImageResolution This value represents the number of dots per inch (DPI) of the output image.
Public property ImageTempDirectory Specifies the temporary virtual directory to store the map image files in.
Public property ImageTimeout Gets and sets the time-out period (in minutes) that specifies how long to keep the map image in a Cache or temporary directory.
Public property IsSessionRestored Returns True if the Map has been restored from an earlier session; otherwise returns False.
Public property Layer Returns a specific layer of the Map, by position (default property).
Public property LayerCount Returns the number of layers in the Map.
Public property MapScale Sets or gets the scale of the map as a representative fraction.
Public property MapShapes Returns the MapShapes collection of the Map.
Public property MapTool Gets or sets the current map tool.
Public property MapUnit Sets or returns the units for the map.
Public property Markers Returns the collection of markers.
Public property NewShapeType Specifies the shape type tah will be drawn by using the DrawShape tool.
Public property PanCursor Gets or sets the cursor that is displayed when the map is panned.
Public property PixelPerInch This value represents the number of pixels per inch which is used to calculate the map scale.
Public property ScaleBar Returns the ScaleBar object associated with the Map.
Public property SmoothingMode Gets or sets the line rendering quality for this Map object.
Public property ToolShape Controls the appearance of the map tool shape.
Public property TooltipStyle Gets a collection of attributes that will be rendered as a style attribute on the outer tag of a tooltip.
Public property Visible Overridden.  
Public property Width Overridden. Gets or sets the width of the control.
Public property ZoomLevel Gets or sets the current zoom level of the Map.
Public property ZoomLevels Returns the ZoomLevels collection associated with the Map.
Top

Public Methods

  Name Description
Public method AddLayer Adds a layer to the Map control. When you add a layer to a Map you're adding it to the top of the Map layers collection; consequently its index is 0.
Public method CalculateScale Calculates a scale of a map.
Public method CancelEdit Cancels editing performed by using the DrawShape or EditShape tools and clears the map.
Public method CenterAndZoom Moves the center of the Map to the specified location and sets the zoom level.
Public method CenterAt Moves the center of the Map to the specified location.
Public method ConvertArea Converts an area from one unit to another.
Public method ConvertDistance Converts a distance from one unit to another.
Public method Dispose  
Public method DrawEllipse The DrawEllipse method draws an ellipse on the Map. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined and is filled by using the symbol specified by the symbol parameter.
Public method DrawLabel Draws a text label on the Map.
Public method DrawLine Overloaded. Draws a line on the Map.
Public method DrawPoint Overloaded. Draws a point on the Map.
Public method DrawRectangle Overloaded. Draws a rectangle on the Map. The rectangle is outlined and is filled by using the symbol specified by the symbol parameter.
Public method DrawShape Draws a shape on the Map. The shape is outlined and is filled by using the symbol specified by the symbol parameter.
Public method DrawString Draws a string at the specified point on the Map.
Public method EditShape Starts editing of a shape. The coordinate system of the shape must be the same as the coordinate system of the Map.
Public method FindLayer Finds a layer by its name.
Public method FromMapDistance Converts a linear measurement in map units to a distance in pixels.
Public method FromMapPoint Converts a point in map coordinates to coordinates in pixels.
Public method GetLayerIndex Returns the ordinal number of a layer by its name.
Public method GetTempImageUrl Returns a relative URL to the map image.
Public method Identify Creates a Recordset of all features that intersect the specified point.
Public method IsLayerVisible This method returns a value indicating whether a Layer object is visible.
Public method MeasureDistance Overloaded. Returns a distance between two points in map units.
Public method MoveLayer Moves a layer from its current index position to a new index position.
Public method Pan Overloaded. Moves the map.
Public method RemoveAllLayers Removes all layers of the Map.
Public method RemoveLayer Overloaded. Removes a layer from the Map.
Public method SaveImage Saves the map image to the specified file in a format specified by the ImageFormat property.
Public method SaveTempImage Saves the map image in a temporary directory.
Public method ShowInfoWindow Displays an information window.
Public method ToMapDistance Converts a linear measurement in pixels to a distance in map units.
Public method ToMapPoint Converts a point in pixels to map units.
Public method ZoomFull Sets the Extent of the Map to its FullExtent.
Public method ZoomIn Call this method to zoom in on the map to a specified point. Point coordinates are measured in map units.
Public method ZoomOut Call this method to zoom out on the map to a specified point. Point coordinates are measured in map units.
Public method ZoomScale Call this method to zoom in on the map to a specified point. Point coordinates are measured in map units.
Public method ZoomToScale Overloaded. Returns the scale that corresponds to the specified zoom level index.
Top

Public Events

  Name Description
Public event CircleTool Occurs when the user draws a circle on the Map.
Public event EndEdit Occurs when the user has finished to edit a shape.
Public event HotspotClick Occurs when the user clicked on a hotspot.
Public event HotspotInfoClick Occurs when the user clicked on an information hotspot.
Public event InfoTool Occurs when the user clicks the Map to request information about a map feature.
Public event InfoWindowTool Occurs when the user clicks the Map to request information about a map feature in a popup window.
Public event LineTool Occurs when the user draws a line on the Map.
Public event MarkerClick Occurs when the user clicked on a marker.
Public event PointTool Occurs when the Map is clicked.
Public event PolygonTool Occurs when the user draws a polygon on the Map.
Public event PolylineTool Occurs when the user draws a polyline on the Map.
Public event RectangleTool Occurs when the user draws a rectangle on the Map.
Public event RefreshAnimationLayer Occurs when the AnimationLayer needs to be refreshed.
Public event ZoomFullExecuted Occurs after the ZoomFull method is executed.
Top

See Also