Dear Gurus!
I have next xaml:
<esri:Map x:Name="Map"> <esri:ArcGISDynamicMapServiceLayer ID="BaseLayer" Url="http://localhost:6080/ArcGIS/rest/services/streetRK/MapServer" /> <esri:FeatureLayer ID="bridges" Url="http://localhost:6080/ArcGIS/rest/services/streetRK/MapServer/2" MouseEnter="FeatureLayer_MouseEnter" > </esri:FeatureLayer> <esri:GraphicsLayer ID="MyGraphicsLayer" MouseLeftButtonUp="GraphicsLayer_MouseLeftButtonUp" /> </esri:Map> There many feature layers in BaseLayer. I need to know on wich object is made click. If click is made on GraphicLayer - there is no problem. When I click on some feature (on some sublayer) of the BaseLayer, as it seems to me, the only way is to create some featureLayer, then I will can to know feature, on wich click is made. 1. Is it true? 2. Can I change featureLayer by change in code behind url of "bridges" feature layer? I would not want to create all possible layers in the xaml? 3. Is it right way?
Solved! Go to Solution.
I just noticed that your post was for the WPF API and not for .Net API so we might be more interested by the WPF/SL Identify sample.
No you don't need to create feature layers to get infos about features.
You can use an Identify task that is executed at server side and returns info about the features under the specified geometry.
There is a sample here: arcgis-runtime-samples-dotnet/IdentifySample.xaml.cs at master · Esri/arcgis-runtime-samples-dotnet ...
I just noticed that your post was for the WPF API and not for .Net API so we might be more interested by the WPF/SL Identify sample.
Yes, sorry. What I must to do now?
P.S.I'll see the second example. The first link does not open.