如何缩小嵌入的 google 地图?
How to zoom out embedded google maps?
在我的网站中,我使用了使用以下代码 (jsfiddle here) 的嵌入式 google 地图:
<iframe
width="300"
height="170"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0"
src="https://maps.google.com/maps?q=52.3735618,4.8943677&hl=es;z=3&output=embed">
</iframe>
地图显示正常,但我希望地图显示大面积(即缩小一点)。我尝试改变 url 中 z
的值,但这似乎没有任何改变。
有谁知道如何使用此嵌入式 google 地图显示大面积区域?欢迎所有提示!
你在src中使用的url是错误的,为了分隔参数你必须使用&
它适用于此 url :
https://maps.google.com/maps?q=52.3735618,4.8943677&hl=es&z=15&output=embed
您可以在这里使用缩放参数(1-20 个值):
http://jsfiddle.net/e5w4enb5/
在我的网站中,我使用了使用以下代码 (jsfiddle here) 的嵌入式 google 地图:
<iframe
width="300"
height="170"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0"
src="https://maps.google.com/maps?q=52.3735618,4.8943677&hl=es;z=3&output=embed">
</iframe>
地图显示正常,但我希望地图显示大面积(即缩小一点)。我尝试改变 url 中 z
的值,但这似乎没有任何改变。
有谁知道如何使用此嵌入式 google 地图显示大面积区域?欢迎所有提示!
你在src中使用的url是错误的,为了分隔参数你必须使用&
它适用于此 url :
https://maps.google.com/maps?q=52.3735618,4.8943677&hl=es&z=15&output=embed
您可以在这里使用缩放参数(1-20 个值):
http://jsfiddle.net/e5w4enb5/