Select to view content in your preferred language

Automatically Display Coordinates of Mouse Position on Map

1652
5
Jump to solution
10-03-2023 08:30 AM
Labels (1)
CameronLacelle
Frequent Contributor

Is there a way you can get the coordinates of the cursor to automatically display as the user hovers their mouse around the map area?

 

I embedded the coordinates widget so a user can place a point on the map and get its coordinates, however our current corporate GIS viewer has a text box in the top right corner of the map that displays the coordinates of the cursor's current position without a click so it dynamically changes as you move your mouse over the map screen. If possible, I'd like to replicate this feature in EB.

1 Solution

Accepted Solutions
TonghuiMing
Esri Regular Contributor

@CameronLacelle 

The default behavior of the OOTB ExB Coordinates widget works this way:

If you place a pin, then the number stays for copy functionality.

The only exception is that certain WKIDs do not get values from mouse hover, so the coordinate values can only be obtained from a pin drop.

View solution in original post

5 Replies
TonghuiMing
Esri Regular Contributor

@CameronLacelle 

The default behavior of the OOTB ExB Coordinates widget works this way:

If you place a pin, then the number stays for copy functionality.

The only exception is that certain WKIDs do not get values from mouse hover, so the coordinate values can only be obtained from a pin drop.

CameronLacelle
Frequent Contributor

Thank you for the info. Much appreciated

0 Kudos
DNMCSCADA
Emerging Contributor

Hi,

If you can verify that the Widget works with WKID 4326, that will be very appreciated. I'm trying it to work with WKID 4326 but it only works with placing the pin.

Regards.

0 Kudos
TonghuiMing
Esri Regular Contributor

I tried 4326 and it works fine on mouse hovering

TonghuiMing_0-1707210488038.png

 

0 Kudos
CameronLacelle
Frequent Contributor

hover coordinates does not work for UTM 17N (and I assume other UTM as well)

0 Kudos