[OpenLayers-Users] How to create a mp without controls and without keyboard defaults

Imran Rajjad rajjad at gmail.com
Tue Feb 21 05:59:37 EST 2012


var c=map.getControlsByClass("OpenLayers.Control.KeyboardDefaults");
c[0].deactivate();

this is how you disable keyboard controls, you can do the same for others

regards,

On Tue, Feb 21, 2012 at 3:53 PM, Robert Buckley <robertdbuckley at yahoo.com>wrote:

> Hi,
>
> 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?
>
> Google doesn´t seem to have much!
>
> thanks for any advice,
>
> Rob
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>


-- 
I.R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120221/4725eba5/attachment.html


More information about the Users mailing list