1

I use an Ext.Map to let a user choose a certain place and I want to get the coordinate (or the coordinate of the map center) that user chooses. Which method should I use? I can't find a proper one in the doc.

Bart
  • 19,692
  • 7
  • 68
  • 77
cachuanghu
  • 103
  • 2
  • 10

1 Answers1

2

Check out my answer to similar question given here. This will give you an idea.

EDIT:

To obtain the position co-ordinates ( i.e latitude and longitude) from the textual address, you will need to use Google Maps Geocoding API

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map.

Community
  • 1
  • 1
Saurabh Gokhale
  • 53,625
  • 36
  • 139
  • 164
  • Tks, but I think you misunderstands what I mean. Consider such a situation that the user wants to hold an collective activity and he will search in the map to find the place (not his current position). How can I get that coordinate from the map? – cachuanghu May 05 '12 at 14:32