<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Works a treat!!</span></div><div><span><br></span></div><div><span>thanks</span></div><div><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> Andreas Hocevar <ahocevar@opengeo.org><br> <b><span style="font-weight: bold;">An:</span></b> Robert Buckley <robertdbuckley@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "users@openlayers.org" <users@openlayers.org> <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 12:07 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>Why not just<br><br>var map = new OpenLayers.Map("map", {controls: []});<br><br>Andreas.<br><br>On Tue, Feb 21, 2012 at 12:04 PM, Robert Buckley<br><<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>> wrote:<br>> Hi,<br>><br>> Thanks....it works for keyboard defaults, but not for PanZoom<br>><br>> var c=map.getControlsByClass('OpenLayers.Control.PanZoom');<br>> c[0].deactivate();<br>><br>> ________________________________<br>> Von: Imran Rajjad <<a ymailto="mailto:rajjad@gmail.com" href="mailto:rajjad@gmail.com">rajjad@gmail.com</a>><br>> An: Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>><br>> Cc: "<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>"
<<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>><br>> Gesendet: 11:59 Dienstag, 21.Februar 2012<br>> Betreff: Re: [OpenLayers-Users] How to create a mp without controls and<br>> without keyboard defaults<br>><br>> var c=map.getControlsByClass("OpenLayers.Control.KeyboardDefaults");<br>> c[0].deactivate();<br>><br>> this is how you disable keyboard controls, you can do the same for others<br>><br>> regards,<br>><br>> On Tue, Feb 21, 2012 at 3:53 PM, Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>><br>> wrote:<br>><br>> Hi,<br>><br>> I need to create a map without the ability to zoom or pan and a fixed area.<br>> I have removed all the controls fro the map object but I still get the<br>> panzoom and keyboard defaults. I guess restricted extent will freeze
the<br>> map...but what about the mouse wheel and keyboard?<br>><br>> Google doesn´t seem to have much!<br>><br>> thanks for any advice,<br>><br>> Rob<br>><br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>><br>><br>><br>><br>> --<br>> I.R<br>><br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>><br><br><br><br>-- <br>Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>Expert service straight from the developers.<br><br><br> </div> </div> </div></body></html>