且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows窗体和C#中包含Google Map

更新时间:2023-12-06 13:34:04

写道:​​

我正在尝试使用网络浏览器控件,但我谷歌地球插件将需要显示地图,以便它无法正常工作...

I am trying to use the webbrowser control but I thing the google earth plugin will be require for displaying the map so it will not work...



我看不出您怎么可能无法完成这项工作.您只需将控件放在页面上,然后浏览到该站点.



I don''t see how you could fail to make this work. You just put the control on your page, and browse to the site.


我还想添加一些JavaScript并从Windows窗体调用它,因为我确实需要一些代码api,并且在webBrowser控件未内置插件.....
I also want to add some javascript and invoke it from windows form for that I surely need some code api, and in webBrowser control the plugin is not builtin installed.....


您不需要任何插件.您可以创建自己的HTML页面,其中包括地图和javascript,然后将浏览器控件指向该页面.

请不要回答您自己的帖子-如有需要,请对其进行编辑.
There is no plugin that you need. You can create your own HTML page, which includes a map, and your javascript, and point your browser control to it.

PLEASE don''t answer your own post - edit it if you need to.