Google地图缩放控制 [英] Google Maps zoom control
本文介绍了Google地图缩放控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Google Maps API(v.3)显示带有几个标记的地图。我最近注意到,用于缩放地图的控件被搞砸了(这不总是这样),我不知道原因是什么.....
I use the Google Maps API (v.3) to show a map with a couple of markers. I recently noticed that the control used to zoom the map is messed up (it wasn't always like this), I have no idea what the cause is.....
这篇文章最初有一个指向页面的链接,您可以在其中查看该问题,但链接现在已损坏,因此已将其删除。
This post originally had a link to a page where you could view the issue, but the link is broken now, so I've removed it.
推荐答案
您的CSS混乱了。在第814行中删除 max-width:100%;
,缩放控件将再次显示良好。要避免此类错误,请在CSS中使用更具体的选择器。
Your CSS messed it up. Remove max-width: 100%;
in line 814 and zoom controls will look fine again. To avoid such bugs use more specific selectors in your CSS.
这篇关于Google地图缩放控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文