如何添加gestureHandling:'合作'到gmaps for rails?

时间:2017-03-24 20:27:10

标签: ruby-on-rails gmaps4rails

如何使用gmaps for railsgestureHandling: 'cooperative'添加到地图?

1 个答案:

答案 0 :(得分:1)

您是否尝试过JS Methods section of the docs

这样的事情应该有效:

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