A Map control displays a collection of layers.


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

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.

The map is drawn by exporting the map into an image and this image is used in the IMG HTML tag. The postbacks for map tools are also handled in this control.

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

You can draw arbitrary geometric features and texts by adding them to the MapShapes collection. The contents of this collection is persisted between postbacks.

You can mark locations using the Markers collection. The contents of this collection is persisted between postbacks.

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

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         AspMap.Web.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