1

我的应用程序中有 GraphicsLayer,我使用 PointDataSource,如 itemsSource:

        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;

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

4

1 回答 1

2

GraphicsLayer 类有一个 MapTip 属性。

如果在此处找到详细示例

于 2012-10-28T07:16:45.310 回答