Share via


Pushpin Class

Pushpin Class

Contains the icon, label, location, and user-defined identification number of a pushpin. A Pushpin object is used to mark a location on a map image, and the location can be a place, address, or latitude and longitude coordinate, or it can be a location from user-defined location data stored on your custom data sources on MapPoint Web Service servers. For each pushpin, you can specify whether you want the map images that display them to return hot areas for use with clickable maps.

Public Class Pushpin
    Member of [Namespace]
[C#]
public class Pushpin : System.Object
    Member of [Namespace]

Public Properties

public propertyIconDataSource The name of the data source that contains the pushpin icon. String.
public propertyIconName The name of the icon. String.
public propertyLabel The text that is displayed in a pushpin label. String.
public propertyLabelNearbyRoads Indicates whether MapPoint Web Service should raise the label priority for roads near the pushpin. Boolean. Default is False.
public propertyLatLong The latitude and longitude coordinates (LatLong object) representing the point where the pushpin should be placed. Required if the Pixel property is null.
public propertyPinID The customer-defined pushpin identification, which is returned in the HotArea.PinID property. Ignored if the ReturnsHotArea property is set to False. String.
public propertyPixel The pixel coordinates (PixelCoord object) representing the point where the pushpin should be placed. Required if the LatLong property is null.
public propertyReturnsHotArea Indicates whether hot area information should be returned for the specified pushpin. Boolean. Default is True.

Remarks

  • The Pushpin class is used with the MapSpecification.Pushpins property, which is passed to the RenderServiceSoap.GetMap method.
  • The IconDataSource property is required.
  • The LatLong and Pixel properties are mutually exclusive. If both are set, the LatLong property takes precedence.

See Also

LatLong Class | HotArea.PinID Property | PixelCoord Class | MapSpecification.Pushpins Property | RenderServiceSoap.GetMap Method