Closed GoogleCodeExporter closed 8 years ago
lat and lon are actually floats, i only cut them in the example for display
purposes.
Original comment by whoiss...@gmail.com
on 19 Dec 2011 at 3:19
I guess the location is good but the text is cut down to 2 decimal places is
that correct? how do I disable this?
Thanks
Regards
Mark
Original comment by mlewis%n...@gtempaccount.com
on 5 Jan 2012 at 1:58
[deleted comment]
If you use the code from sample.html search for the
function success_callback(p)
{
alert('lat='+p.coords.latitude.toFixed(2)+'; lon='+p.coords.longitude.toFixed(2));
}
Make those "toFixed(2)" above 4 or 6,according to your decimal needs
In sample_with_map.html
function show_position(p)
{
document.getElementById('current').innerHTML="latitude="+p.coords.latitude.toFixed(2)+" longitude="+p.coords.longitude.toFixed(2);
Original comment by Kamui...@gmail.com
on 5 Jan 2012 at 8:02
Original comment by whoiss...@gmail.com
on 17 Apr 2012 at 9:13
Original issue reported on code.google.com by
Kamui...@gmail.com
on 17 Dec 2011 at 7:52