Display the measured distance by drawing lines on the map.
- Open the Measure scene.
- Set your API Key in the ArcGIS Map game object using the Inspector window.
- While holding shift, click on the map to begin measuring. Continue to click on the map to add additional vertices. The accumulated distance will be shown. This sample is only set up to work with a mouse and keyboard.
- This sample uses
ArcGISGeometryEngineto calculate distance.
- The measured distance is geodetic/geodesic distance. Geodetic distance is calculated in a 3D spherical space as the distance across the curved surface of the world. You can find more information about the differences between geodesic and planar distance in the ArcGIS Pro documentation.
- Interpolation points are optional and are used to align line segments to terrain.
measure, geometry, analysis, raycast