apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Initial values #68

Closed jtomasrl closed 13 years ago

jtomasrl commented 13 years ago

when assigning values under map_options: { } this values are not working

same when using <%= gmaps("map_options" => { "detect_location" => false, "center_on_user" => false, "zoom" => 18},"markers" => { "data" => @json }) %>

it just uses the default values, for example, zoom = 6

apneadiving commented 13 years ago

First accept the answer I gave you on stackoverflow, it's the least you can do.

Then I'll take a close look (But I'd need more context).

jtomasrl commented 13 years ago

I accept it already. In any context just adding those lines or trying to change default maxzoom or default zoom

apneadiving commented 13 years ago

you've forgot this: http://stackoverflow.com/questions/7014971/show-gmaps-location-when-clicking-on-an-item-gmaps4rails

apneadiving commented 13 years ago

ok, thanks.

I guess I understand your question but since the answer lies in the wiki, it's not an issue, just a question to post on stackoverflow. Post it there and I'll answer directly.

cameel commented 13 years ago

You need to add "auto_zoom" => false to "map_options"

EDIT: Only after refreshing the page I noticed that this has already been closed.