AnsweredAssumed Answered

Viewshed observer Height

Question asked by jay.kapalczynski on Dec 20, 2017
Latest reply on Dec 22, 2017 by jay.kapalczynski

Using this: CreateViewshed | API Reference | ArcGIS API for JavaScript 3.23 

 

I think I am defining the parameters for Height incorrectly and cant seem to find them in the documentation

 

vsHeight.height

 

"observerHeight": vsHeight,
"observerHeightUnits": "feet"

 

 

Trying this:

<input type="radio" name="DistanceVS" value="1" checked="checked">1 Mile</input>
<input type="radio" name="HeightVS" value="1" checked="checked">1 Meter</input>


var radios = document.getElementsByName('DistanceVS');
var w = parseInt(radios);
vsDistance.distance = (w);

var height = document.getElementsByName('HeightVS');
var h = parseInt(height);
vsHeight.height = (h);
           
vsDistance.units = "esriMiles";
var params = {
    "Input_Observation_Point": featureSet,
    "Viewshed_Distance": vsDistance,
    "observerHeight": vsHeight,
    "observerHeightUnits": "feet"
};

Outcomes