MapRoute
Draws an open path through geographic points in the order supplied, projecting each point into the current viewport.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapRoute : MapPathBasedVisualElement, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapRoute
Implements:
Inherited Members
Constructors
Initializes a new instance of the MapRoute class.
public MapRoute(List<PointG> points, RectangleG geographicBounds)
The points.
geographicBoundsRectangleGThe geographic bounds.
Initializes a route from an ordered set of geographic points and derives its geographic bounds.
public MapRoute(params PointG[] points)
The geographic points to connect, in route order.
Methods
Creates the viewport-specific path by projecting the route points at the current zoom level.
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
The viewport used to project the geographic points.
Returns:A path and pixel offset used to position the route in the viewport.
Overrides:
Paints the element to the specified graphics.
public override void Paint(IGraphics graphics, IMapViewport viewport)
The graphics.
viewportIMapViewportThe viewport.
Overrides: