API removing the Zoombuttons


i am trying to remove the zoom-button while working with the javascript-api of osm. Does anyone know how i could do this??

mfg harmoniemand


i have found a solution.

you have to define exact “no” controlls like this.

map = new OpenLayers.Map ("map", {
                            //    new OpenLayers.Control.Navigation(),
                            //    new OpenLayers.Control.PanZoomBar(),
                            //    new OpenLayers.Control.MousePosition(),
                            //    new OpenLayers.Control.LayerSwitcher(),
                            //    new OpenLayers.Control.Attribution()
                        maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
                                    maxResolution: 156543.0399,
                        numZoomLevels: 19,
                        units: 'm',
                        projection: new OpenLayers.Projection("EPSG:900913"),
                        displayProjection: new OpenLayers.Projection("EPSG:4326")
                    } );