Back to Devexpress

MapPushpin Class

windowsforms-devexpress-dot-xtramap-a472ebd6.md

latest2.0 KB
Original Source

MapPushpin Class

The class used to draw a pushpin on a map.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class MapPushpin :
    MapPointer
vb
Public Class MapPushpin
    Inherits MapPointer

The following members return MapPushpin objects:

Remarks

The Map Pushpin is a pointer that marks a geographical point on the map. Use the MapPointer.Location property to specify the pushpin position on a map.

The following image shows the map pushpin example.

If a custom image is not specified, the pushpin uses the default one.

Example

View Example

csharp
ItemStorage.Items.Add(new MapPushpin() { Location = new GeoPoint(70, -100), Text = "1" });
vb
ItemStorage.Items.Add(New MapPushpin() With {.Location = New GeoPoint(70, -100), .Text = "1"})

Inheritance

Object MapItem MapPointer MapPushpin

See Also

MapPushpin Members

Vector Items

DevExpress.XtraMap Namespace