MapPolyline Class
The class used to draw a polyline on a map.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v18.1.dll
Declaration
public class MapPolyline :
MapShape,
IPointContainerCore,
ISupportCoordPoints,
ISupportIntermediatePoints,
IEditableItem
Related API Members
The following members accept/return MapPolyline objects:
Remarks
The following image shows an example of a map polyline object.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-different-map-shapes-t139819
var polyline = new MapPolyline() { StrokeWidth = 4, Stroke = Color.Yellow };
polyline.Points.AddRange(new GeoPoint[] {
new GeoPoint(-29,130),
new GeoPoint(-40,140),
new GeoPoint(-20,150)
});
ItemStorage.Items.Add(polyline);
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MapPolyline 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.