Creation and Visualization of Droplines and Trail Lines in ArcGIS JavaScript Web App

693
1
04-15-2021 02:27 AM
Byang
by
New Contributor II

Hi,

I have been searching online on using ArcGIS JavaScript API to create and visualize droplines and trail lines based on the movement of 3D models in JavaScript web application.

However, i am unable to find any relevant results. 

Appreciate advice on how to create and visualize droplines and trail lines based on the movement of 3D models in ArcGIS JavaScript.

An example of dropline and trail line are illustrated as the red lines in the following picture.

Capture.PNG

Many Thanks.

Ben

0 Kudos
1 Reply
RalucaNicola1
Esri Contributor

Hi Ben,

spontaneously I'd say this should work by creating those lines manually every few animation frames. So during the model animation at regular intervals you'd sample the location and then update the trail line by adding this new vertex and creating a drop line. Did you try that? Feel free to share a code snippet with me and let me know if smth doesn't work.