Coordinate widget

The Coordinate widget displays x- and y-coordinate values on the map. With the default coordinate system of the web map, the coordinate values change dynamically when the mouse pointer moves to locations on the map. Multiple spatial references can be configured and the coordinate values display based on the spatial reference you choose when the application starts.

Configure 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 Show or hide widget button Show or hide widget to show or hide the widget in your app.
  2. Hover over the widget and click the Configure this widget button Configure this widget to open the configuration window.
    Note:

    If you need to add the widget to the app first, click a widget placeholder on the Widget tab. In the Choose Widget window that opens, select the widget and click OK.

  3. Click Add output coordinate system.
    Add output coordinate system
  4. Provide a valid well-known ID (WKID) in the Output coordinate system WKID text box, choose the display units, and provide a valid WKID in the Datum Transformation WKID text box if the datum of the output coordinate system is different than the default.

    When a valid datum transformation WKID is specified, the Use Transformation Forward option displays. It indicates whether to transform forward. The forward or reverse direction of transformation is implied in the name of the transformation. See Datum transformations for more information.

  5. Click OK.

    The spatial reference defined above is added to the list. Repeat the above steps to add other spatial references if necessary.

  6. Optionally click the edit button under Actions and change the coordinate system and display units. Click OK.
  7. Optionally make your coordinate choice the default.
  8. Optionally double-click the label of the coordinate system to rename it.
  9. Under the output coordinate system table, choose the decimal places to round the coordinates.
  10. Uncheck the box if you don't want to show the thousand separators.
  11. Select the display order of the coordinates.

    Configure Coordinate window

  12. Click OK.

Use 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 map, the coordinates will change accordingly when you move the mouse pointer on the map.

For mobile devices, the widget only displays the coordinates of the center of the map.

Click the Enable clicking the map to get coordinates button Enable clicking the map to get coordinates to enable clicking the map to get coordinates. You can add a point to the map, highlight the coordinates, and make a copy of the coordinates.

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.

Choose another coordinate system from the list

For most spatial references, except WKID 3857 and 4326, you must click the Enable clicking the map to get coordinates button Enable clicking the map to get coordinates again to display the coordinates by adding a point to the map. You can also highlight the coordinates and make a copy of them.

Display selected coordinates