如何打开iframe中的谷歌地图链接 [英] How to open google map link in iframe
本文介绍了如何打开iframe中的谷歌地图链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个谷歌地图的网址,我怎么能打开iframe
网址: http://maps.google.ca/maps?q=14735+32A+AVE+Surrey+ V4P + 1Z8 + bc& spn = 0.012065,0.040770& iwloc = A& hl = zh_CN
我正在使用此iframe打开/将地图嵌入到iframe中
< iframe src =http://maps.google.ca/maps?q= 14735 + 32A + AVE + Surrey + V4P + 1Z8 + bc& spn = 0.012065,0.040770& amp; amp; amp; amp; amp; amp; amp; amp; amp; hl = enwidth =600height =450frameborder =0风格= 边界:0 >< / iframe中>
它没有显示任何东西。请帮助 打开链接 。
- 选择分享或嵌入地图在嵌入地图选项卡中 选择一个尺寸
- 复制提供的iframe代码在页面上使用它。它看起来像这样:
< iframe src =https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d21056742.211671695!2d-97.15369!3d49.891235!2m3!1f0!2f0!3f0!3m2!1i1024!2i768 !4f13.1!2m1!1s14735 + 32A + AVE + Surrey + V4P + 1Z8 + bc!5e0!3m2!1sen!2sca!4v1424618801986width =600height =450frameborder =0style =border :0\" >< / iframe中>
i have a google map url how can i open this in iframe
url: http://maps.google.ca/maps?q=14735+32A+AVE+Surrey+V4P+1Z8+bc&spn=0.012065,0.040770&iwloc=A&hl=en
and i am using this iframe to open/embed the map in iframe
<iframe src="http://maps.google.ca/maps?q=14735+32A+AVE+Surrey+V4P+1Z8+bc&spn=0.012065,0.040770&iwloc=A&hl=en" width="600" height="450" frameborder="0" style="border:0"></iframe>
Its not showing me anything. Please help
解决方案
- Open the link in a web browser.
- click on the "gear" in the lower right corner (on the "new" Google Maps).
- Choose "Share or embed map"
- Click on the "Embed Map" tab
- Choose a size
- Copy the provided iframe code use it on your page. It will look like this:
<iframe src="https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d21056742.211671695!2d-97.15369!3d49.891235!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!2m1!1s14735+32A+AVE+Surrey+V4P+1Z8+bc!5e0!3m2!1sen!2sca!4v1424618801986" width="600" height="450" frameborder="0" style="border:0"></iframe>
这篇关于如何打开iframe中的谷歌地图链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文