Select to view content in your preferred language

JS API - Viewshed analysis sample is broken

441
0
04-05-2021 05:16 PM
Neocyte
Emerging Contributor

Hello JS API team,

Clicking anywhere on the viewshed analysis sample sometimes returns an uncaught promise error. You can replicate this by clicking on the North/South Pole. Additionally, several tiles fail to load. 

This is on version 4.18 of the ArcGIS Javascript API:
https://developers.arcgis.com/javascript/latest/sample-code/geoprocessing-viewshed/

Neocyte_1-1617668106777.png


It seems that when the geoprocessor executes the parameters and promises to draw the result data, one of the parameters doesn't get passed...

 

var params = {
  Input_Observation_Point: featureSet,
  Viewshed_Distance: vsDistance
};
gp.execute(params).then(drawResultData);

 

 

 

 

 

0 Kudos
0 Replies