Implement ol.replay.canvas.BatchGroup#isEmpty

This commit is contained in:
Tom Payne
2013-11-07 16:41:44 +01:00
parent e03953dc61
commit 8ccd733e08
2 changed files with 4 additions and 2 deletions

View File

@@ -136,6 +136,7 @@ ol.renderer.canvas.VectorLayer.prototype.prepareFrame =
var style = styleFunction(feature);
ol.renderer.vector.renderFeature(batchGroup, feature, style);
}, this);
batchGroup.finish();
this.renderedResolution_ = frameState.view2DState.resolution;
this.renderedRevision_ = vectorSource.getRevision();

View File

@@ -6,7 +6,6 @@ goog.provide('ol.replay.canvas.BatchGroup');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('goog.functions');
goog.require('goog.object');
goog.require('ol.replay');
goog.require('ol.replay.IBatch');
@@ -218,7 +217,9 @@ ol.replay.canvas.BatchGroup.prototype.getBatch = function(zIndex, batchType) {
/**
* @inheritDoc
*/
ol.replay.canvas.BatchGroup.prototype.isEmpty = goog.functions.FALSE; // FIXME
ol.replay.canvas.BatchGroup.prototype.isEmpty = function() {
return goog.object.isEmpty(this.batchesByZIndex_);
};
/**