Web AppBuilder for ArcGIS | Help - Elevation Profile Widget
List of the latest enhancements and changes:
Older enhancements or changes
Features:
Hi there,
I am looking for the function to change the decimals in the tool. Now it is in 1 metre increments, but an accuracy of two decimal places is desired.
According to the help document, this function is under the button 'Edit Chart Display Properties'.
However, this option is not available in our configuration. Am I missing something, or can I activate this option in a .js file?
@RickKlopping If that configuration option is not showing then you might be using an older version of the widget that does not have that option. Update to the latest version.
Robert,
I am having the same issue with the "Elevation value Percision" option not showing up in the tool settings. The version of the tool I am using is 2.17. Is this the latest?
name": "ElevationProfile",
"label": "Elevation Profile",
"platform": "HTML",
"version": "2.17",
"wabVersion": "2.17",
"author": "Esri & Robert Scheitlin",
"description": "This is the widget that will chart evelation profiles for the lines that the user draws",
"copyright": "2020",
Guys sorry for the confusion. There was a issue and that feature was removed unintentionally. I have added it back in the 2.17.01 version just released.
Great! Thank you Robert.
One strange thing I noticed:
When setting up the widget in WAB for portal, the settings menu shows the chart preview having decimal places. However, when I launch the actual app and try to use the tool, it still does not show the decimal places. Cleared browser cache thinking that was it, didn't help.
Does this same behavior happen on you end as well?
@smevans88 I missed a file change. Try redownloading and overwriting the widget again.
That was it! Thanks Robert. Great tool. My colleagues have been using it quite a bit.
Dear Robert,
Thanks for your advices.
Is there any provision to change the projection before export the coordinates in the new version? or any plans to add this option?
Could you please advise me the change in the below code, if any? I am not able to export coordinates in my desired CRS. Please help me.
Thanks in advance.
What if any errors are listed in your browsers web console? I made the changes above to the widget and then drew a profile line near Dezful Iran and it worked fine.
Dear Robert,
There is some error message in my browsers web console, regarding projection.js, I am providing the snapshot while working and error time.
When it is working without modifications
After modification in widget.js
Is there any updates required or is it our cyber security or proxy?
Please advise, thank you
@Aneel_Kumar_M the error tells you your issue. A 404 error means the file can not be found. And the reason it can not be found is the projection does not have a capital "P", it is lower case "p". So in your require array you have
dear Robert,
Thanks for the correction,
after I modified, I am getting the below error
any suggestions to overcome this?
thank you
Looks like you have some of your require module names and subsequent variables out of order. Each item in your define array has to match up with each variable in the preceding "function(" list.
define([
'dojo/_base/declare',
'jimu/BaseWidget',
'dojo/Evented',
...
],
function (declare, BaseWidget, Evented,
...
If you have one of these out of order then you have issues. But there are some modules like
dear Robert,
I did not find the 'projection' and 'LoadingShelter' in the function (declare, .......), so I have added them, then I got some other error , show below:
I have seen the jimu.js/widgetmanager.js, snapshot shown below:
Could you please check and advice, thank you
You should not be working inside the WidgetManager.js code. Your error is coming from the Elevation Profile Widget. So your changes need to be in the widget.js of the Elevation Profile widget only.
@Aneel_Kumar_M Version 2.24 now has the setting to change the csv coordinates.
Robert,
This is a great addition. Allows my colleagues to import into other software. Very helpful.
Thanks
@smevans88 If you downloaded when I posted the new version you will need to re-download. I found an issue in my first release.
Dear Robert,
Thanks for the update, now I loaded version 2.24, I got what I wanted 🕺💃🕺, great tool
Thank you so much and I appreciate your timely support 🙏🌹👏.
best regards 🌻,
Robert,
Are you able to confirm the data source you are using for this tool?
Thanks,
Scott
@smevans88 if you mean the elevation data source, it is the ESRI elevation GP service.
Thank you @RobertScheitlin__GISP .
I guess I was curious of the data behind it. Is it the 30m Ground Surface Elevation from USGS data? Or is it a combination of multiple sources?
Scott
@smevans88 In the US it is 10m DEM resolution. You can see the profile resolution in this widget by performing a profile then clicking on the ... Menu button in the upper right corner of the widget and choosing "Profile Information".
Thank you @RobertScheitlin__GISP . I have been using the "Ground Surface Elevation - 30m" layer available for Living Atlas for other projects. Do you know if the 10m is ready available as a layer I can drop into Arcpro?
@smevans88 I do not.
@RobertScheitlin__GISP , thank you.
Hi Robert,
Thank you for your support and contributions! This widget is great and works really well on my hand! I wanted to know if it was possible to sample from two different elevation layers instead of one and have that represented in the graph? Is it just a matter of changing the geoprocessing service or would that also require to edit the app as well?
Hello.
As far as I know you need 2 services for your 2 models (e.g. DTM + DEM) and then adapt a little bit the widget to load and draw the 2 profiles.
I was able to do this pretty easilly from the source code available here.
@igemetristechnologies @RobertScheitlin__GISP
Hi, Thank you for the tip. Could you guide me briefly on this? I think I am not the only one who has asked if this was possible and I believe that would help many of us. As far as using publishing a second geoprocessing service is concerned, there is some documentation that exist (even if it's quite old and only documentation for using ArcMap) But for the widget adaptation part of it it would be great if you could provide some guidance as to where to even start.
Kind regards,
Jeremy
Is it possible if we would like to use our own elevation data/service? I saw a comment on this, and it said to change the Profile URL Task to the elevation service. Unfortunately, it was failed due to the error prompt "Invalid URL" although it has been changed in JSON file as well.
May I know the exact step to perform this? and may I know if these possible?
Many thanks.
Regards,
TS
Robert,
Not to alert yout but the widget doesnt work at all. I downloaded and placed it into a WAB i was working on and it errors on open and errors when attempting to create a profile. We're talking several hundred errors thrown
How do I add the Widget without at manifest file?
@RobertScheitlin__GISP Hi,
What's the best way to draw a horizontal line on the graph?
I want to draw a straight line from the starting point to the endpoint and make the line color green for example at the start, and it turns to red after it touches the first "brown" color plot.
Any suggestions on how to do that?