Google地图嵌入了错误的缩放 [英] Google maps embed with wrong zoom
问题描述
我在嵌入新的Google地图时遇到了问题。
正如你可以在我的网站上看到的那样,嵌入的地图到目前为止都被缩小了。
我该如何解决这个问题?我想用常规/普通缩放嵌入地图
i'm having a problem with new google maps embed. As you can see in my print off my site, the maps embed is so far zoomed out. How can i solve this problem ? I want to embed the map with a regular/normal zoom
我无法将图像添加到此文章中,因为我没有必要的声望。
以下是我的打印链接: http://imageshack.com/a/ img89 / 958 / figs.jpg
I can't add image to this post because i don't have the necessary reputation. Here's a link of my print: http://imageshack.com/a/img89/958/figs.jpg
谢谢你们!
推荐答案
您可以将缩放参数添加到您的html代码的src部分。数字越小,放大的距离越远。 Zoom = 10是开始测试的好地方。
You can add a zoom paramater to the src part of your html code. The lower the number the farther out you zoom. Zoom = 10 is a good place to start testing.
<iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key=API_KEY&q=Space+Needle,Seattle+WA&zoom=10"></iframe>
您可以在此页面的Google文档中的可选参数中找到更多信息。
https://developers.google.com/maps/documentation/embed/guide
You can find out more in Google's documentation on this page under "Optional Parameters". https://developers.google.com/maps/documentation/embed/guide
这篇关于Google地图嵌入了错误的缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!