Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Latest commit

 

History

History
98 lines (78 loc) · 5.23 KB

File metadata and controls

98 lines (78 loc) · 5.23 KB

Elevation Profile Widget

Elevation Profile is a configurable widget that displays the elevation profile for a selected feature or a measured line along with a web map. This is very similar to the Elevation Profile Template (View it live), but with additional functionality. This widget is modeled after the Attribute Table; in that it is docked along the bottom edge of the browser. This widget requires the developer edition of WebApp Builder, version 2.0 or higher.

Sections

Features

Elevation Profile is a configurable widget that displays elevation profile for a selected feature or a digitized line in a web map. This template requires an elevation profile service (provided from ArcGIS Online) to generate the elevation values along the profile, and a Line Of Sight service to generate line-of-sight features. Please see the associated Python script that generates the line-of-sight features located in the scripts directory.

This widget will allow:

  • Selection of existing polyline features (Popup will need to be enabled in the web map)
  • Digitize a line or route
  • Display Line of Sight for selected feature or digitized route

Requirements

This widget requires the developer edition of WebApp Builder. It supports versions 2.0+.

Instructions

In order to develop and test widgets you need to deploy the Elevation Profile widget directory to the /stemapp/widgets directory in your WebApp Builder installation. In order to add the Elevation Profile Table widget to your developer edition of Web App Builder, please follow these steps:

  • Copy the Elevation Profile Table widget directory to /client/stemapp/widgets
  • Open /client/stemapp/config.json and add an entry for the Elevation Profile Table widget:
    {
        "uri": "widgets/ElevationProfiletable/Widget",
        "version": "1.4",
        "position": {
            "relativeTo": "browser"
        }
    }
  • Open /stemapp/predefined-apps/default/config.json and add an entry for the Elevation Profile Table widget:
    {
        "uri": "widgets/ElevationProfiletable/Widget",
        "version": "1.4",
        "position": {
            "relativeTo": "browser"
        }
    }
  • Open /stemapp/themes/FoldableTheme/layouts/default/config.json and add an entry for the Elevation Profile Table widget:
    {
        "uri": "widgets/ElevationProfiletable/Widget",
        "version": "1.4",
        "position": {
            "relativeTo": "browser"
        }
    }
  • Add "ElevationProfileTable" entry to /stemapp/widget/list.json.

The LOS toolbox and los.py script should be used as a general guide during the creation of line-of-sight Geoprocessing service. Please make the necessary changes to the script in order to consume your own Digital Elevation Model (DEM) (please look at line 8 of the los.py script).

NOTE: If you intend to select features (instead of digitizing your line), ensure that the web map has pop-ups enabled. This will allow for features to be selected.

Resources

New to Github? Get started here.

Issues

  • Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

If you are using JS Hint there is a .jshintrc file included in the root folder which enforces this style. We allow for 120 characters per line instead of the highly restrictive 80.

Licensing

Copyright 2013 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

[](Esri Tags: ArcGISSolutions ArcGIS Defense and Intelligence Military Environment Planning Analysis Emergency Management Local-Government Local Government State-Government State Government Utilities) [](Esri Language: Javascript)