From 39f874df78612a57d57fc1d93517b19845f95944 Mon Sep 17 00:00:00 2001 From: Ying Date: Thu, 26 Mar 2020 10:33:56 +0800 Subject: [PATCH] Update FeatureAnimation.js return the controller of animation in animateFeature method instead of a boolean value --- src/featureanimation/FeatureAnimation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/featureanimation/FeatureAnimation.js b/src/featureanimation/FeatureAnimation.js index f10c2ceec..0302e7ba3 100644 --- a/src/featureanimation/FeatureAnimation.js +++ b/src/featureanimation/FeatureAnimation.js @@ -117,14 +117,14 @@ ol_Map.prototype.animateFeature = function(feature, fanim) { if (l.getLayers) { if (animLayer(l.getLayers().getArray())) return true; } else { - l.animateFeature(feature, fanim); - return true; + var controller = l.animateFeature(feature, fanim); + return controller; } } } return false; } - animLayer(this.getLayers().getArray()); + return animLayer(this.getLayers().getArray()); }; /** Animate feature on a vector layer