gmaps4rails single marker auto zoom

后端 未结 1 866
春和景丽
春和景丽 2021-01-14 07:02

I am trying to follow the answer here to zoom out a bit (by default) when a single marker is displayed on the map. I have tried the code below, and have a working map genera

1条回答
  •  迷失自我
    2021-01-14 07:43

    Ok, the interface changed a lot since I posted the answer you quote.

    <%= gmaps("markers" => {"data" => @json, "options" => {"auto_zoom" => false} }) %>
    
    <% content_for :scripts do %>
        
    <% end %>
    

    0 讨论(0)
提交回复
热议问题