Have you ever been in Google Maps and wished you could find the lat/long of a place you’re looking at? I have this wish all the time. Fortunately, I know it’s possible. Unfortunately, I have to hunt down the solution each time in some old code I have up on a website. So, in order to make it easier to find (for me at least), here’s the solution. Enjoy!
- Center your feature of interest in Google Maps
- In the LOCATION BAR of your browser (where you type in URLs), paste the following:
javascript:void(prompt(”,gApplication.getMap().getCenter()));
- Hit “Enter”
- Walah! A popup dialog with the lat/long of the center of the map, and thus, your feature of interest =)