//添加虚拟线;
private void addHoverLineSegment(Point2D p0 , Point2D p1 , int index0 , int index1 , Feature feature , Point2DCollection points , int partIndex)
{
GeoLine line = new GeoLine();
line.Parts.Add(new Point2DCollection() { p0 , p1 });
Feature segment = new Feature() { Geometry = line , Style = hoverLineStyle };
segment.SetZIndex(1);
segment.Attributes.Add("Point2DCollection" , points);
segment.Attributes.Add("Feature" , feature);
segment.Attributes.Add("Index0" , index0);
segment.Attributes.Add("Index1" , index1);
segment.Attributes.Add("PartIndex" , partIndex);
hoverLayer.Features.Add(segment);
}