<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IdentifyTaks not working properlly in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/identifytaks-not-working-properlly/m-p/198776#M4907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When using IdentifyTask (IT) from SL codebehing, IT is working only for LayerOption.all enumeration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGISDynamicMapServiceLayer to display layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;esri:ArcGISDynamicMapServiceLayer ID="testLayer" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://wexgisag1/ArcGIS/rest/services/Envision/MapServer" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VisibleLayers="105"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImageFormat="PNG8" /&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer is displayed and is working as it should. However when I try to identify feature on the layer by IdentifyTask:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
IdentifyParameters identifyParameters = new IdentifyParameters();
// i've tried LayerOption.top and as well as adding Layers Ids as another filter
// w/o luck
identifyParameters.LayerOption = LayerOption.visible;
identifyParameters.ReturnGeometry = false;

identifyParameters.MapExtent = epaMap.Extent;
identifyParameters.Width = (int)epaMap.ActualWidth;
identifyParameters.Height = (int)epaMap.ActualHeight;

identifyParameters.Geometry = _savedLocation;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not getting &lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt; results back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I will change parameters to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
identifyParameters.LayerOption = LayerOption.all;
// w/o adding filter on layers id operation is taking much to long but is working too
identifyParameters.LayerIds.Add(105); 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting results back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having same issue with querying on the REST xxx/Identify site. Therefore maybe this is related more to map service settings, if so, what can be set wrong there (if there is smth)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not GIS guy, I'm just doing demo to show what my company can use how this can be used. I did not install and configure ESRI/ArcGIS Servers maps etc. that was done by someone else (i don't even know who).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why this is not working as it supposed to?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 10:50:17 GMT</pubDate>
    <dc:creator>JakubGutkowski</dc:creator>
    <dc:date>2010-08-18T10:50:17Z</dc:date>
    <item>
      <title>IdentifyTaks not working properlly</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/identifytaks-not-working-properlly/m-p/198776#M4907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When using IdentifyTask (IT) from SL codebehing, IT is working only for LayerOption.all enumeration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGISDynamicMapServiceLayer to display layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;esri:ArcGISDynamicMapServiceLayer ID="testLayer" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://wexgisag1/ArcGIS/rest/services/Envision/MapServer" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VisibleLayers="105"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImageFormat="PNG8" /&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer is displayed and is working as it should. However when I try to identify feature on the layer by IdentifyTask:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
IdentifyParameters identifyParameters = new IdentifyParameters();
// i've tried LayerOption.top and as well as adding Layers Ids as another filter
// w/o luck
identifyParameters.LayerOption = LayerOption.visible;
identifyParameters.ReturnGeometry = false;

identifyParameters.MapExtent = epaMap.Extent;
identifyParameters.Width = (int)epaMap.ActualWidth;
identifyParameters.Height = (int)epaMap.ActualHeight;

identifyParameters.Geometry = _savedLocation;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not getting &lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt; results back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I will change parameters to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
identifyParameters.LayerOption = LayerOption.all;
// w/o adding filter on layers id operation is taking much to long but is working too
identifyParameters.LayerIds.Add(105); 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting results back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having same issue with querying on the REST xxx/Identify site. Therefore maybe this is related more to map service settings, if so, what can be set wrong there (if there is smth)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not GIS guy, I'm just doing demo to show what my company can use how this can be used. I did not install and configure ESRI/ArcGIS Servers maps etc. that was done by someone else (i don't even know who).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why this is not working as it supposed to?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/identifytaks-not-working-properlly/m-p/198776#M4907</guid>
      <dc:creator>JakubGutkowski</dc:creator>
      <dc:date>2010-08-18T10:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTaks not working properlly</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/identifytaks-not-working-properlly/m-p/198777#M4908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;identifyParameters.LayerOption = LayerOption.visible;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LayerOption.visible means that the identify is based on the layers visible when the service has been published (not the layers visible during the last display).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This might explain your behavior if your layer "105" is not visible by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, your code &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
identifyParameters.LayerOption = LayerOption.all;
identifyParameters.LayerIds.Add(105);
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;is the right one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/identifytaks-not-working-properlly/m-p/198777#M4908</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-11T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTaks not working properlly</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/identifytaks-not-working-properlly/m-p/198778#M4909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dominique, i thought it was because of this, however IMO you (ESRI) should update ArcGIS API Doc for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.LayerOption.html"&gt;LayerOption&lt;/A&gt;&lt;SPAN&gt; enum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All visible layers at the specified location&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not directly saying that Visible Layers defined on the Server not Visible Layers in Map control.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 10:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/identifytaks-not-working-properlly/m-p/198778#M4909</guid>
      <dc:creator>JakubGutkowski</dc:creator>
      <dc:date>2010-08-31T10:59:47Z</dc:date>
    </item>
  </channel>
</rss>

