title: Google Maps Disable user panning on all events
body: <p>In my google maps application I have a follow method which follows a moving marker. When it is following I want to allow zooming through all the usual methods (dblclick, dblleftclick, mousewheel and touch events) and I want to disable panning of any kind. The problem is that on zoom with mousewheel and dblclick the map gets panned to the position of the mouse. I can disable everything just fine but I want to allow zooming. I have solved the mousewheel problem by using the jquery mousewheel plugin and using the delta to change the zoom.</p>
  
  <p>Is there some easy way to do this or do I have to write a listener for all the different touch and mouse events?</p>
  
  <p>EDIT</p>
  
  <p>I have already disable double click, mousewheel zooming and dragging but I want to have the double click functionality still there. I also want the touch events there but I want to have them zoom from the centre rather than from where the event happened. The real problem is replicating the events which google already handle but change the functionality a bit</p>
  
  <pre><code>var options = {
      disableDoubleClickZoom: true,
      draggable: false,
      scrollwheel: false,
      panControl: false
  };
  
  this.map = new google.maps.Map(document.getElementById('map'), options);
  </code></pre>
  
  <p>My ideal solution would be if there was a <code>disableDoubleClickPan</code> and <code>disableScrollwheelPan</code> or the <code>draggable</code> option actual prevents all dragging of any kind</p>
  
  <p>EDIT</p>
  
  <p>This is for all devices, desktop and mobile.</p>