<?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  use Elevation profile in Appstudio in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1179302#M4283</link>
    <description>&lt;P&gt;Hi TrevorFrame, when I went through the lesson, there is no problem with webmap created by the instructor.&lt;/P&gt;&lt;P&gt;However, when I replace the webmap by my own. The elevation profile fails to show up.&lt;/P&gt;&lt;P&gt;my &lt;STRONG&gt;feature&lt;/STRONG&gt; layer:&amp;nbsp;item.html?id=&lt;STRONG&gt;a7a1af264013488185fb8c8989c1a070&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; (&lt;SPAN&gt;Feature Layer, public)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;my &lt;STRONG&gt;webmap&lt;/STRONG&gt; layer: item.html?id=&lt;STRONG&gt;db8454b1073b44cb947e9e2edd42acb1&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;(Service Definition, public)&lt;/P&gt;&lt;P&gt;my nearby &lt;STRONG&gt;webapp&lt;/STRONG&gt;: appid=&lt;STRONG&gt;bff20cdf1ff14eb181da1f6d09098d11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;(&lt;SPAN&gt;Instant App - Nearby&lt;/SPAN&gt;, public)&lt;/P&gt;&lt;P&gt;[I can view the elevation profile in webapp, just cannot view it in app made by appstudio]&lt;/P&gt;&lt;P&gt;my &lt;STRONG&gt;appstudio&lt;/STRONG&gt; app:&amp;nbsp;item.html?id=&lt;STRONG&gt;5191bc5a63a142c8ba528c2ab9911220&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Native Application, public)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=============================&lt;/P&gt;&lt;P&gt;Thank Trevor for your active assistance. I shared the app as public. I don't know whether you can download the app since I cannot see a download button in arcgis online. Please contact me if you cannot view it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Felix10546_0-1654136112385.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42600i815A264042108EA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Felix10546_0-1654136112385.png" alt="Felix10546_0-1654136112385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 02:17:36 GMT</pubDate>
    <dc:creator>Felix10546</dc:creator>
    <dc:date>2022-06-02T02:17:36Z</dc:date>
    <item>
      <title>How to  use Elevation profile in Appstudio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1178920#M4279</link>
      <description>&lt;P&gt;I see from &lt;A href="https://www.esri.com/arcgis-blog/products/appstudio/announcements/whats-new-in-arcgis-appstudio-version-5-3-march-2022/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/appstudio/announcements/whats-new-in-arcgis-appstudio-version-5-3-march-2022/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Map Viewer – Elevation profile support for polyline features&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;and from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.arcgis.com/en/projects/configure-apps-for-hikers/" target="_blank"&gt;https://learn.arcgis.com/en/projects/configure-apps-for-hikers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that a trails can have elevation profile.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;However, in my case, I created some trails and published it. I also made a webmap and nearby webapp from it.&lt;/P&gt;&lt;P&gt;Then I try to build a mapview app and nearby app from Appstudio.&lt;/P&gt;&lt;P&gt;It fails to load the elevation. What steps should I take to make it works?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Felix10546_0-1654076418813.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42518i764BE0CCE21DD00D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Felix10546_0-1654076418813.png" alt="Felix10546_0-1654076418813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;P.S. I can use the profile GP to generate elevation polyline and chart in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Thank for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 09:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1178920#M4279</guid>
      <dc:creator>Felix10546</dc:creator>
      <dc:date>2022-06-01T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to  use Elevation profile in Appstudio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1179261#M4282</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/471737"&gt;@Felix10546&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You should be able to follow that lesson you provided and it would work with both Map Viewer and Nearby apps. Can you share the nearby app and web map id's you are using?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Trevor&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 23:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1179261#M4282</guid>
      <dc:creator>TrevorFrame</dc:creator>
      <dc:date>2022-06-01T23:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to  use Elevation profile in Appstudio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1179302#M4283</link>
      <description>&lt;P&gt;Hi TrevorFrame, when I went through the lesson, there is no problem with webmap created by the instructor.&lt;/P&gt;&lt;P&gt;However, when I replace the webmap by my own. The elevation profile fails to show up.&lt;/P&gt;&lt;P&gt;my &lt;STRONG&gt;feature&lt;/STRONG&gt; layer:&amp;nbsp;item.html?id=&lt;STRONG&gt;a7a1af264013488185fb8c8989c1a070&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; (&lt;SPAN&gt;Feature Layer, public)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;my &lt;STRONG&gt;webmap&lt;/STRONG&gt; layer: item.html?id=&lt;STRONG&gt;db8454b1073b44cb947e9e2edd42acb1&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;(Service Definition, public)&lt;/P&gt;&lt;P&gt;my nearby &lt;STRONG&gt;webapp&lt;/STRONG&gt;: appid=&lt;STRONG&gt;bff20cdf1ff14eb181da1f6d09098d11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;(&lt;SPAN&gt;Instant App - Nearby&lt;/SPAN&gt;, public)&lt;/P&gt;&lt;P&gt;[I can view the elevation profile in webapp, just cannot view it in app made by appstudio]&lt;/P&gt;&lt;P&gt;my &lt;STRONG&gt;appstudio&lt;/STRONG&gt; app:&amp;nbsp;item.html?id=&lt;STRONG&gt;5191bc5a63a142c8ba528c2ab9911220&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Native Application, public)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=============================&lt;/P&gt;&lt;P&gt;Thank Trevor for your active assistance. I shared the app as public. I don't know whether you can download the app since I cannot see a download button in arcgis online. Please contact me if you cannot view it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Felix10546_0-1654136112385.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42600i815A264042108EA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Felix10546_0-1654136112385.png" alt="Felix10546_0-1654136112385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 02:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1179302#M4283</guid>
      <dc:creator>Felix10546</dc:creator>
      <dc:date>2022-06-02T02:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to  use Elevation profile in Appstudio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1179671#M4286</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/471737"&gt;@Felix10546&lt;/a&gt;&amp;nbsp;thank you for providing the app and web ids. After looking into this closely, it looks like the issue is from your feature geometry has m values that are being set to null. You can console log the paramObj in the fetchSummary() to see.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;console.log(`params ${JSON.stringify(paramObj)}`)&lt;/LI-CODE&gt;&lt;P&gt;Not entirely sure how they are being set to null in the first place, but I would recommend to ensure you have some default value set like 0 when you create the polyline.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 00:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1179671#M4286</guid>
      <dc:creator>TrevorFrame</dc:creator>
      <dc:date>2022-06-03T00:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to  use Elevation profile in Appstudio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1180096#M4289</link>
      <description>&lt;P&gt;Hi Trevor, I am not unsure how to do that. Is the cmd typed in F12 console in a web-browser or elsewhere?&lt;/P&gt;&lt;P&gt;1. I tried In web browser, what paramObj should I defined in order to view the parameter?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Felix10546_1-1654479691553.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42782iACF5B6A6920C5390/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Felix10546_1-1654479691553.png" alt="Felix10546_1-1654479691553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Is there any console for debugging in Qt editor that allow us to use that command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 01:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1180096#M4289</guid>
      <dc:creator>Felix10546</dc:creator>
      <dc:date>2022-06-06T01:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to  use Elevation profile in Appstudio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1182846#M4293</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/471737"&gt;@Felix10546&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Good news, we found a way you can actually remove the z and m values using Runtime's GeometryEngine, that way if there are any null values, the elevation profile will still work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this, navigate to the ElevationProfileView.qml file inside /Nearby/views folder. Around line 761 is a function drawElevationChart(). Around line 812 you can add a line with using GeometryEngine to remove Z and M. And then use that new geometry object for the inputLineFeatures. See the code snippet below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let inputLineFeatures = {fields: [{name: "OID", type: "esriFieldTypeObjectID", alias: "OID"}],
                geometryType: "esriGeometryPolyline", attributes: {OID: 1}, sr: {wkid: 102100, latestWkid: 3857}}
let geometryWithoutZ = GeometryEngine.removeZAndM(feature.geometry)
inputLineFeatures.features = [{geometry: geometryWithoutZ.json}]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the&amp;nbsp;console.log() statement as stated above, it would go inside your QML code using the Qt Creator editor. You would have to navigate to the /Nearby/views/ElevationProfileView.qml folder, then around line 839 is the fetchSummary() function. You can add the console.log() statement anywhere under the variable declaration of var paramObj around line 849 ( I added mine just below it). Check the screenshot below for a visual of it. You can see the console logs out in the "Application Output" tab which is at the very bottom of the window.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2022-06-14 at 8.36.54 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43435i9E04B9347D0B3F42/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-06-14 at 8.36.54 AM.png" alt="Screen Shot 2022-06-14 at 8.36.54 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1182846#M4293</guid>
      <dc:creator>TrevorFrame</dc:creator>
      <dc:date>2022-06-14T18:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to  use Elevation profile in Appstudio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1184124#M4299</link>
      <description>&lt;P&gt;Thank TrevorFrame for your help with screencap, I am busy last week. I will try and replay as soon as next working day.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 09:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-use-elevation-profile-in-appstudio/m-p/1184124#M4299</guid>
      <dc:creator>Felix10546</dc:creator>
      <dc:date>2022-06-18T09:16:48Z</dc:date>
    </item>
  </channel>
</rss>

