I too had written originally in watchPosition() but was not satisfied
with location updates being as infrequent as they were, since this
application is pretty responsive and proactive: pinging for nearby
features, updating a listing with distance/direction readouts, as well
as toggling auto-centering of a map off and on (see below)...
Switching over to getCurrentPosition() solved all of these: every 3
seconds I know for a fact there will be a location update, and if they
had turned auto-centering on 2.9 seconds ago then we're still good, right?
Switching over to watchPosition() does mean reinstating some of those
earlier considerations. Example: if they turn on auto-centering of the
map, they probably want it centered right now. If you're using
watchPosition() and they turn on auto-centering ... then there is no
position update, and the map won't auto-center until they wave their
arms around and walk in a circle. Workaround: upon turning on
auto-center, you'd explicitly do a getCurrentPosition() and hand off to
presumably that selfsame on-location-event handler you're already using.
If you're already using setInterval() over getCurrentPosition() then
your starting point is to change literally two lines of code. But it's
small considerations like that auto-centering expectation, which the
changeover "more interesting".
-g
> <mailto:
kerri...@gmail.com <mailto:
kerri...@gmail.com>>__>
> wrote:
>
> The place to submit issues would be here:
>
https://issues.apache.org/__jira/browse/CB
> navigator.geolocation.__watchPosition(onSuccess,
> onFailure,
> options);
> }
> document.addEventListener("__deviceready", start,
>
phon...@googlegroups.com <mailto:
phon...@googlegroups.com>
> <mailto:
phonegap@googlegroups.__com
> <mailto:
phon...@googlegroups.com>>
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@__
googlegroups.com
> <mailto:
phonegap%2Bunsu...@googlegroups.com>
> <mailto:
phonegap%__2Buns...@googlegroups.com
> <mailto:
phonegap%252Buns...@googlegroups.com>__>
> For more options, visit this group at
>
http://groups.google.com/__group/phonegap?hl=en?hl=en
>
www.phonegap.com <
http://www.phonegap.com> <
http://www.phonegap.com>
> ---
> You received this message because you are subscribed to the
> Google
> Groups "phonegap" group.
> To unsubscribe from this group and stop receiving emails
> from it,
> send an email to phonegap+unsubscribe@__
googlegroups.com
> <mailto:
phonegap%2Bunsu...@googlegroups.com>
> <mailto:
phonegap+unsubscribe@__
googlegroups.com
> <mailto:
phonegap%2Bunsu...@googlegroups.com>>.
> For more options, visit
>
https://groups.google.com/d/__optout
> <
https://groups.google.com/d/optout>.
>
>
> --
> -- You received this message because you are subscribed to the
> Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> <mailto:
phon...@googlegroups.com>
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@__
googlegroups.com
>
http://groups.google.com/__group/phonegap?hl=en?hl=en
> an email to phonegap+unsubscribe@__
googlegroups.com
> <mailto:
phonegap%2Bunsu...@googlegroups.com>
> <mailto:
phonegap+unsubscribe@__
googlegroups.com
> <mailto:
phonegap%2Bunsu...@googlegroups.com>>.
> For more options, visit
https://groups.google.com/d/__optout
> <
https://groups.google.com/d/optout>.
>
>
>
> --
> Greg Allensworth, Senior Web GIS Developer
> BS A+ Network+ Security+ Linux+ Server+
>
> GreenInfo Network - Information and Mapping in the Public Interest
> 564 Market Street, Suite 510 San Francisco CA 94104
> PH:
541-223-7636 <tel:
541-223-7636> email:
gre...@greeninfo.org
> <mailto:
gre...@greeninfo.org>
> Web:
www.GreenInfo.org <
http://www.GreenInfo.org>
www.MapsPortal.org
> <
http://www.MapsPortal.org>
> <
http://www.GreenInfo.org>
>
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> <mailto:
phon...@googlegroups.com>
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@__
googlegroups.com
>
http://groups.google.com/__group/phonegap?hl=en?hl=en
> send an email to phonegap+unsubscribe@__
googlegroups.com
> <mailto:
phonegap%2Bunsu...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/__optout
> <
https://groups.google.com/d/optout>.
>
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> To unsubscribe from this group, send email to
>
phonegap+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to
www.phonegap.com
> ---
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
phonegap+u...@googlegroups.com
> <mailto:
phonegap+u...@googlegroups.com>.