Try use gmaps with this map option: "auto_adjust" => false
or just with js: pos = new google.maps.LatLng(your_lat, your_lng);
                    Gmaps4Rails.map.setCenter(pos);

On Aug 15, 10:53 pm, bertly_the_coder <[email protected]> wrote:
> Hi guys,
>
> I'm trying to use longitude and latitude to center a map like so:
> <%= gmaps("map_options" => { "auto_zoom" => true, "center_latitude" =>
> 40.7275043, "center_longitude" => -73.9800645},"markers" => { "data"
> => @json}) %>
>
> I have tried several variations of the line above, but none of them
> seem to center the map where I need it centered. I'm I missing
> something? If so, please let me know.
>
> Thank you much!
> Bertly

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to