ArrowRenderer Constructor (Color, Int32, ArrowProperties, Single) |
Namespace: Telogis.GeoBase.Mapping
public ArrowRenderer( Color lineColor, int lineWidth, ArrowProperties arrowProperties, float miterLimit )
using Telogis.GeoBase; using Telogis.GeoBase.Mapping; namespace LinesAndArrows { public partial class Form1 : Form { public Form1() { RendererList renderList = new RendererList(); InitializeComponent(); mapMain.Center = new LatLon(34.061510, -118.240412); mapMain.Zoom = 9; mapMain.Renderer = renderList; // Create arrow properties ArrowProperties TheArrowProperties = new ArrowProperties(); TheArrowProperties.Spacing = 30; TheArrowProperties.Width = 15; TheArrowProperties.Length = 30; TheArrowProperties.Color = Color.Purple; // Create ArrowRenderer ArrowRenderer TheArrowLine = new ArrowRenderer(Color.AliceBlue, 6, TheArrowProperties); // Create a line Telogis.GeoBase.Geometry.LineString ArbitraryLine = new Telogis.GeoBase.Geometry.LineString( new Telogis.GeoBase.LatLon[] { new Telogis.GeoBase.LatLon(34.058078,-118.294401), new Telogis.GeoBase.LatLon(34.059573,-118.192107) }); // Use the line points for the arrow line TheArrowLine.LatLons = ArbitraryLine.Points; renderList.Add(TheArrowLine); mapMain.Invalidate(); } } }