Can anyone help with changing the code from default kilometers to feet?
Also, where does this widget reference elevation data when a line is drawn on the base map? I would assume it accesses the same database that the AGOL Elevations Template uses. Is there a way to edit where the elevation data comes from, for example, using our own server based GDB DEM?
Thanks,
Mat
Solved! Go to Solution.
Mat,
Like most widgets the Elevation Profile widget has a configuration xml file where you can find the unitsAndLabeling element and in there you will see where it is configured for metes and kilometers.
It is using an elevation profile geoprocessing service here http://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute
More info on this service here: https://developers.arcgis.com/rest/elevation/
I guess if you get the Geoprocessing service code and add your own data and republish on your own server than you could use your own DEM info.
Mat,
Like most widgets the Elevation Profile widget has a configuration xml file where you can find the unitsAndLabeling element and in there you will see where it is configured for metes and kilometers.
It is using an elevation profile geoprocessing service here http://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute
More info on this service here: https://developers.arcgis.com/rest/elevation/
I guess if you get the Geoprocessing service code and add your own data and republish on your own server than you could use your own DEM info.
Thanks, I will look over those resources and see if I can get it to work.
I messed around with the xml file and changed the label to feet and changed the <multiplyByToConvertFromMeters> value to 3.2808399 since 1 meter=3.2808399 feet. That seemed to work perfectly.