MapPolyline
Represents an open line formed by connecting geographic points in their supplied order.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapPolyline : MapGeometry, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement, IExtendedData, IColorizable
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapGeometryMapPolyline
Implements:
Inherited Members
Constructors
Initializes a new instance of the MapPolyline class.
Creates a polyline from a variable-length list of geographic points.
public MapPolyline(params PointG[] points)
The ordered points that define the line.
Properties
Methods
Projects the ordered points into a graphics path for the viewport's current zoom level.
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
The viewport whose zoom level is used to project the points.
Returns:The projected line path and its map-pixel offset.
Overrides:
Draws the polyline outline, repeating it for the viewport's horizontal wraparound copies.
public override void Paint(IGraphics graphics, IMapViewport viewport)
The graphics context used to draw the line.
viewportIMapViewportThe viewport that supplies map projection, pan, zoom, and wraparound state.
Overrides: