Search code examples
ruby-on-railsruby-on-rails-3gmaps4rails

Did gmaps4rails ver 1.4.6 break the auto_adjust option?


My maps with single or multiple markers, each with a circle, all use auto_adjust.

Logging a gmaps call with a single marker to the console, I get:

gmaps( :map_options => {:auto_adjust=>true, :auto_zoom=>true}, :markers => {:data=>"[{\"lat\":43.5368851,\"lng\":-79.6849913}]"}, :circles => {:data=>"[{\"lng\":-79.6849913,\"lat\":43.5368851,\"radius\":5000.0,\"strokeColor\":\"#DD3300\"}]", :options=>{:fillOpacity=>0.35}} )

No problems in ver 1.4.5, but in ver's 1.4.6 through the newest 1.4.8 the maps do not auto-adjust and instead center at (latitude, longitude) = (0,0).

I assume the 1.4.6 update broke something, or is there another change that I've missed? Thanks!


Solution

  • Simply rerun the command to install the fresh assets from the gem :)

    rails generate gmaps4rails:install