网络浏览器中的Google地图 [英] google maps in webbrowser
问题描述
对...我有一个带有Web浏览器的Windows窗体.
这是为用户使用地图查找交货位置(如果他们不确定..LOL)而设计的.不需要任何花哨的东西.但是,当我将google map加载到webbrowser控件中时,该控件运行完美,我想确保google map的侧面板默认处于隐藏状态.看到过一些地方提到了google API,但这可能会显得过分杀伤.
我尝试了InvokeScript等...任何想法,而且也无法找到我必须调用的脚本..
使用2010 visual studio Ultimate.
Right...I have a windows form with a webbrowser on it.
This is made for a application where the user is usinging the map to look up delivery locations (if they are not sure..LOL). No need for anything fancy. however when i load google map into the webbrowser control, which works perfectly, i want to make sure that the side panelof google map is hidden by default. Seen a few places mention the google API, but that might be overkill for this.
I tried InvokeScript etc...any ideas and also I have not been able to find the script i have to invoke..
Using 2010 visual studio ultimate.
推荐答案
请使用以下参数,如以下URL所示使用output = embed参数:
^ ].
为了进行比较,不带该参数的URL: ^ ]
享受吧!
-MRB
Please use the parameter output=embed like in the URL below:
http://maps.google.co.uk/?q=-1.39607123449722%2035.0180155976975%20%28Sir%20Alan%27s%20photograph%29%20&z=13%20&t=h%20&output=embed[^].
For comparison the URL without that parameter: http://maps.google.co.uk/?q=-1.39607123449722%2035.0180155976975%20%28Sir%20Alan%27s%20photograph%29%20&z=13%20&t=h%20[^]
Enjoy!
-MRB
这篇关于网络浏览器中的Google地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!