Implement ol.replay.canvas.BatchGroup#isEmpty
This commit is contained in:
@@ -136,6 +136,7 @@ ol.renderer.canvas.VectorLayer.prototype.prepareFrame =
|
|||||||
var style = styleFunction(feature);
|
var style = styleFunction(feature);
|
||||||
ol.renderer.vector.renderFeature(batchGroup, feature, style);
|
ol.renderer.vector.renderFeature(batchGroup, feature, style);
|
||||||
}, this);
|
}, this);
|
||||||
|
batchGroup.finish();
|
||||||
|
|
||||||
this.renderedResolution_ = frameState.view2DState.resolution;
|
this.renderedResolution_ = frameState.view2DState.resolution;
|
||||||
this.renderedRevision_ = vectorSource.getRevision();
|
this.renderedRevision_ = vectorSource.getRevision();
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ goog.provide('ol.replay.canvas.BatchGroup');
|
|||||||
|
|
||||||
goog.require('goog.array');
|
goog.require('goog.array');
|
||||||
goog.require('goog.asserts');
|
goog.require('goog.asserts');
|
||||||
goog.require('goog.functions');
|
|
||||||
goog.require('goog.object');
|
goog.require('goog.object');
|
||||||
goog.require('ol.replay');
|
goog.require('ol.replay');
|
||||||
goog.require('ol.replay.IBatch');
|
goog.require('ol.replay.IBatch');
|
||||||
@@ -218,7 +217,9 @@ ol.replay.canvas.BatchGroup.prototype.getBatch = function(zIndex, batchType) {
|
|||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.replay.canvas.BatchGroup.prototype.isEmpty = goog.functions.FALSE; // FIXME
|
ol.replay.canvas.BatchGroup.prototype.isEmpty = function() {
|
||||||
|
return goog.object.isEmpty(this.batchesByZIndex_);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user