MapPolygon
Represents a filled geographic polygon with an outer boundary and optional inner boundaries.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapPolygon : MapGeometry, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement, IExtendedData, IColorizable
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapGeometryMapPolygon
Implements:
Inherited Members
Constructors
Initializes a new instance of the MapPolygon class.
Initializes a new instance of the MapPolygon class.
public MapPolygon(IEnumerable<PointG> outerBoundary)
The outer boundary of this polygon.
Properties
InnerBoundaries
List<List<PointG>>
Gets the inner boundaries.
public List<List<PointG>> InnerBoundaries { get; }
The points.
Gets whether hit testing is limited to the polygon outline; a filled polygon is tested across its area.
protected override bool IsOutline { get; }
Overrides:
OuterBoundary
IEnumerable<PointG>
Gets the outer boundary.
public IEnumerable<PointG> OuterBoundary { get; }
The points.
Methods
Projects the outer and inner boundaries into a graphics path; alternate fill mode makes inner boundaries holes.
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
The viewport whose zoom level is used to project the boundary points.
Returns:The projected polygon path and its map-pixel offset.
Overrides:
Fills and outlines the polygon and draws its resolved text for each wraparound copy.
public override void Paint(IGraphics graphics, IMapViewport viewport)
The graphics context used to draw the polygon.
viewportIMapViewportThe viewport that supplies map projection, pan, zoom, and wraparound state.
Overrides: