Closed joeytheman closed 13 years ago
Passing auto_zoom => false fixes the issue.
:)
Not sure if that really works. Yes it will override the condition for a single marker, but when there are multiple markers again, you really want the autozoom => true, no? Setting maxZoom and minZoom helps but it limits how far users can zoom. Neither is a perfect solution.
For archives, nice solution presented here:
http://stackoverflow.com/questions/5821997/google-maps-ruby-on-rails-zoom-level-with-one-marker
If a single element is present in @json,the map shows fully-zoomed in, ignoring the zoom option. Works fine with 2 or more elements.