Greetings.
I've had trouble with the Cartographer plugin when deploying to Heroku. I tried Google-Maps-for-Rails (gmaps4rails gem) and it looks very promising. But I've not been able to figure out how to set the map image size.
With Cartographer, I can set the map image size using markup like the following.
<div id="map-right">
<%= raw Cartographer::Header.new.to_s %>
<%= raw @map.to_html %>
<div id="map" style="width:658px;height:348px;">[Map]</div>
</div>
How do I get similar behavior using gmaps4rails? I'm trying this.
<div id="map-right">
<div id="map" style="width:658px;height:348px;"><%= gmaps4rails(@events_map) %></div>
</div>
That draws the map but does not set image size. What's a sensible approach?
Thanks.