谷歌地图api v3地图显示问题 [英] google maps api v3 map display issue

查看:137
本文介绍了谷歌地图api v3地图显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看此页面上的地图: http://demo.wpconsult.net/ sample / sub-page-11
如果您选择地图旁边左侧窗格中的位置,则会弹出信息窗口,但看起来很糟糕。
我不知道它是否与google chrome inspector中的Mime类型警告有关吗?

解决方案

p>

将这些添加到您的css中。 (我发现的另一个来源建议删除 img {max-width} ,如果有的话。)

 #map-canvas label {width:auto;显示:内联; } 
#map-canvas img {max-width:none; }

p.s。我想每个人都会得到mime类型的警告。


look at the map on this page: http://demo.wpconsult.net/sample/sub-page-11 if you select the location in the left pane next to the map, the infobubble pops up but it looks broken. I wonder if it's related to the Mime type warnings in google chrome inspector?

解决方案

Zoom bar disfigured in Google-Maps-for-Rails (gmaps4rails)

Add these to your css. (another source I found recommended removing the img { max-width } if there was one.)

#map-canvas label { width: auto; display:inline; }
#map-canvas img { max-width: none; }

p.s. I think everyone gets the mime-type warnings.

这篇关于谷歌地图api v3地图显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆