MapX画圆

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);

}

 

你可能感兴趣的:(map)