windowsforms-devexpress-dot-xtramap-2c7ab9f2.md
The class used to draw any custom element on a map.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public class MapCustomElement :
MapPointer
Public Class MapCustomElement
Inherits MapPointer
The following members return MapCustomElement objects:
The following image shows an example of a map custom element.
Important
The custom element does not provide any default image and the element displays only a text if the image is not specified.
var customElement = new MapCustomElement() { Location = new GeoPoint(50, 50), Text = "This is a MapCustomElement object" };
var image = new Bitmap(imageFilePath);
customElement.Image = new Bitmap(image, new Size(40, 40));
ItemStorage.Items.Add(customElement);
Dim customElement = New MapCustomElement() With {.Location = New GeoPoint(50, 50), .Text = "This is a MapCustomElement object"}
Dim image = New Bitmap(imageFilePath)
customElement.Image = New Bitmap(image, New Size(40, 40))
ItemStorage.Items.Add(customElement)
Object MapItem MapPointer MapCustomElement
See Also