Search code examples
wpfarcgisesri

ArcGIS Runtime for wpf - PointDataSource mapTip


I have GraphicsLayer in my application and I use PointDataSource like 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;

Have someone any idea how to add MapTips to graphics symbols?


Solution

  • GraphicsLayer class has a MapTip property.

    A detailed example if found here