diff --git a/examples/animation.js b/examples/animation.js index 3257139fe0..f287201039 100644 --- a/examples/animation.js +++ b/examples/animation.js @@ -56,8 +56,8 @@ rotateRight.addEventListener('click', function() { var panToLondon = document.getElementById('pan-to-london'); panToLondon.addEventListener('click', function() { var pan = ol.animation.pan({ - source: map.getView().getView2D().getCenter(), - duration: 2000 + duration: 2000, + source: map.getView().getView2D().getCenter() }); map.addPreRenderFunction(pan); map.getView().getView2D().setCenter(london); @@ -66,9 +66,9 @@ panToLondon.addEventListener('click', function() { var elasticToMoscow = document.getElementById('elastic-to-moscow'); elasticToMoscow.addEventListener('click', function() { var pan = ol.animation.pan({ - source: map.getView().getView2D().getCenter(), duration: 2000, - easing: ol.easing.elastic + easing: ol.easing.elastic, + source: map.getView().getView2D().getCenter() }); map.addPreRenderFunction(pan); map.getView().getView2D().setCenter(moscow); @@ -77,9 +77,9 @@ elasticToMoscow.addEventListener('click', function() { var bounceToInstanbul = document.getElementById('bounce-to-instanbul'); bounceToInstanbul.addEventListener('click', function() { var pan = ol.animation.pan({ - source: map.getView().getView2D().getCenter(), duration: 2000, - easing: ol.easing.bounce + easing: ol.easing.bounce, + source: map.getView().getView2D().getCenter() }); map.addPreRenderFunction(pan); map.getView().getView2D().setCenter(instanbul); diff --git a/src/ol/easing.exports b/src/ol/easing.exports index 3b201be1ed..9ea3bdc094 100644 --- a/src/ol/easing.exports +++ b/src/ol/easing.exports @@ -1,8 +1,8 @@ @exportSymbol ol.easing -@exportProperty ol.easing.linear -@exportProperty ol.easing.upAndDown -@exportProperty ol.easing.elastic @exportProperty ol.easing.bounce @exportProperty ol.easing.easeIn @exportProperty ol.easing.easeOut +@exportProperty ol.easing.elastic @exportProperty ol.easing.inAndOut +@exportProperty ol.easing.linear +@exportProperty ol.easing.upAndDown