Topic: Drawing lines using "OnlineMapsDrawingLine" constantly how to handle ?
So my app has to draw line behind a marker when the marker is constantly moving, so new points are added to the line segments, I'm currently using
lineSegment?.Dispose();
lineSegment?.DestroyInstance();
lineSegment = new OnlineMapsDrawingLine(listPoints, Color.red, 2);
and every time the function call is happens so i get new points and draw new lines from scratch, I'm guess I've done something horribly wrong here cause the garbage collection is through the roof, is there a better way to handle the addition of new points in an existing line segment or how to handle this scenario, I'm using online maps v3 can provide more details if necessary.