Google Maps Show Coords

By JRI Last update Dec 11, 2011 — Installed 1,946 times.

what is center?

in
Subscribe to what is center? 3 posts, 2 voices



DarKHelmeT User
FirefoxWindows

what is considered the "center" of the map? the center with the left sidebar in place, center without, or auto detected?

 
JRI Script's Author
FirefoxWindows

The script detects the coordinates of the centre automatically at the time you click on the link, by calling one of Google Maps' own functions. The result takes into account whether or not the sidebar is in place: you get the centre of the visible map either way. If you experiment, you will see that the co-ordinates jump if you click the link, then change the sidebar, then click it again, even though the map has not been panned.

 
DarKHelmeT User
FirefoxWindows

ah cool. thanks

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel