Analyze the viewshed for a GeoElement in a scene.
Tap to set a destination for the vehicle. The vehicle will 'drive' towards the tapped location. The viewshed analysis will update as the tank moves.
- Create and show the scene, with an elevation source and a buildings layer.
- Add a model (the
GeoElement
) to represent the observer. - Create a
GeoElementViewshed
with configuration for the viewshed analysis. - Add the viewshed to an
AnalysisOverlay
and add the overlay to the scene. - Configure the SceneView
CameraController
to orbit the vehicle.
This sample shows a Johannesburg building layer from ArcGIS Online. The vehicle is a tank.
ModelSceneSymbol
GeoElementViewshed
AnalysisOverlay
OrbitGeoElementCameraController
GeodeticDistanceResult
&GeometryEngine.DistanceGeodetic
- used to animate the vehicle.
Buildings, scene, model, 3D