Configure ol.interaction.TouchPan with options

This commit is contained in:
Tom Payne
2013-04-22 16:11:22 +02:00
parent a36b4a0466
commit 2dff59a4d4
3 changed files with 13 additions and 5 deletions

View File

@@ -44,8 +44,9 @@ ol.interaction.defaults = function(opt_options, opt_interactions) {
var touchPan = goog.isDef(options.touchPan) ?
options.touchPan : true;
if (touchPan) {
interactions.push(new ol.interaction.TouchPan(
new ol.Kinetic(-0.005, 0.05, 100)));
interactions.push(new ol.interaction.TouchPan({
kinetic: new ol.Kinetic(-0.005, 0.05, 100)
}));
}
var touchRotate = goog.isDef(options.touchRotate) ?