apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Twitter bootstrap conflict #305

Closed nengine closed 10 years ago

nengine commented 11 years ago

Hello, I did follow the wiki instructions to override the twitter bootstrap as shown below but something is happening. I can see the map and zoom but I cannot seem to change the width of a map. I did change the width in gmaps4rails.css and it is never reflected on the page. it just remains the same.

/* override in bootstrap_and_overrides.css.scss */
#map img { 
  max-width: none;
}
#map label { 
  width: auto; display:inline; 
} 

/* gmaps4rails.css */

.map_container {
  padding: 6px;
  border-width: 1px;
  border-style: solid;
  border-color: #ccc #ccc #999 #ccc;
  -webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
  -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
  box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;
  width: 1200px;

}

.gmaps4rails_map {
  width: 1200px;
  height: 400px;
}
jbhatab commented 11 years ago

I have this .map_container { padding: 6px; border-width: 1px; border-style: solid; border-color: #ccc #ccc #999 #ccc; -webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px; -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px; box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px; width: 100%;

}

.gmaps4rails_map { width: 100%; height: 400px; }

and it seems to work fine. I even tried 1200px and it worked like it should. I doubt this is it but do you have <%= stylesheet_link_tag "gmaps4rails" %> before you application stylesheet tag?