谁帮我看看下面的代码有没有什么问题,老是画不出直线来
points包含了直线的两个pointtempLayer = this.axMap1.Layers.CreateLayer("TempLayer", null, 1, 32, this.axMap1.DisplayCoordSys);
tempLayer.ZoomLayer = true;
tempLayer.Visible = true;
this.axMap1.Layers.AnimationLayer = tempLayer;
Feature ftr = this.axMap1.FeatureFactory.CreateLine(points, this.axMap1.DefaultStyle);
this.axMap1.Layers["TempLayer"].AddFeature(ftr,new MapXLib.RowValues());
this.axMap1.Layers.AnimationLayer.Refresh();
points包含了直线的两个pointtempLayer = this.axMap1.Layers.CreateLayer("TempLayer", null, 1, 32, this.axMap1.DisplayCoordSys);
tempLayer.ZoomLayer = true;
tempLayer.Visible = true;
this.axMap1.Layers.AnimationLayer = tempLayer;
Feature ftr = this.axMap1.FeatureFactory.CreateLine(points, this.axMap1.DefaultStyle);
this.axMap1.Layers["TempLayer"].AddFeature(ftr,new MapXLib.RowValues());
this.axMap1.Layers.AnimationLayer.Refresh();
MapXLib.Feature ftr = new MapXLib.Feature();
MapXLib.Style newStyle = new MapXLib.Style();
MapXLib.Layer lyr = axMap1.Layers._Item("SignalLayer");
MapXLib.FeatureFactory ff = axMap1.FeatureFactory;
MapXLib.Points pts = new MapXLib.Points(); newStyle.LineWidth = 2;
newStyle.LineColor = 255;
newStyle.LineStyle = (MapXLib.PenStyleConstants)9;
axMap1.AutoRedraw = false;
lyr.Editable = true;
ftr = ff.CreateLine(pts, newStyle);
ftr = axMap1.Layers._Item("SignalLayer").AddFeature(ftr, new MapXLib.RowValuesClass());
ftr.Update(ftr, new MapXLib.RowValuesClass()); lyr.Refresh();
axMap1.AutoRedraw = true;