<?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: identifyLayersWithMaxResults crashes app in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823286#M1968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I was running App Studio 3.053, upgraded to the latest release(3.1) and this solves my issue the crash stops and I'm able to get past to the onIdentifyLayersStatusChange event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a follow up question, is it possible to select a feature using this process as well? Since I don't know the feature&amp;nbsp; layer its selecting and the only way I know how to select a feature is featureLayer.selectFeatures()&lt;/P&gt;&lt;PRE style="background-color: #ffffff; border: 0px;"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 18:31:10 GMT</pubDate>
    <dc:creator>KyleSchultz1</dc:creator>
    <dc:date>2018-10-25T18:31:10Z</dc:date>
    <item>
      <title>identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823280#M1962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a map with multiple feature layers.&lt;/P&gt;&lt;P&gt;I'm trying to identify a layer that is clicked on but I do not know which one will be clicked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have this line of code which as I understand it should accomplish what I want to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;mapView&lt;/SPAN&gt;.identifyLayersWithMaxResults(&lt;SPAN style="color: #2985c7;"&gt;mouse&lt;/SPAN&gt;.x,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;mouse&lt;/SPAN&gt;.y,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;22&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;false&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;1&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which should trigger in here&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;onIdentifyLayerStatusChanged&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

but instead what happens this line of code &lt;SPAN style="color: #000000;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN&gt;.identifyLayersWithMaxResults(&lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;mouse&lt;/SPAN&gt;&lt;SPAN&gt;.x,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;mouse&lt;/SPAN&gt;&lt;SPAN&gt;.y,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;22&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;
crashes my app everytime

I was trying to follow the instructions per 
&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/guide/identify-features.htm" title="https://developers.arcgis.com/qt/latest/qml/guide/identify-features.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Identify features—ArcGIS Runtime SDK for Qt | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;

&lt;/PRE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;H2 style="color: #4c4c4c; background-color: #ffffff; font-size: 1.9994rem; margin: 0px 0px 0.75rem;" id="toc-hId-1818294641"&gt;Identify features in all feature layers&lt;/H2&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.5rem;"&gt;When you do not know which specific layer to identify on, you can identify items in any layer in the map or scene. Change the first workflow above so that you do not specify the layer to identify. This time, the results are returned as a list of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px 1px 1px; border-style: solid none solid solid; border-color: #efefef initial #efefef #efefef; padding: 0px 0px 0px 0.15rem;"&gt;IdentifyLayerResult&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;instead of a single result.&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.5rem;"&gt;Layers that do not support identify or do not have any results based on the inputs are not included in the returned list.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:57:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823280#M1962</guid>
      <dc:creator>KyleSchultz1</dc:creator>
      <dc:date>2021-12-12T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823281#M1963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is weird, are you running it in the AppStudio AppRun? AppStudio Player? What device(s) are you using?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see any error message(s) in the console when the app crashes?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cc: &lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌ , to see anyone in this group know anything about this specific issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823281#M1963</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-10-25T16:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823282#M1964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on this info, I don't know why it is crashing. But one thing to note is that you are calling identifyLayer&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;s&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;with an "s" but your signal is set up for identifyLayer (singular). Instead it should be:&lt;/P&gt;&lt;PRE style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #800000; border: 0px; font-weight: inherit;"&gt;onIdentifyLayer&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/SPAN&gt;StatusChanged: {&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823282#M1964</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2018-10-25T16:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823283#M1965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It crashes in both App Studio Player and through the Qt creator debug mode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:48:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823283#M1965</guid>
      <dc:creator>KyleSchultz1</dc:creator>
      <dc:date>2018-10-25T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823284#M1966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you get a call stack?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823284#M1966</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2018-10-25T16:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823285#M1967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no I cannot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823285#M1967</guid>
      <dc:creator>KyleSchultz1</dc:creator>
      <dc:date>2018-10-25T17:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823286#M1968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I was running App Studio 3.053, upgraded to the latest release(3.1) and this solves my issue the crash stops and I'm able to get past to the onIdentifyLayersStatusChange event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a follow up question, is it possible to select a feature using this process as well? Since I don't know the feature&amp;nbsp; layer its selecting and the only way I know how to select a feature is featureLayer.selectFeatures()&lt;/P&gt;&lt;PRE style="background-color: #ffffff; border: 0px;"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 18:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823286#M1968</guid>
      <dc:creator>KyleSchultz1</dc:creator>
      <dc:date>2018-10-25T18:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823287#M1969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So AppStudio 3.0 is running ArcGIS Runtime 100.2 and AppStudio 3.1 is running ArcGIS Runtime 100.3, it could be the reason.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 20:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823287#M1969</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-10-25T20:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823288#M1970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the identify result gives access to the LayerContent, so that can be your layer for selecting. QML will implicitly cast LayerContent to FeatureLayer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 21:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823288#M1970</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2018-10-25T21:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823289#M1971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to make sure I'm understanding this correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anything retrieved by&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;mapView&lt;/SPAN&gt;.identifyLayersWithMaxResults()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will return in a variable defined like this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000000;"&gt;identifyLayersResults&lt;/SPAN&gt;.geoElements

because so far any feature I click on returns empty or null variables&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823289#M1971</guid>
      <dc:creator>KyleSchultz1</dc:creator>
      <dc:date>2021-12-12T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: identifyLayersWithMaxResults crashes app</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823290#M1972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I feel dumb now, as it clearly states in the documentation&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; border: 0px; font-weight: inherit;"&gt;identifyLayersResults is a list&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; border: 0px; font-weight: inherit;"&gt;so retrieving it would be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;identifyLayersResults&lt;SPAN&gt;&amp;nbsp;[0].geoElements[0]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 17:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/identifylayerswithmaxresults-crashes-app/m-p/823290#M1972</guid>
      <dc:creator>KyleSchultz1</dc:creator>
      <dc:date>2018-10-26T17:23:28Z</dc:date>
    </item>
  </channel>
</rss>

