Google 地图不支持浏览器
Browser not supported by Google Maps
我用框架写了一个小程序(C#、WPF、.Net 4.6)。加载带有 google 地图的 HTML 文件后,出现此错误:
The browser you are using is not supported by the Google Maps JavaScript API. Use a different browser.
我已经添加了下面的HTML-代码:
<head><meta http-equiv="X-UA-Compatible" content="IE=edge" />
但它不再起作用了。
有人知道为什么或我应该改变什么?
这个 post 对我有用:https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version
它提供了一些注册表选项(我使用了注册表 HKLM 部分中的条目)。缺点是它似乎需要注册表项。
您可以通过添加以下内容来消除此错误:
<style>
.infomsg {display:none;}
</style>
您必须更改注册表
SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
为真
检查这个
https://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version
我用框架写了一个小程序(C#、WPF、.Net 4.6)。加载带有 google 地图的 HTML 文件后,出现此错误:
The browser you are using is not supported by the Google Maps JavaScript API. Use a different browser.
我已经添加了下面的HTML-代码:
<head><meta http-equiv="X-UA-Compatible" content="IE=edge" />
但它不再起作用了。
有人知道为什么或我应该改变什么?
这个 post 对我有用:https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version
它提供了一些注册表选项(我使用了注册表 HKLM 部分中的条目)。缺点是它似乎需要注册表项。
您可以通过添加以下内容来消除此错误:
<style>
.infomsg {display:none;}
</style>
您必须更改注册表
SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION 为真
检查这个
https://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version