Reputation: 103
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.
Upvotes: 1
Views: 1243
Reputation: 46405
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.
Upvotes: 2