Reading the gmaps4rails gem documentation, I didn't find any way to set the map width and height. Is there any way to do this ?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- How do you change the color of the dotted line on
- Eager-loading association count with Arel (Rails 3
- How to specify memcache server to Rack::Session::M
相关文章
- Ruby using wrong version of openssl
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
if you want to do this easily I would recommend you follow this set of steps:
Add a custom container class using:
Then add in your css:
I should have given further details about this.
I'll make an installation rake task to copy css and javascript in the Rails app.
Well, for now, simply override this in your css (I assume you didn't change the map id).
If you want it to work, beware to include your css after the
yield(:head)
The answer by @apenadving didn't work for me, assuming that the map div classes and id's didn't change, I needed to do the following (in scss) in order to get things working correctly, maybe I'm missing something...
Also with rails 3.1 and above you can simply do the following in your
application.css.scss
file