MapCustomElement Class
The class used to draw any custom element on a map.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v18.1.dll
Declaration
Related API Members
The following members accept/return MapCustomElement objects:
Remarks
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.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-different-map-shapes-t139819
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);
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MapCustomElement class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.