C#Web浏览器控件和Google Map API警告消息 [英] C# Web Browser Control and Google Map API warning message

查看:178
本文介绍了C#Web浏览器控件和Google Map API警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个C#Winforms应用程序,它使用WebBrowser控件来显示谷歌地图。 



从15日开始2017年8月,Google停止使用IE 8和兼容性视图,我收到此警告消息:"您使用的是Google Maps JavaScript API不支持的浏览器。考虑更改浏览器'。



我试过注册表选项,但缺点是它似乎需要一个注册表项。



我的应用程序是使用用户模式支持windows7 / 8/10。



.Net Framework:3.5


< p style ="padding-right:0px; font-size:15px; line-height:inherit; font-family:Arial ,'Helvetica Neue',Helvetica,sans-serif;垂直对齐:基线;明确:两者;颜色:#242729">
有什么建议吗?





问候



Subba





解决方案

也许你可以用取代控件
替代品
。有很多选择。


但是你的.NET框架版本可能是一个限制因素。说CefSharp确实要求你定位v4.5.2 +自v49以来,Google地图仅支持Chrome最多1个早期版本。您可能需要自行下载源代码,以便为您的版本添加版本兼容的
,或者只升级您的定位.NET框架版本。并准备由于这个版本控制问题,更频繁地发布。


从开发的角度来看,似乎坚持使用webbrowser控件并使用注册表更方便。


I have a C# Winforms application which uses WebBrowser control to display Google Maps. 

From 15th August 2017, Google stopped working with IE 8 and Compatibility views and I am receiving this warning message:'You are using a browser that is not supported by the Google Maps JavaScript API. Consider changing your browser'.

I tried registry options but the downside is that it seems to require a registry entry.

My application is supporting windows7/8/10 with user mode.

.Net Framework : 3.5

Any suggestions?

Regards

Subba

解决方案

Maybe you can replace the control with alternatives. There is a number of choice.

However your .NET framework version could be a limiting factor. Say CefSharp do require you to target v4.5.2+ since v49 and Google Map only support Chrome up to 1 earlier version. You may need to download the source yourself to hammer a build compatible to your version or just upgrade your targeting .NET framework version. And prepare for more frequent release because of this versioning problem.

From development's perspective, seems stick with webbrowser control and using the registry is more handy.


这篇关于C#Web浏览器控件和Google Map API警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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