Closed GoogleCodeExporter closed 9 years ago
interesting. it works in the G1 I have and you are saying it doesn't work in
your HTC
magic because the data structure is
p.latitude
p.longitude
and not
p.coords.latitude
p.coords.longitude
If that is the case we can detect the data structure and transform it if needed.
Does this make sense to you?
Original comment by whoiss...@gmail.com
on 9 Dec 2009 at 6:22
please try now
http://www.merkwelt.com/people/stan/geo_js/sample.html
i have a google gears install actually that returns an object that has both
p.latitude
p.longitude
p.coords.latitude
p.coords.longitude
now i check first which structure is available. i am not aware that there is a
scenario where it only returns p.coords, but i left it in there just in case.
please let me know if that now works.
thank you
Original comment by whoiss...@gmail.com
on 11 Dec 2009 at 2:43
Yes it works perfectly now, almost identical solution to how I modified the
geo.js :)
Original comment by philipb...@gmail.com
on 11 Dec 2009 at 11:09
excellent, let me check in the change. for what are you using the library?
Original comment by whoiss...@gmail.com
on 11 Dec 2009 at 1:42
Original issue reported on code.google.com by
philipb...@gmail.com
on 8 Dec 2009 at 9:05