与其他浏览器相比,为什么IE9地理定位支持受到破坏? [英] Why is IE9 geolocation support broken compared to other browsers?

查看:159
本文介绍了与其他浏览器相比,为什么IE9地理定位支持受到破坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个地图应用程序,并且已经注意到,尽管IE9支持地理定位api,但它错误地计算了纬度/经度。 其他用户也注意到< a href =http://social.technet.microsoft.com/Forums/en-IE/ieitprocurrentver/thread/aea4db4e-0720-44fe-a9b8-09917e345080 =nofollow> http://social.technet。 microsoft.com/Forums/en-IE/ieitprocurrentver/thread/aea4db4e-0720-44fe-a9b8-09917e345080 ,但没有任何数量的谷歌搜索会带来开发者博客/更多技术读者的任何结果......我发现只是奇怪,是没有人测试他们的地理位置代码在IE9!?

以下是我的示例代码: https://gist.github.com/1710256



有人知道这是为什么吗?检测到几乎不可能的地理位置。另外,我注意到回退(Paul Irish的polyfill中提供的)也具有与IE9的本地实现相同的问题吗?



其他人是否遇到过地理位置问题在IE9上?



任何帮助/建议都可以使用。 根据 此页面 Firefox使用Google定位服务


它是如何运作的?



当您访问位置感知网站时,Firefox会询问您是否需要分享您的位置。



如果您同意, Firefox收集有关附近无线
接入点和您计算机IP地址的信息。然后,Firefox会将此
信息发送给默认地理位置服务提供商Google
位置服务,以估算您的位置。然后,该位置
的估算值将与请求网站。


并根据本页 Internet Explorer(相当可预测地)使用Microsoft定位服务:



< blockquote>

如果允许,Internet Explorer将在Microsoft位置服务的帮助下逼近您的位置


报告位置的差异将归因于底层数据库的差异,例如,Google数据库可能会列出Microsoft不支持的WiFi点或IP地址(或反之亦然)。

我找不到有关更改IE的位置提供程序的任何信息,尽管Firefox做了s似乎有替代供应商的条款,目前我无法看到如何更改它。



请注意,对于我而言,Internet Explorer实际上更准确地报告了我的位置浏览器正确地获取我的位置,但是在IE中,错误半径大约为10英里,而Firefox中大约20英里)。

I'm building a map application and have noticed that although IE9 supports the geolocation api it incorrectly calculates the latitude/longitude.

Other users have also noticed this http://social.technet.microsoft.com/Forums/en-IE/ieitprocurrentver/thread/aea4db4e-0720-44fe-a9b8-09917e345080, but no amount of googling brings up any results from developer blogs/more technical readers... which I find just bizarre, is no one testing their geolocation code in IE9!?

Here is my example code: https://gist.github.com/1710256

Does anyone here know why this would be because it makes feature detecting the geolocation api damn near impossible. Also, I noticed that the fallback (as provided in Paul Irish's polyfill) also has the same issues as found in IE9's native implementation?

Has anyone else experienced this issue with geolocation on IE9?

Any help/advice appreciated.

解决方案

According to this page Firefox uses Google Location Services:

How does it work?

When you visit a location-aware website, Firefox will ask you if you want to share your location.

If you consent, Firefox gathers information about nearby wireless access points and your computer’s IP address. Then Firefox sends this information to the default geolocation service provider, Google Location Services, to get an estimate of your location. That location estimate is then shared with the requesting website.

And according to this page Internet Explorer (rather predictably) uses Microsoft Location Services:

If you allow, Internet Explorer will approximate your location with the help of the Microsoft Location Service

The difference in the reported location will be due to the differences in the underlying databases, for example the Google database may list a WiFi point or IP address that the Microsoft one doesn't (or visa versa).

I can't find any information about changing the location provider for IE, and although Firefox does appear to have provisions for alternative providers I can't at this moment see how to change it.

Note that for me Internet Explorer actually reports my location more accurately (both browsers get my location correctly, however in IE the error radius is around 10 miles whereas in Firefox its around 20 miles).

这篇关于与其他浏览器相比,为什么IE9地理定位支持受到破坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆