Hi,

Thanks....it works for keyboard defaults, but not for PanZoom

var c=map.getControlsByClass('OpenLayers.Control.PanZoom');
c[0].deactivate();


________________________________
 Von: Imran Rajjad <[email protected]>
An: Robert Buckley <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Gesendet: 11:59 Dienstag, 21.Februar 2012
Betreff: Re: [OpenLayers-Users] How to create a mp without controls and without 
keyboard defaults
 

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 <[email protected]> 
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
>[email protected]
>http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>


-- 
I.R
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to