Select to view content in your preferred language

How to find the point from provided latitude and longitude?

1725
3
Jump to solution
04-22-2013 01:30 AM
by Anonymous User
Not applicable
Original User: usuday

How to find the point from provided latitude and longitude?
0 Kudos
1 Solution

Accepted Solutions
SteveCole
Honored Contributor
From the JS API side of things, this is roughly what you would do:


  1. Take your lat/long location and create a new point geometry

  2. Buffer the point's geometry slightly and then provide the buffered geometry as the geometry parameter for a new query

  3. Finally, use queryTask to query your appropriate data layer (I'm assuming it's a featureLayer)

View solution in original post

0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: rborchert

Use the Go to XY tool.

If this is something you are going to do occasionally on demand this tool will do what you want.  If you want to add a whole bunch of x,y locations at the same time the procedure is different.  

Right click next to a tool bar and bring up the customize dialog.

Click on Commands and do a search for

Go To XY

The tool should show up. You can drag it into any toolbar.

There is a drop down menu as part of the toolbar that will open when you choose this tool that you can set whatever units you are using.

How to find the point from provided latitude and longitude?
0 Kudos
SteveCole
Honored Contributor
From the JS API side of things, this is roughly what you would do:


  1. Take your lat/long location and create a new point geometry

  2. Buffer the point's geometry slightly and then provide the buffered geometry as the geometry parameter for a new query

  3. Finally, use queryTask to query your appropriate data layer (I'm assuming it's a featureLayer)

0 Kudos
by Anonymous User
Not applicable
Original User: usuday

Thanks Steve.

It resolved the issue.
0 Kudos