<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span><font size="2"><div>Hi,</div><div><br></div><div>Thanks....it works for keyboard defaults, but not for PanZoom</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>var c=map.getControlsByClass('OpenLayers.Control.PanZoom');</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>c[0].deactivate();</div></font></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div>  <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Imran Rajjad &lt;rajjad@gmail.com&gt;<br> <b><span style="font-weight: bold;">An:</span></b> Robert
 Buckley &lt;robertdbuckley@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "users@openlayers.org" &lt;users@openlayers.org&gt; <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 11:59 Dienstag, 21.Februar 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [OpenLayers-Users] How to create a mp without controls and without keyboard defaults<br> </font> </div> <br><div id="yiv1516998816">var c=map.getControlsByClass("OpenLayers.Control.KeyboardDefaults");<div>c[0].deactivate();</div><div><br></div><div>this is how you disable keyboard controls, you can do the same for others</div><div><br></div><div>
regards,<br><br><div class="yiv1516998816gmail_quote">On Tue, Feb 21, 2012 at 3:53 PM, Robert Buckley <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:robertdbuckley@yahoo.com" target="_blank" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv1516998816gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div>Hi,</div><div><br></div><div>I need to create a map without the ability to zoom or pan and a fixed area. I have removed all the controls fro the map object but I still get the panzoom and keyboard defaults. I guess restricted extent will freeze the map...but what about the mouse wheel and keyboard?</div>
<div><br></div><div>Google doesn´t seem to have much!</div><div><br></div><div>thanks for any advice,</div><div><br></div><div>Rob</div><div><br></div><div><br></div></div></div><br>_______________________________________________<br>

Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.osgeo.org" target="_blank" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>I.R<br>
</div>
</div><br><br> </div> </div>  </div></body></html>