<?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 Re: Identify features also support FeatureCollectionLayer in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533731#M6504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FeatureCollectionLayer is a group layer of FeatureLayers, so instead parse in the layers inside the collection. Ie&lt;/P&gt;&lt;P&gt;var sublayer = ((FeatureCollectionLayer)layer).Layers[0];&lt;/P&gt;&lt;P&gt;var idResults = await MyMapView.IdentifyLayerAsync(sublayer, e.Position, pixelTolerance, returnPopupsOnly, maxResults);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 17:49:24 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2017-12-11T17:49:24Z</dc:date>
    <item>
      <title>Identify features also support FeatureCollectionLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533730#M6503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does IdentifyLayerAsync Method also support FeatureCollectionLayer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/latest/forms/guide/identify-features.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/net/latest/forms/guide/identify-features.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/latest/ios/api-reference//html/T_Esri_ArcGISRuntime_Mapping_FeatureCollectionLayer.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/net/latest/ios/api-reference//html/T_Esri_ArcGISRuntime_Mapping_FeatureCollectionLayer.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GeoElement list is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OperationalLayers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pixelTolerance &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; returnPopupsOnly &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; maxResults &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; idResults &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;IdentifyLayerAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Position&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pixelTolerance&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; returnPopupsOnly&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; maxResults&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;GeoElement idElement &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; idResults&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GeoElements&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feature idFeature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; idElement &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; Feature&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;//idLayer.SelectFeature(idFeature);&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

FeatureCollectionLayer idLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; idResults&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LayerContent &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; FeatureCollectionLayer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

FeatureCollectionTable tables &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;idLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureCollection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Tables&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FirstOrDefault&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tables&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LayerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Fields&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533730#M6503</guid>
      <dc:creator>TakahiroKAMIYA</dc:creator>
      <dc:date>2021-12-11T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Identify features also support FeatureCollectionLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533731#M6504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FeatureCollectionLayer is a group layer of FeatureLayers, so instead parse in the layers inside the collection. Ie&lt;/P&gt;&lt;P&gt;var sublayer = ((FeatureCollectionLayer)layer).Layers[0];&lt;/P&gt;&lt;P&gt;var idResults = await MyMapView.IdentifyLayerAsync(sublayer, e.Position, pixelTolerance, returnPopupsOnly, maxResults);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 17:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533731#M6504</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-12-11T17:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Identify features also support FeatureCollectionLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533732#M6505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...actually did you look at the idResults.SublayerResults ? Come to think of it, your geoelements might just be in there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 17:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533732#M6505</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-12-11T17:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Identify features also support FeatureCollectionLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533733#M6506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Morten,&lt;/P&gt;&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layer = MyMapView.Map.OperationalLayers[0];&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;var idResults = await MyMapView.IdentifyLayerAsync(&lt;SPAN&gt;layer&lt;/SPAN&gt;, e.Position, pixelTolerance, returnPopupsOnly, maxResults);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were able to get elements of GeoElements from idResults.SublayerResults.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 09:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-features-also-support/m-p/533733#M6506</guid>
      <dc:creator>TakahiroKAMIYA</dc:creator>
      <dc:date>2017-12-13T09:13:07Z</dc:date>
    </item>
  </channel>
</rss>

