enable kinetic dragging in the full-screen example

This commit is contained in:
Éric Lemoine
2012-01-03 08:24:41 +01:00
parent a6cbbbde84
commit 5914cb3566

View File

@@ -14,8 +14,17 @@ var map = new OpenLayers.Map({
transitionEffect: "resize", buffer: 0, sphericalMercator: true
})
],
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());
map.addControl(new OpenLayers.Control.LayerSwitcher());