A newer version of this page is available. Switch to the current version.

MapCustomElement Class

The class used to draw any custom element on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.1.dll

Declaration

public class MapCustomElement :
    MapPointer
Public Class MapCustomElement
    Inherits MapPointer

Related API Members

The following members accept/return MapCustomElement objects:

Remarks

The following image shows an example of a map custom element.

MapCustomElementExample

IMPORTANT

The custom element does not provide any default image and the element displays only a text if the image is not specified.

Examples

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);

Inheritance

Object
MapItem
MapPointer
MapCustomElement
See Also