Google-Maps-for-Rails(gmaps4rails)中变形的变焦条

rya*_*nes 17 google-maps gmaps4rails

出于某种原因,我的变焦条都是像素化的,我不知道为什么.有任何想法吗?我使用了基本设置:

Controller: @json = User.all.to_gmaps4rails
View: <%= gmaps4rails(@json) %>
Run Code Online (Sandbox Code Playgroud)

我没有传递任何特殊参数或任何东西.我模特身上的标记显示得很漂亮.

缩放

nod*_*rog 27

将此添加到您的CSS ...在那里您还将遇到地形和覆盖下拉列表的问题...

#mapCanvas label { width: auto; display:inline; }
#mapCanvas img { max-width: none; }
Run Code Online (Sandbox Code Playgroud)


Sib*_*ang 11

使用gmaps4rails 1.5.6,使用map而不是mapCanvas,即

#map label { width: auto; display:inline; }
#map img { max-width: none; }
Run Code Online (Sandbox Code Playgroud)

参考:

Github:twitter/bootstrap问题列表 - Bootstrap扭曲了一些谷歌地图控件和叠加层 - 由diogocsc评论
https://github.com/twitter/bootstrap/issues/1552#issuecomment-11153057