A Map control displays a collection of layers.


Namespace: ActualMap.Windows
Assembly: ActualMap (in ActualMap.dll)

Syntax

Visual Basic (Declaration)
Public Class Map
    Inherits Control
    Implements IEnumerable
C#
public class Map : Control, IEnumerable
C++
ref class Map : Control, IEnumerable
J#
public class Map extends Control implements IEnumerable
JScript
public class Map extends Control, IEnumerable

Remarks

With a Map control, you can add and remove layers with the AddLayer, RemoveLayer, and RemoveAllLayers methods. You can change layer order with the MoveLayer method. The LayerCount property returns the number of layers currently in the map. To access each layer in the collection, use the Layer property. You can zoom in and zoom out features in your map using the ZoomIn and ZoomOut methods.

A Map control also stores information about the map such as the BackColor, Extent, and FullExtent properties.

You can convert between world and image coordinate system with the ToMapPoint and FromMapPoint methods.

You can save the map image into a file using the GetBitmap method.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            ActualMap.Windows.Map

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also