Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.17 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to fix the precision for lat/lng?
  2. var latitude  = -25.363882;
  3. var longitude = 131.044922;
  4. var latLng = new google.maps.LatLng(latitude.toFixed(4), longitude.toFixed(4));