Coordinate widget

The Coordinate widget displays XY coordinate, elevation, and camera altitude values in your 3D app. With the default coordinate system of the web scene, these values change dynamically when the pointer moves on the scene. Multiple spatial references can be configured, and the coordinate values display based on the spatial reference you choose.

Configuring the Coordinate widget

By default, the Coordinate widget displays coordinates in the WGS_1984_Web_Mercator_Auxiliary_Sphere (WKID 3857) projection. To display coordinates in other projections or datums, add spatial references during the configuration.

  1. Hover over the Coordinate widget and click the small eye icon Show or hide widget to show or hide this widget in your app.
  2. Hover over the Coordinate widget and click the small edit icon Edit.

    The configuration window appears.

  3. Optionally, click Add Output Coordinates System to display other projections.
  4. Provide a valid WKID in the Output Coordinate System WKID box, choose a display unit, and provide a valid WKID in the Datum Transformation WKID box if the datum of output coordinate system is different form the default.
  5. Click OK.

    The spatial reference you just defined is added to the list. Repeat the steps 1 through 5 to add other spatial references if necessary.

  6. Optionally, click the edit icon under Actions to edit the coordinate system.
  7. Choose the decimal places to round the coordinates.
  8. Choose the decimal places to round the eye altitude.
  9. Uncheck the box if you don't want to show the thousand separators.
  10. Click OK.

    The widget setting window closes.

Using the Coordinate widget

When the app starts, it displays the coordinate system at the top of the Output Coordinate System Name list. For the default coordinate system of the web scene, the coordinates, elevation, and camera altitude values will change automatically when you move the pointer on the scene.

Display default coordinate system

Click Icon to enable clicking the scene to get coordinates to enable clicking the scene to get coordinates and elevation. In this way, you can add a point to the scene, highlight all the values, and make a copy of them.

Click the arrow on the widget to display a list of spatial references specified in the configuration. When you choose one from the list, it becomes active.

Display a list of spatial references

For most spatial references, except WKID 3857 and 4326, you have to click the Icon to enable clicking the scene to get coordinates button again to display the coordinates and elevation by adding a point on the map. You can also highlight all the values and make a copy of them.