<?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: How to get points created using PointBuilder QML Type to listen to click events?  in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-get-points-created-using-pointbuilder-qml/m-p/866958#M3183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cc: &lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2019 21:05:04 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2019-10-11T21:05:04Z</dc:date>
    <item>
      <title>How to get points created using PointBuilder QML Type to listen to click events?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-get-points-created-using-pointbuilder-qml/m-p/866956#M3181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a feature for my app in AppStudio 4 where if the user clicks on one of the points on the given map, the map extent and zoom will change to center the selected point. I can't figure out how to do this. Here's my code and explanations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pulling the coordinates with a http request remotely. As the data gets updated, the points will update themselves. I was able to get this working fine. Inside my http request, for each data record, I use PointBuilder to create points and graphics on the map. See below:&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; sr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SpatialReference"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; wkid&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4326&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; pointBuilder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"PointBuilder"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
pointBuilder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sr&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
pointBuilder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setXY&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;record&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;long&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; record&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lat&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; geom &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pointBuilder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geom&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; graphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Graphic"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; geometry&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; geom &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;
         graphicsOverlay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;append&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;graphic&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="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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record refers to each data point I'm pulling with the http request.&lt;/P&gt;&lt;P&gt;This works fine and I'm able to view my points on the map. But now, I want to click or tap on the point graphic and have it respond, for instance by centering the map on the selected point. Seems like pretty basic map-component interaction behavior. But I can't find much documentation on this. How can I go about doing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-get-points-created-using-pointbuilder-qml/m-p/866956#M3181</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2021-12-12T10:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get points created using PointBuilder QML Type to listen to click events?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-get-points-created-using-pointbuilder-qml/m-p/866957#M3182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this &lt;A href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_QMLSamples/DisplayInformation/IdentifyGraphics"&gt;example &lt;/A&gt;from the esri team on github. You solve this issue by calling identifyGraphicsOverlay on the MapView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 17:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-get-points-created-using-pointbuilder-qml/m-p/866957#M3182</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2019-10-11T17:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get points created using PointBuilder QML Type to listen to click events?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-get-points-created-using-pointbuilder-qml/m-p/866958#M3183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cc: &lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 21:05:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-get-points-created-using-pointbuilder-qml/m-p/866958#M3183</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-10-11T21:05:04Z</dc:date>
    </item>
  </channel>
</rss>

