在Google-Maps-for-Rails(gmaps4rails)中变形的缩放条 [英] Zoom bar disfigured in Google-Maps-for-Rails (gmaps4rails)

查看:101
本文介绍了在Google-Maps-for-Rails(gmaps4rails)中变形的缩放条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,我的缩放栏全部是像素化的,我不知道为什么。有任何想法吗?我使用了基本设置:

 控制器:@json = User.all.to_gmaps4rails 
查看:<%= gmaps4rails(@json)%>

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

解决方案

将此添加到您的css中...您还将遇到地形和叠加层下拉菜单...

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


For some reason my zoom bar is all pixelated and I'm not sure why. Any ideas? I used the basic setup:

Controller: @json = User.all.to_gmaps4rails
View: <%= gmaps4rails(@json) %>

I'm not passing any special parameters or anything. The markers that I have on my models show up beautifully.

解决方案

Add this to your css... there you will also have an issue with the terrain and overlays dropdowns...

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

这篇关于在Google-Maps-for-Rails(gmaps4rails)中变形的缩放条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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