Skip to content

Commit

Permalink
Merge pull request #431 from Jennyshining/patch-1
Browse files Browse the repository at this point in the history
Update FeatureAnimation.js
  • Loading branch information
Viglino authored Mar 26, 2020
2 parents 184f6bd + 39f874d commit 0c09e28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/featureanimation/FeatureAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c09e28

Please sign in to comment.