[OpenLayers-Users] Way to disable pan/zoom?

Erik Uzureau erik.uzureau at metacarta.com
Tue May 1 12:58:34 EDT 2007


hi ed

just init your map like this:

var myMap = new OpenLayers.Map("mapDiv", { controls: [] });

that way you dont get mousedefaults or the panzoom bar

-erik

On 5/1/07, Ed Fialkowski <edfialk at gmail.com> wrote:
>
> Hi, I was wondering if it is possible to not only eliminate the pan/zoom
> visual control from a map but also to disable panning all together so the
> user basically has no control over the movement of the map.
>
> Does anyone know if this can be done?
>
> Thanks in advance.
> -Ed
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070501/d106c2ea/attachment.html


More information about the Users mailing list