mapx在vc中画圆code

来源:互联网 发布:朝鲜火炮知乎 编辑:程序博客网 时间:2024/06/05 12:41
void CTrainView: OnMouseDownMap1(short Button, short Shift, float X, float Y) 
{
double mapx,mapy;
m_mapx.ConvertCoord(
&X,&Y,&mapx,&mapy,miScreenToMap);
CMapXPoint point;
  point.CreateDispatch(point.GetClsid());
  point.Set(mapx,mapy);
  CMapXFeature ft;
  ft
=m_mapx.GetFeatureFactory().CreateCircularRegion(miCircleTypeScreen, point, 3, miUnitDegree,100);
  m_mapx.GetLayers().Item(
"联锁层").AddFeature(ft);

}