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

functionality for 'scrollwheel' & 'streetViewControl' #96

Closed BBQ closed 13 years ago

BBQ commented 13 years ago

added functionality to disable/enable 'scrollwheel' and 'streetViewControl', very useful on small maps

apneadiving commented 13 years ago

what's this pull request? you propose I merge my own code?

docgecko commented 12 years ago

Has the ability to disable the streetViewControl been added already? If so, what is the code? I have tried the following bit with no luck:

:map_options => { :streetViewControl => false }

Also, is it possible also to add the Scale Bar also?

Many thanks!

apneadiving commented 12 years ago

You can pass whatever option you need with the raw key.

See doc.

Sent from my iPhone

On 5 juin 2012, at 15:33, Daren Serra Dias Warburtonreply@reply.github.com wrote:

Has the ability to disable the streetViewControl been added already? If so, what is the code? I have tried the following bit with no luck:

:map_options => { :streetViewControl => false }

Also, is it possible also to add the Scale Bar also?

Many thanks!


Reply to this email directly or view it on GitHub: https://github.com/apneadiving/Google-Maps-for-Rails/pull/96#issuecomment-6124927

docgecko commented 12 years ago

Excellent, thanks @apneadiving ... this works:

:map_options => { :raw => '{ streetViewControl: false, scaleControl: true }' }