Elevation Profile Widget Version 2.17 - 9/19/2020

199931
232
03-02-2015 06:56 PM
Labels (1)

Elevation Profile Widget Version 2.17 - 9/19/2020

Live Preview Site   

Web AppBuilder for ArcGIS | Help - Elevation Profile Widget

List of the latest enhancements and changes:

  1. Updated to WAB 2.17
  2. Fixed issue with using this widget in Tab Theme. Profile hiding the close button on the sidebar controller.
  3. Now when used in the Jewlerybox and tab theme it will open those controllers automatically.

Older enhancements or changes

  1. Added ability to select existing line features to profile.
  2. Added ability to choose which segment of the selected polyline to profile.
  3. Added setting to control elevation decimal precision.
  4. Fixed Issue with resizing widget and profile getting cut off.
  5. Moved all widget links to a widget menu instead.
  6. Added the ability to export Profile data to CSV file.
  7. Added the ability to flip the profiles direction of travel.
  8. Added support for doing profiles when basemap is not Web Mercator
  9. Added the ability to export the profile chart as an image (if you are not using Internet Explorer and your browser supports HTML5 Canvas).
  10. Added fix for Launchpad Theme UI issues

Features:

  • This is a port over of the Elevation Profile Template.
  • Some modifications have been done to prevent chart indicator text clipping
  • The chart display features like color, font size, etc are all configurable in the widget settings UI
  • Some validation is done on the profile task service url.
  • Full help documentation is provided for configuring and using the widget.

GUID-BBD63087-70CB-4233-9BFC-DAA5B71F8F5A-web.png

GUID-7F98552A-5D81-4E17-815B-157BDB9E4EE4-web.pngGUID-65a048a8-e968-45f2-9fbc-7170fca46108-web.png

Labels (1)
Attachments
Comments

Tim,

   No none at all. My suggestion would be to downgrade to the 2.8 version

https://gis.calhouncounty.org/WAB/v2.8/other/ElevationProfile.zip 

Thanks, Robert! Really appreciate all the great WAB widgets.

Thanks,

Tim

Seems to be Theme dependent.  OK button does not work on any themes that have the in panel widget button but I can add with a theme that only has header widgets and then change back to a theme with in panel and it will be in the header widget row there.  However using it from there the results chop off the bottom of the chart and the horizontal axis labels.  Hope you can get this worked out it would be very handy.

thanks!

i want to display two selected lines profile on a same graph with different color. Please suggest me.

Not currently possible in this widget

Hi Robert, thanks for all your contributions. 

I am also blocked with the undefined _i18nLabels_featureAction_profileLine element in widgetJson.manifest when hitting Ok button to accept settings. I assume still a mystery why it works for some and not for others.

I'm new to custom widget development and framework as well as how this element is populated from widget files.  I hoping to get deeper and perhaps add a few additional features to the Elevation Profile widget.  This would include calculating running totals for elevation gained and loss and possible slope graph.

Yes I downgraded to your 2.8 version.

Mike

Looking at function addI18NLabelToManifest in utils.js it would appear that a widget needs _widgetLabel defined in <widget>\nls\strings.js in order to populate _i18nLabels_featureAction_<actionName> in widgetJson.manifest.

I added:


_widgetLabel: "Elevation Profile",

to:

ElevationProfile\nls\strings.js

and I am able to add the Elevation Profile widget to my web app.

Perhaps there is more to the fix than what I found but I thought I would share what seems to have worked for me.

Mike

Michael,

   Sweet. Obviously this is a bug in WAB as the _widgetLabel property is not suppose to be required. I see that in my other widgets that have custom widget actions they already have the _widgetLabel property. Thanks for the info.

Robert,

Firstly, great widget. I set this up in an app for our zoning department and they love the tool! Going back to what Raviteja was asking above, I would like to change the default measurement units to Feet, not miles. I can't find anywhere in the widget folder, where I can make this customization. With other widgets I have incorporated into my apps, you can find the HTML code and make a change looking something like this within the unit options: <option value="Feet" selected="selected">${nls.unitsFeet}</option>

I am wondering within your widget if there is a way I can do this? I can't seem to find any place to make this change. I noticed in your response to Raviteja that you used the JS API Measurement Dijit for that portion of the widget. Do you think you could give me a little more background on this?

I found this piece of code in the Widget.js file that I think has to do with the Measurement Dijit:

I am specifically looking at lines 280 & 281. Do I just have to manipulate this piece of code to change the default unit settings?

Am I missing something? Any guidance you have would be greatly appreciated.

Thanks in advance.

Siona Roberts

Siona,

   That is the exact place just change Units.MILES to Units.FEET

Not sure if the icon is missing or just black on black, thoughts?

Missing Icon in pop up

Thanks,

Mike

Michael,

  Looks like a dark icon issue. I will have to look into this.

Hi Robert! Thanks for this wonderful widget. I tried to do a modification in the MouseIndicator but I did not get the expected result. I tried add a new MouseIndicator with a same properties that "indicatorProperties2" but with other offset and I can´t see the new MouseIndicator in the graph. Do I need to do another thing?

Thanks and best regards!! 

Each data series in the chart can only have one indicator. So if you wish to add another indicator you need to add another data series. The best route is to duplicate the water series with a different name.

Thanks a lot Robert!! 

hello everyone,

hope you are all safe.

I just want to check if the link is still working please

https://gis.calhouncounty.org/WAB/V2.14/widgets/ElevationProfile/index.html 

I'm not able to access it, is there a new link?

Thank you.

Robert Scheitlin, GISP‌ maybe Robert can help

Link still works. Just tested it.

I know I asked this question years ago, because I have it working in my current live site, but for the life of me I can't find the answer or figure it out.

I use the Tab Theme on my site and when I open the Elevation Widget it over-sizes the panel and removes the close button. I can't remember what I need to change to force it to stay in the default side of the sidebar-controller. Thanks Rob.

James,

   The tab theme sidebar is not a great fit for this widget, but here is the fix:

      onOpen: function () {
        if (this.lastMeasure && this.measureTool) {
          this.measureTool.measure(this.lastMeasure);
        }
        var panel = this.getPanel();
        var pos = panel.position;
        if(this.appConfig.theme.name === 'TabTheme') {
          pos.width = 350;
        }else{
          pos.width = 720;
          panel.setPosition(pos);
          panel.panelManager.normalizePanel(panel);
        }
      },

Hello.
This Widget is very nice and useful thanks.
I'll try to "tune" it, but perhaps am I not the only interested:

For me, this widget will be more interesting if there was the possibility to add 2 terrain models in order to do comparison, eg. between DTM and DSM
Best regards and thanks for this work

Hello again.

I've a small question: I wanted to "auto-start" the profil definition.

I means, auto-activate the measurement at startup.

I tried to call the "onMeasureClick" function/event at "onOpen", but it did not work.
Did I a stupid mistake or did I miss something? Any Idea how it could be done?

Best regards and thanks!

In the onOpen add this line:

this.measureTool.setTool("distance",true);

Thanks very much!

Is it possible to modify this widget to exaggerate the vertical scale of the graph?

@MaxM  There is no exaggerate option in the profile task that this widget uses.

Hi. Can I select a custom elevation data when using the Elevation Profile widget? The widget always uses the ESRI maps elevation data default (24m in Australia). I have a High resolution Elevation data (15cm) available and I would like to use it.  I tried to change the URL of the DEM I have but always showed as invalid. The figure below is showing the default URL of the widget.

 

FeixRui_1-1609827091187.png

Any help?

Thanks in advance

Yes you can use your own elevation profile GP Service if it matches the esri services paramaters for input and output. Here is a 2014 Blog on my to produce your own service:

https://www.esri.com/arcgis-blog/products/arcgis-living-atlas/analytics/setting-up-your-own-profile-...

 

Thank Robert. Do you have a tutorial how to produce my own service using ArcGIS Pro? I' just allowed to use Pro... Cheers

 

I do not.

I'd like to use this Elevation widget in Web app builder 2.12, where I could download the widget?

 

Thanks

@ZhujingXia ,

   Try using this version of the widget. If it does not work in 2.12 I can provide an appropriate link for you to download.

Version history
Revision #:
1 of 1
Last update:
‎03-02-2015 06:56 PM
Updated by: