Select to view content in your preferred language

Identify doesnt work with second Layer

774
1
06-27-2010 10:59 PM
UlfGrimhardt
Deactivated User
Hi

I have set up an SilverlightApplication with my own ArcGISDynamicMapServiceLayer which consists of a few PointFeatures.
Then i set up an Identify Task, which works perfectly.

But if i try to put another Layer (ArcGISTiledMapServiceLayer) as a Basemap into my Application i can see my feature upon the map, but nothing happens if i CLick them?

Hier is my Map XAML:

<esri:Map Name="map" MouseClick="QueryPoint_MouseClick" BorderBrush="Black" BorderThickness="2">
                <esri:Map.Layers>
                    <!--<esri:ArcGISTiledMapServiceLayer ID="MyLayer"
                          Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2                    D/MapServer" />-->
                          <esri:ArcGISDynamicMapServiceLayer ID="MyLayer"
                          Url="http://423423423.gdfgdf.net/ArcGIS/rest/services/Ulf1/MapServer" />
                          <esri:GraphicsLayer ID="MyGraphicsLayer" />
                </esri:Map.Layers>
</esri:Map>


And the start of my Identify Task:

            IdentifyTask identifyTask = new IdentifyTask("http://423423423.gdfgdf.net/ArcGIS/rest/services/Ulf1/MapServer");
            identifyTask.ExecuteCompleted += IdentifyTask_ExecuteCompleted;
            identifyTask.Failed += IdentifyTask_Failed;
            identifyTask.ExecuteAsync(identifyParams);
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Looks like your issue is depending on the spatial reference of your map.
Perhaps you might try with a web mercator tiled layer : http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer

Normally it should work whatever the spatial reference but...
0 Kudos