本文整理汇总了C#中MapView.AddOverlayGraphic方法的典型用法代码示例。如果您正苦于以下问题:C# MapView.AddOverlayGraphic方法的具体用法?C# MapView.AddOverlayGraphic怎么用?C# MapView.AddOverlayGraphic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MapView
的用法示例。
在下文中一共展示了MapView.AddOverlayGraphic方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddToMapOverlay
///// <summary>
///// Make a CIMPointGraphic that can be added to the map overlay
///// </summary>
///// <param name="point">The location of the graphic</param>
///// <returns></returns>
//internal static CIMPointGraphicHelper MakeCIMPointGraphic(PointN point)
//{
// return new CIMPointGraphicHelper(point);
//}
/// <summary>
/// Add a point to the specified mapview
/// </summary>
/// <param name="mapView">The mapview to whose overlay the graphic will be added</param>
/// <returns>The graphic id assigned to the graphic in the overlay</returns>
public static void AddToMapOverlay(ArcGIS.Core.CIM.PointN point, MapView mapView) {
if (!mapView.Is2D)
return;//only currently works for 2D
CIMPointGraphicHelper graphicHlpr = new CIMPointGraphicHelper(point);
graphicHlpr.graphicID = mapView.AddOverlayGraphic(graphicHlpr.XML);
_lookup[mapView.Map.RepositoryID] = graphicHlpr;
}