如何在谷歌地图生成的脚本中设置缩小属性?

时间:2012-09-26 10:12:18

标签: javascript google-maps

我使用maps.google.com网站生成了一个脚本,它显示了我所需的位置,但地图叠加层已超出我定义的屏幕。

任何人都会指导我如何缩小1-2步&将该地图叠加层放在屏幕内以使其看起来更棒。

问题示例: 212.124.100.44/andrida/location /

代码:

<iframe width="390" height="380" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=51+Bellingham+Road,+Arthurs+Seat,+Victoria+3936,+Australia&amp;aq=&amp;sll=-38.367965,144.97331&amp;sspn=0.010077,0.01929&amp;ie=UTF8&amp;hq=&amp;hnear=51+Bellingham+Rd,+Arthurs+Seat+Victoria+3936,+Australia&amp;t=m&amp;z=14&amp;ll=-38.367965,144.97331&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=51+Bellingham+Road,+Arthurs+Seat,+Victoria+3936,+Australia&amp;aq=&amp;sll=-38.367965,144.97331&amp;sspn=0.010077,0.01929&amp;ie=UTF8&amp;hq=&amp;hnear=51+Bellingham+Rd,+Arthurs+Seat+Victoria+3936,+Australia&amp;t=m&amp;z=14&amp;ll=-38.367965,144.97331" style="color:#0000FF;text-align:left">View Larger Map</a></small>

任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

您应该能够在嵌入之前看到自定义地图的链接。如果您不确定,请按照以下步骤操作:

1)maps.google.com 2)搜索要嵌入的位置 3)单击打印按钮旁边的“链接”按钮 4)您现在应该能够在“链接”按钮旁边看到弹出窗口 5)点击“自定义和预览嵌入式地图” 6)添加所需的宽度,高度,缩小甚至重新定位位置,以便可以看到地址叠加。 7)如果一切正常,只需复制嵌入代码