Back to Devexpress

MapBubble.MarkerType Property

windowsforms-devexpress-dot-xtramap-dot-mapbubble.md

latest4.5 KB
Original Source

MapBubble.MarkerType Property

Gets or sets a value specifying the appearance of a bubble marker.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(MarkerType.Default)]
public MarkerType MarkerType { get; set; }
vb
<DefaultValue(MarkerType.Default)>
Public Property MarkerType As MarkerType

Property Value

TypeDefaultDescription
MarkerTypeDefault

A MarkerType enumeration value.

|

Available values:

Show 13 items

NameDescription
Default

The default marker type.

| | Square |

A marker is drawn as a square.

| | Diamond |

A marker is drawn as a diamond.

| | Triangle |

A marker is drawn as a triangle.

| | InvertedTriangle |

A marker is drawn as an inverted triangle.

| | Circle |

A marker is drawn as a circle.

| | Plus |

A marker is drawn as a plus sign.

| | Cross |

A marker is drawn as a cross.

| | Star5 |

A marker is drawn as a five pointed star.

| | Star6 |

A marker is drawn as a six pointed star.

| | Star8 |

A marker is drawn as an eight pointed star.

| | Pentagon |

A marker is drawn as a pentagon.

| | Hexagon |

A marker is drawn as a hexagon.

|

Example

csharp
// Create a storage to provide data for the vector layer.
private IMapDataAdapter CreateData() {
    MapItemStorage storage = new MapItemStorage();

    // Add Bubble charts with different values, sizes and 
    // locations to the storage's Items collection.
    storage.Items.Add( new MapBubble() {
        Argument = "A",
        Value = 200,
        Location = new GeoPoint(-45, -60),
        Size = 20,
        Group = 1,
        MarkerType = MarkerType.Diamond
    });
    storage.Items.Add( new MapBubble() {
        Argument = "B",
        Value = 400,
        Location = new GeoPoint(-45, 0),
        Size = 40,
        Group = 2,
        MarkerType = MarkerType.Plus
    });
    storage.Items.Add( new MapBubble() {
        Argument = "C",
        Value = 800,
        Location = new GeoPoint(-45, 60),
        Size = 80,
        Group = 1,
        MarkerType = MarkerType.Cross
    });

    return storage;
}
vb
' Create a storage to provide data for the vector layer.
Private Function CreateData() As IMapDataAdapter
    Dim storage As New MapItemStorage()

    ' Add Bubble charts with different values, sizes and 
    ' locations to the storage's Items collection.
    storage.Items.Add(New MapBubble() With {.Argument = "A", .Value = 200, .Location = New GeoPoint(-45, -60), .Size = 20, .Group = 1, .MarkerType = MarkerType.Diamond})
    storage.Items.Add(New MapBubble() With {.Argument = "B", .Value = 400, .Location = New GeoPoint(-45, 0), .Size = 40, .Group = 2, .MarkerType = MarkerType.Plus})
    storage.Items.Add(New MapBubble() With {.Argument = "C", .Value = 800, .Location = New GeoPoint(-45, 60), .Size = 80, .Group = 1, .MarkerType = MarkerType.Cross})

    Return storage
End Function

See Also

MapBubble Class

MapBubble Members

DevExpress.XtraMap Namespace