title: Constrain panning on Openlayers map
body: <p>Restricting the panning on an Openlayers map doesn’t have in mind the rotation. So when rotating the map, the constrain doesn't get rotated. </p>
  
  <p>This two squares show the actual extent and the desired one:</p>
  
  <p><a href="https://i.stack.imgur.com/DAaBF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DAaBF.png" alt="enter image description here"></a></p>
  
  <p>I defined the constrain with "extent" option in view like that:</p>
  
  <pre><code>var baseView = new ol.View({
      center: [241160, 5069100],
      zoom: 11,
      extent: [226838, 5084100, 255700, 5055200]
  });
  </code></pre>
  
  <p>Here is working example on <a href="http://jsfiddle.net/geraldo/fvgdqser/2/" rel="nofollow noreferrer">jsfiddle</a> for testing this behaviour.</p>
  
  <p>How can I implement to constrain panning having rotation in mind?</p>