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

Create a map without markers #112

Closed niuage closed 12 years ago

niuage commented 12 years ago

What's wrong with this code? I'm just trying to create a clean map, without markers, with a defined center and zoom. The center_longitude/latitude and zoom are ignored :(

<%= gmaps({
    :map_options => {
         :center_latitude => 41.574361,
         :center_longitude => -72.949219,
         :zoom => 3,
         :raw => '{ scrollwheel: false }',
          :libraries => ["places"] }
 }) %>

Thanks

apneadiving commented 12 years ago

Well, just realized that you need to pass: :auto_adjust => false as well.

Sounds a bit buggy, I'll dig it later.

Thanks for reporting

niuage commented 12 years ago

Thanks for the quick answer, I was starting to dig into the code, saved me some time ;)

ps: just wanted to say that you really did a good job with this gem, really useful and much better than the other ones I tried.

apneadiving commented 12 years ago

Solidarité entre frenchies ;)

niuage commented 12 years ago

Merci ;)