Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 xx 像素的填充创建可以覆盖比当前视口更多的区域的地图边界。如何在谷歌地图(v3)上做到这一点?
您可以获取每个边界标记,将 .001(或一些合适的值)添加到每个 lat & lng,然后扩展边界。
我怀疑你可以让 div 有点过大.. 但它会创建滚动条。
#map{ width: 105%, height: 105%}
我认为让它只适合 100% 和 100% 的视口更有意义,它会随窗口动态调整大小。