I am using the sample code for Map tips . I am not getting any features in the output . I am not getting any exception . Can anyone tell me what might be the problem . Thanks <Grid x:Name="LayoutRoot" Background="White"> <Grid.Resources> <esriSymbols:SimpleFillSymbol x:Name="DefaultFillSymbol" Fill="#01FFFFFF" BorderBrush="#88000000" BorderThickness="2" /> </Grid.Resources>
Private Sub GraphicsLayer_Initialized(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim query As New ESRI.ArcGIS.Client.Tasks.Query() query.OutFields.Add("*") 'query.ReturnGeometry = True 'query.Geometry = New ESRI.ArcGIS.Client.Geometry.Envelope()
Private Sub querytask_executed(ByVal sender As Object, ByVal e As QueryEventArgs) Dim featureSet As FeatureSet = e.FeatureSet
Dim graphicsLayer As ESRI.ArcGIS.Client.GraphicsLayer = TryCast(MyMap.Layers("MyGraphicsLayer"), GraphicsLayer) MyMapTip.GraphicsLayer = graphicsLayer
If featureSet IsNot Nothing AndAlso featureSet.Features.Count > 0 Then For Each feature As Graphic In featureSet.Features feature.Symbol = DefaultFillSymbol graphicsLayer.Graphics.Add(feature) Next feature End If