2012-10-24 1 views
1

Je GraphicsLayer dans ma demande et je l'utilise comme PointDataSource ItemsSource:Runtime ArcGIS pour WPF - PointDataSource info-bulle

 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; 

Demandez à quelqu'un une idée comment ajouter MapTips aux symboles graphiques?

Répondre

2

La classe GraphicsLayer a une propriété MapTip.

Un exemple détaillé se trouve here

+0

merci cela me aider – mavl

Questions connexes