杨
杨子
Unregistered / Unconfirmed
GUEST, unregistred user!
fFtrFactory := TForm2(Form1.ActiveMDIChild).Map1.FeatureFactory;
pItem := CoPoint.Create;
pItem.Set(X1, Y1);
fNewSymbol := fFtrFactory.CreateSymbol(pItem, TForm2(Form1.ActiveMDIChild).Map1.DefaultStyle);
fMapSymbol := MyLayer.AddFeature(fNewSymbol);
fArray[Dest_JH].fFeature:=fMapSymbol;
fArray[Dest_JH].fFeature.KeyValue:=IntToStr(Dest_JH)+'car';
fArray[Dest_JH].sName :=inttostr(Dest_JH);
fArray[Dest_JH].iSpeed:=Dest_JH;
fArray[Dest_JH].value1:='123';
VarClear(fNewSymbol);
VarClear(fMapSymbol);实现了地图上显示定位图片 但是车辆多了都是一样图标分不那个图标是那辆车,如何在图标上显示车号,即显示标题
pItem := CoPoint.Create;
pItem.Set(X1, Y1);
fNewSymbol := fFtrFactory.CreateSymbol(pItem, TForm2(Form1.ActiveMDIChild).Map1.DefaultStyle);
fMapSymbol := MyLayer.AddFeature(fNewSymbol);
fArray[Dest_JH].fFeature:=fMapSymbol;
fArray[Dest_JH].fFeature.KeyValue:=IntToStr(Dest_JH)+'car';
fArray[Dest_JH].sName :=inttostr(Dest_JH);
fArray[Dest_JH].iSpeed:=Dest_JH;
fArray[Dest_JH].value1:='123';
VarClear(fNewSymbol);
VarClear(fMapSymbol);实现了地图上显示定位图片 但是车辆多了都是一样图标分不那个图标是那辆车,如何在图标上显示车号,即显示标题