MapImage Class

MapImage Class

Contains a map returned from the RenderServiceSoap.GetMap method. Includes the image or a URL to get the image, map view representations, and the hot areas associated with pushpins.


Public Class MapImage Inherits System.Object



[C#]

public class MapImage : System.Object

Public Properties

Name Description
public propertyHotAreas

Contains the areas of the map that are clickable (HotArea[] objects). Useful for constructing an HTML image map.

public propertyMimeData

Contains the map image (MimeData object), which includes the image type, the MIME label, and the binary image.

public propertyUrl

Contains a URL to access the map image, which is cached on a MapPoint Web Service server for a limited time. The URL uses either standard or secure hypertext protocol, depending on the MapOptions.ReturnType property setting.

public propertyView

Contains representations of the view of the map (MapViewRepresentations object), which includes a view by the center point and map scale, a view by bounding rectangle, and a view by the center point and height and width of the map.

Remarks

  • The MimeData and Url properties are mutually exclusive. Use the MapOptions.ReturnType property to set whether an image or a URL is returned.

  • A returned URL is valid for returning up to ten images within five minutes of the call to the GetMap method. After five minutes or ten images (whichever occurs first), accessing the URL returns a session time out message. For more information about working with URLs, see Using MapPoint Web Service in a Web Application.

  • To identify a pushpin as a hot area for use in creating an image map, use the Pushpin.ReturnsHotArea property.

See Also

  RenderServiceSoap.GetMap Method   |   HotArea Class   |   MimeData Class   |   MapViewRepresentations Class   |   MapOptions.ReturnType Property