Quick Lat/Long GMaps Hack

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!

    1. Center your feature of interest in Google Maps
    2. In the LOCATION BAR of your browser (where you type in URLs), paste the following:
javascript:void(prompt(”,gApplication.getMap().getCenter()));
  1. Hit “Enter”
  2. Walah! A popup dialog with the lat/long of the center of the map, and thus, your feature of interest =)

Leave a Reply

Your email address will not be published.