ArcGIS Runtime for wpf - PointDataSource mapTip

时间:2012-10-24 07:42:00

标签: wpf arcgis esri

我的应用程序中有GraphicsLayer,我使用像项目源一样的PointDataSource:

        trackEntryPointDataSource = new PointDataSource();
        trackEntryPointDataSource.DataSpatialReference = 
                                  new SpatialReference((int)CommonEpsgCodes.JTSKEN);
        trackEntryPointDataSource.XCoordinateBinding = 
                                  new System.Windows.Data.Binding("XJTSK");
        trackEntryPointDataSource.YCoordinateBinding = 
                                  new System.Windows.Data.Binding("YJTSK");
        SimpleRenderer srd = new SimpleRenderer();
        srd.Symbol = new SimpleMarkerSymbol()
        {
            Color = new SolidColorBrush(Colors.Yellow)
        };

        EntriesLyr.GraphicsSource = trackEntryPointDataSource;
        EntriesLyr.Renderer = srd;

有人知道如何将MapTips添加到图形符号吗?

1 个答案:

答案 0 :(得分:2)

GraphicsLayer类有一个MapTip属性。

如果找到here

的详细示例