Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MapPath Class

The class used to draw a path on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

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

The following members return MapPath objects:

#Remarks

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

MapPathExample

#Example

View 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);
See Also