I created an example and when I upload in Heroku the center of the map i开发者_JAVA百科s not working how it works on my machine.
<%= gmaps("map_options" => {
"center_latitude" => 42.359562,
"center_longitude" => -3.698387,
"container_id" => "mapaContainer",
"disableDefaultUI"=> false,
"disableDoubleClickZoom" => true,
"id" => "mapa",
"type" => "ROADMAP",
"zoom" => 7
},
"markers" => { "data" => @locales_markers }
) %>
Why it happens?
精彩评论