AnsweredAssumed Answered

How to identify the object on which is made a click

Question asked by aviabunin on Dec 4, 2014
Latest reply on Dec 4, 2014 by aviabunin

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"                                  
                                  MouseEnter="FeatureLayer_MouseEnter" >
    <esri:GraphicsLayer ID="MyGraphicsLayer" MouseLeftButtonUp="GraphicsLayer_MouseLeftButtonUp" />

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?