navigator.getCurrentPosition takes an optional 3rd argument that is an options object. Try setting the enableHighAccuracy and maximumAge parameters and see what happens.
http://dev.w3.org/geo/api/spec-source.html#position_options_interface Chad Killingsworth On Jul 2, 5:15 am, Rolf Dohrmann <[email protected]> wrote: > I noticed that the native Google Maps App on my smartphone needs a few > seconds until it can change my position from the cell tower position > to the real position (GPS). So I wondered if this might be the reason > why google maps API in android does not show the correct position but > only the cell tower: it might take some time to find out where the > real (GPS) position is. But the sample script calls the data only once > when initializing. That means it has no time. So I wrote a script that > loops about 10 times, each 10 seconds. It calls the current position > again and again. However, that didn't work either. > > http://www.speibl.com/samples/v3-tutorial-17-geolocation1b.html > > Now I have no more idea how to fix that from my side and I wonder if > it is really possible to show the GPS-position in the android browser. > Is there any example that shows that it works? I'd like to check that. > Perhaps it's a problem related to my smartphone? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
