Google 地图 API - 如何检查浏览器兼容性?
如何检查 google API v3 是否支持当前浏览器?我需要一些函数来做这样的事情:
if (!FUNCTION_I_AM_LOOKING_FOR()) {
alert('Sorry, your browser is not supported by Google Maps.');
return;
}
我无法找到合适的函数 API v3 参考
How do I check if google API v3 supports current browser? I need some function to do something like this:
if (!FUNCTION_I_AM_LOOKING_FOR()) {
alert('Sorry, your browser is not supported by Google Maps.');
return;
}
I wasn't able to find appropriate function in the API v3 reference
此功能当前在 v3 中不可用(在 v2 中称为
GBrowserIsCompatible()
)。 gmail-api-issues 中提交了一个问题跟踪器。由OP编辑:另请参阅此处:Google Maps API v3 BrowserIsCompatible
This functionality is currently not available in v3 (it is called
GBrowserIsCompatible()
in v2). There is an issue filed in the gmail-api-issues tracker.Edit by OP: Also look here: Google Maps API v3 BrowserIsCompatible