<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 23/10/11 01:02, Chris Foulston wrote:<br>
    Hi Chris,<br>
    <br>
    <br>
    <span class="st"> <em>Brilliant</em> ! problem sorted!</span><br>
    <br>
    <blockquote
      cite="mid:8A181D3D-F13A-4970-8A0E-92C752814237@onebrightspace.com"
      type="cite">Hi Dave,
      <div><br>
      </div>
      <div>Try setting the "restrictedExtent" property on the map, this
        should do it if I understand your question correctly.</div>
      <div><br>
      </div>
      <div>Chris</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
        <div>
          <div>On 22 Oct 2011, at 20:12, Dave Potts wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div><br>
              When using the DragPan Control its possible to move the
              map image<br>
              outside of the viewport.<br>
              <br>
              When I set the MaxExtent of a map, to match the physical
              size of the<br>
              map, &nbsp;I &nbsp;assume the it would be impossible to drag the map
              image outside<br>
              of the viewport, but openlayers seem to be quite happy to
              allow this. <br>
              Is there any way of stopping it?<br>
              <br>
              For example<br>
              <a moz-do-not-send="true"
href="http://dev.openlayers.org/releases/OpenLayers-2.11/examples/drag-feature.html">http://dev.openlayers.org/releases/OpenLayers-2.11/examples/drag-feature.html</a><br>
              <br>
              if you drag the map down untill you can see the north
              pole, it possible<br>
              to carry on dragging &nbsp;the map until you move off the end
              off the image,<br>
              when you see a white background. &nbsp;If would prefer to limit
              the map<br>
              movement until you hit the border of the map image.<br>
              <br>
              Dave.<br>
              _______________________________________________<br>
              Users mailing list<br>
              <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
              <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
            </div>
          </blockquote>
        </div>
        <br>
        <div>
          <span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-indent: 0px; text-transform: none;
            white-space: normal; widows: 2; word-spacing: 0px;
            font-size: medium;"><span class="Apple-style-span"
              style="border-collapse: separate; color: rgb(0, 0, 0);
              font-family: Helvetica; font-size: medium; font-style:
              normal; font-variant: normal; font-weight: normal;
              letter-spacing: normal; line-height: normal; orphans: 2;
              text-indent: 0px; text-transform: none; white-space:
              normal; widows: 2; word-spacing: 0px;">
              <div><br class="Apple-interchange-newline">
                Chris Foulston</div>
              <div>Managing Director</div>
              <div><br>
              </div>
              <div>One Bright Space</div>
              <div>Badgers Moon</div>
              <div>Hook End</div>
              <div>Checkendon</div>
              <div>Reading</div>
              <div>RG8 0UJ</div>
              <div>Mobile: 07769 783 744</div>
              <div><a moz-do-not-send="true"
                  href="http://www.onebrightspace.com">www.onebrightspace.com</a></div>
              <div><br>
              </div>
              <div>BS EN ISO 9001:2008</div>
              <div>Green Dragon Environmental Standard</div>
              <div>Young&nbsp;Entrepreneur of Ceredigion 2008</div>
              <div><br>
              </div>
              <div>
                <div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
                  font-family: Calibri,sans-serif; color: black;"><span
                    style="font-size: 8pt;" lang="EN-GB">Registered in
                    England and Wales Company&nbsp;number 5027696</span><o:p></o:p></div>
                <div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
                  font-family: Calibri,sans-serif; color: black;"><span
                    style="font-size: 8pt;">Registered Office: Technium,
                    Y Lanfa, Aberystwyth, SY23 1AS</span><o:p></o:p></div>
                <div style="margin: 0cm 0cm 0.0001pt; color: black;"><font
                    class="Apple-style-span" size="3"><span
                      class="Apple-style-span" style="font-size: 11px;">-----------------------------------------------------------------------------------<br>
                      Confidentiality and Disclaimer: This email and its
                      attachments are intended for the addressee only
                      and may be confidential or the subject of legal
                      privilege. If this email and its attachments have
                      come to you in error you must take no action based
                      on them, nor must you copy them, distribute them
                      or show them to anyone. Please contact the sender
                      to notify us of the error. This email and any
                      attached files have been scanned for the presence
                      of computer viruses. However, you are advised that
                      you open any attachments at your own risk</span></font></div>
              </div>
            </span></span>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>