Trouble displaying line with GraphicTracker

473
1
08-03-2011 06:40 AM
RussellWittmer
New Contributor II
Hi All,

I am trying to use a graphictracker to display a cartographiclinesymbol.  When I add the symbol i only get the end cap and not the actual line itself.  Below is  a small excerpt of my code.


public drawItem(IPoint fromPoint, IPoint toPoint)
{
IPointCollection line = new PolylineClass();
line.AddPoint(fromPoint, Type.Missing, Type.Missing);
line.AddPoint(toPoint, Type.Missing, Type.Missing);


//EventRender returns the explicit conversion of a cartographiclinesymbol to ISymbol
ISymbol sym = EventRenderer.Instance.GetAccessPointLineSymbol();

IGraphicTrackerSymbol arrow = arrow_Tracker.CreateSymbol(sym,null);
arrow_Tracker.Add(line as IGeometry, arrow);
}



Using the ISymbol to write to the ScreenDisplay does work in displaying the correct image but for other issues at work we need to not draw that item on the ScreenDisplay.


Any Ideas??
0 Kudos
1 Reply
RussellWittmer
New Contributor II
UPDATE

I have taken ESRI's graphicTracker sample and modified the code to take my cartographiclinesymbol and have found that it displays perfectly.

Now that i have found that my idea does work using the graphicTracker i have to find what is interfereing with the GraphicsTracker's ability to display the image. 


Any ideas?
0 Kudos