如何在Windows窗体和C#中包含Google Map [英] how to include google map in windows form and C#

查看:82
本文介绍了如何在Windows窗体和C#中包含Google Map的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用C#或.net与任何其他语言将google map与Windows窗体应用程序集成,我尝试使用webbrowser控件,但我觉得google Earth插件将需要显示地图,因此它将无法正常工作...如果还有其他可能,请让我知道.



我会尝试的...


另外,我想存储一些imageray日以供脱机使用....有什么方法可以将Google Earth数据存储为KML文件格式,而不是再次加载该数据..
谢谢

I want to integrate google map with windows form application using C# or .net with any other language, 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... if there any other possiblity please let me know thanks.



I will try it out...


aditionally I want to store some imageray day for offline use.... is there any way possible to store google earth data in KML file format and than load the data again..
thanks

推荐答案

写道:​​

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

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.


这篇关于如何在Windows窗体和C#中包含Google Map的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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