Select to view content in your preferred language

How to return current location X/Y?

632
1
05-22-2014 12:57 PM
ChrisMartin3
Deactivated User
Hello,

I am working on a little mini-webmap that uses a LocateButton to zoom to my current-ish location.  I also have a function that queries a cell from a raster that is provided via a published service.  How can I get the X/Y of the location the LocateButton places me at?  Would there be a better method of doing this?  I'm open to suggestions.

Essentially I'd like a user to click the button and a modal window opens with the results of the query for the given location.

Thanks!
0 Kudos
1 Reply
RobertoPepato
Deactivated User
Hello,

I am working on a little mini-webmap that uses a LocateButton to zoom to my current-ish location.  I also have a function that queries a cell from a raster that is provided via a published service.  How can I get the X/Y of the location the LocateButton places me at?  Would there be a better method of doing this?  I'm open to suggestions.

Essentially I'd like a user to click the button and a modal window opens with the results of the query for the given location.

Thanks!


I think that the position property on the locate event should work for you.

Best,

Roberto Pepato
0 Kudos