Search code examples
ruby-on-railsgmaps4rails

How do I add gestureHandling: 'cooperative' to gmaps for rails?


How do I add gestureHandling: 'cooperative' to the map using gmaps for rails?


Solution

  • Have you tried the JS Methods section of the docs?

    Something like this should work:

    var handler = Gmaps.build('Google');
    handler.buildMap({
        internal: { id: 'map' },
        provider: {
          gestureHandling: 'cooperative'
        }
      },
      function(){ }
    );