将谷歌地图链接到表单 [英] Link up google maps to a form

查看:86
本文介绍了将谷歌地图链接到表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

希望有人能够帮助我..我想要
将谷歌地图链接到一个表单.更具体地说,我有一个
图片框,因此在键入地址时
在文本框中,地图应显示
在图片框中,只有地图而不是
完整的Google Maps网页.

请任何帮助将被申请

谢谢

Hello,

Hope someone will be able to help me with this.. I want
to link google maps to a form . To be more specific I have a
picture box , so when the address is typed
into the textbox the maps should display
in the picture box and only the maps not the
complete google maps webpage.

Please any help would be appriciated

Thanks

推荐答案

关于



how about



string mygoogURL = "http://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&sensor=false";
string myfilename = "c:\\mymap.png";

new System.Net.WebClient().DownloadFile(mygoogURL,myfilename);
pictureBox1.Image = new Bitmap(myfilename);



请查看下面的链接以获取更多地图选项

http://code.google.com/apis/maps/documentation/staticmaps/index. html#StyledMaps [ ^ ]



take a look at the link below for more map options

http://code.google.com/apis/maps/documentation/staticmaps/index.html#StyledMaps[^]


这篇关于将谷歌地图链接到表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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