Sunday, June 10, 2007

Finding longitude and latitude on Google maps

Google maps does not show the longitude and latitude of a place by default. I remember wasting a lot of time finding these data for an application of mine. This small javascript code can solve the purpose!

javascript:void(prompt('', gApplication.getMap().getCenter()));

This code when copy-pasted in the location bar of browser and executed, pops up a window showing the longitude and latitude.

No comments: