c#特殊画点
大家好,这是我第一次发贴,
我想请教一个问题,需要根据已经给出的经纬度坐标画点,这里假设有五个,然后使这五个点连成一条线,最后在动态跟踪层上再画个点,并且使该点沿这条线移动,请大家帮哈忙,我自己的部分代码是:
double[,] jwd = { { 116.28, 39.54 }, { 114.55, 40.51 }, { 112.55, 28.12 }, { 106.33, 30.39 }, { 113.18, 23.10 } };
soPoint point = new soPointClass();
for(int i=1;i<5;i++)
for (int j = 1; j < 2; j++)
{
point.x = jwd[i, 1];
point.y = jwd[i, 2];
//用来画点得,不过没完成
private void cmdtrack_Click(object sender, EventArgs e)
{
this.axSuperMap1.Action = seAction.scaTrackPoint;
}
private void axSuperMap1_Tracked(object sender, EventArgs e)
{
soGeometry objGeometry = axSuperMap1.TrackedGeometry;
//定义风格
soStyle objStyle = new soStyleClass();
objStyle.PenColor = (uint)ColorTranslator.ToOle(Color.BlueViolet);
objStyle.SymbolSize = 50;
soTrackingLayer trackLayer = axSuperMap1.TrackingLayer;
//trackLayer.ClearEvents();
trackLayer.AddEvent(objGeometry, objStyle, "");
trackLayer.Refresh();
//在动态跟踪层上加得点,实现了,但没有实现在由五个点组成的线上移动
------解决方案--------------------高深
------解决方案--------------------帮你顶一下.