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 Inherits System.Object



[C#]

public class Pushpin : System.Object

Public Properties

Name Description
public propertyIconDataSource

The name of the data source that contains the pushpin icon.

public propertyIconName

The name of the icon. Limited to 64 characters.

public propertyLabel

The text that is displayed in a pushpin label. Can be null. Maximum character length is 1,024.

public propertyLabelNearbyRoads

Indicates whether MapPoint Web Service should raise the label priority for roads near the pushpin. 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 of the returned map image. Ignored if the ReturnsHotArea property is set to False. Can be null. Can be repeated. Maximum number of characters is 256.

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. 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