开发者

Multiple GeoCoordinateWatchers in WP7 Cause Bad Data

开发者 https://www.devze.com 2023-03-13 05:10 出处:网络
If I have multiple GeoCoordinateWatchers in a WP7 application, they seem to cause conflict with one another. I would assume that if I have a watcher setup like:

If I have multiple GeoCoordinateWatchers in a WP7 application, they seem to cause conflict with one another. I would assume that if I have a watcher setup like:

new GeoCoordinateWatcher(GeoPositionAccuracy.High) { MovementThreshold = 0 }

and another setup like:

That the value from the first should be extremely accurate whereas the second one should be used 开发者_开发知识库as a point of reference.

new GeoCoordinateWatcher(GeoPositionAccuracy.Default) { MovementThreshold = 1000 };

However, the second one causes the first coordinates to jump all over the place. If I comment out the second, the first works as expected. Any idea why?


Try setting the same accuracy and see if you get the same values.

0

精彩评论

暂无评论...
验证码 换一张
取 消