Closed BBQ closed 13 years ago
what's this pull request? you propose I merge my own code?
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!
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
Excellent, thanks @apneadiving ... this works:
:map_options => { :raw => '{ streetViewControl: false, scaleControl: true }' }
added functionality to disable/enable 'scrollwheel' and 'streetViewControl', very useful on small maps