var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.OSM("OSM (without buffer)"), new OpenLayers.Layer.OSM("OSM (with buffer)", null, {buffer: 2}) ], controls: [ new OpenLayers.Control.Navigation({ dragPanOptions: { enableKinetic: true } }), new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Attribution() ], center: [0, 0], zoom: 3 }); map.addControl(new OpenLayers.Control.LayerSwitcher());