Skip to content

Commit

Permalink
[DOC] update layer while animating #1055
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Apr 23, 2024
1 parent d561be9 commit 84263f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/animation/map.featureanimation.path.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ <h2>Options:</h2>
});
var vector = new ol.layer.Vector({
source: source,
updateWhileAnimating: true,
updateWhileInteracting: true,
style: style
});
map.addLayer(vector);
Expand All @@ -150,6 +152,7 @@ <h2>Options:</h2>
source.once('change',function(e){
if (source.getState() === 'ready') {
path = source.getFeatures()[0];
source.removeFeature (path)
}
});
// Add a feature on the map
Expand Down

0 comments on commit 84263f3

Please sign in to comment.