MapPath
Represents one or more closed geographic paths that can be filled and outlined as a map geometry.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapPath : MapGeometry, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement, IExtendedData, IColorizable
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapGeometryMapPath
Implements:
Inherited Members
Constructors
Initializes a new instance of the MapPath class.
public MapPath(Collection<Collection<PointG>> points)
The points of the path.
Fields
Stores one geographic bounding rectangle per component in Points.
protected RectangleG[] allBoundingRectangles
Properties
Gets whether hit testing considers the filled path rather than only its outline.
protected override bool IsOutline { get; }
Overrides:
Gets the points of the path.
public Collection<Collection<PointG>> Points { get; }
The points.
Methods
Builds the closed graphics path for every component at the viewport's current zoom level.
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
The viewport whose zoom level is used to project the geographic points.
Returns:The projected path and its map-pixel offset.
Overrides:
Gets the geographic bounds of each component path.
public override RectangleG[] GetGeographicBounds()
One bounding rectangle for each collection in Points.
Overrides:
Fills and outlines each path component, repeating the geometry for the viewport's horizontal wraparound copies.
public override void Paint(IGraphics graphics, IMapViewport viewport)
The graphics context used to draw the paths.
viewportIMapViewportThe viewport that supplies map projection, pan, zoom, and wraparound state.
Overrides: