0

I am working on a viewshed viewer application that uses ArcGIS' Viewshed Analysis example as a base. I have a calculator widget that takes coordinates and zooms to the specified location on the map when a submit button is pressed. The viewshed should then be calculated at that location. The SceneView has an event listener:

view.on("click", computeViewshed);

How do I simulate an "artificial" click using ArcGIS' API?

asked Apr 4, 2021 at 21:48

1 Answer 1

0

Instead of simulating an artificial click, extract the code that does the analysis to a separate function that takes in a Point (latitude/longitude) as a parameter. Then call that function on SceneView click and when the submit button is pressed.

answered Sep 28, 2021 at 20:21

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.