1. Home
  2. Computing & Technology
  3. JavaScript
Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript

Latitude and Longitude

Monday August 18, 2008
Google Maps can display any location based on its latitude and longitude

The easiest way to specify what part of our planet that you want your Google map to display is to specify the latitude and longitude. The maps allow these to be specified to several decimal places so that you can easily move the starting position for your map to point to your house instead of your neighbour's. While this method may require some trial and error on your part to centre the map exactly where you want it is the most efficient way of defining what map to display both in terms of the code needed and the time that will be taken to position the map appropriately.

Latitude and Longitude
Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss
Readers Respond
Ways I Have Seen JavaScript Misused And How I Would Have Done it Differently
Add Your Response

Recent Blog Posts
Explore JavaScript
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2010 About.com, a part of The New York Times Company.

All rights reserved.