Skip to main content
A newer version of this page is available. .

MapPath Class

The class used to draw a path on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.1.dll

Declaration

public class MapPath :
    MapPathBase<MapPathSegment>,
    IPathCore,
    ISupportCoordPoints,
    IHitTestableOwner,
    IHitTestableElement,
    IMultiPathSegmentsProvider,
    IEditableItem

The following members accept/return MapPath objects:

Remarks

The following image shows an example of a map path object.

MapPathExample

Example

var path = new MapPath();
var segment = new MapPathSegment();
segment.Points.AddRange(new GeoPoint[] {
    new GeoPoint(20, 20),
    new GeoPoint(20, 30),
    new GeoPoint(30, 30) });
path.Segments.Add(segment);
segment = new MapPathSegment();
segment.Points.AddRange(new GeoPoint[] {
    new GeoPoint(30, 32),
    new GeoPoint(20, 32),
    new GeoPoint(20, 42) });
path.Segments.Add(segment);
ItemStorage.Items.Add(path);

The following code snippets (auto-collected from DevExpress Examples) contain references to the MapPath 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.

See Also