位置检测 [英] Location detection

查看:118
本文介绍了位置检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http://www.strahlen.org/map/central上使用geometa.js .htm 来检测浏览器的位置。在Chrome和Firefox中完美平滑,
,但对于使用IE和/或Safari的用户并不总是有效。

I am using geometa.js on http://www.strahlen.org/map/central.htm to detect the browser's location. Works perfect and smooth in Chrome and Firefox, but it doesn't always work for users with IE and/or Safari.

这是我能解决的问题?
是否有更好的位置脚本可以使用,适用于所有浏览器/平台?

Is this something I can solve? Is there perhaps a better location script around that I could use, that works on all browsers/platforms?

干杯,Frank

推荐答案

看起来像,geometa.js充当 navigator.geolocation 的后备位置。这很好,这是最好的办法,唯一的问题是支持不是通用的:
http://caniuse.com/#search=geolocation

Looks like geometa.js acts as a fallback for navigator.geolocation to get the location. That's great, it's the best way to do it, the only problem is that support isn't universal: http://caniuse.com/#search=geolocation

这篇关于位置检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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