Merge pull request #2385 from ahocevar/update-vectors-while-animating

Option to update vector layers while animating
This commit is contained in:
Andreas Hocevar
2015-01-14 17:34:39 +01:00
5 changed files with 35 additions and 3 deletions

View File

@@ -229,7 +229,8 @@ ol.renderer.dom.VectorLayer.prototype.prepareFrame =
frameState.attributions, vectorSource.getAttributions());
this.updateLogos(frameState, vectorSource);
if (!this.dirty_ && (frameState.viewHints[ol.ViewHint.ANIMATING] ||
if (!this.dirty_ && (!vectorLayer.getUpdateWhileAnimating() &&
frameState.viewHints[ol.ViewHint.ANIMATING] ||
frameState.viewHints[ol.ViewHint.INTERACTING])) {
return true;
}