Keep track of max extent for replay

This commit is contained in:
Tim Schaub
2014-02-21 19:25:49 -07:00
parent ee2485534a
commit f4746687e8
3 changed files with 34 additions and 16 deletions

View File

@@ -212,7 +212,7 @@ ol.renderer.canvas.VectorLayer.prototype.prepareFrame =
styleFunction = ol.feature.defaultStyleFunction;
}
var tolerance = frameStateResolution / (2 * pixelRatio);
var replayGroup = new ol.render.canvas.ReplayGroup(tolerance);
var replayGroup = new ol.render.canvas.ReplayGroup(tolerance, extent);
vectorSource.forEachFeatureInExtent(extent,
/**
* @param {ol.Feature} feature Feature.