Merge pull request #1845 from tschaub/buffered

Track replay group resolution and buffer max extent to capture strokes.
This commit is contained in:
Tim Schaub
2014-03-17 08:50:07 -06:00
4 changed files with 130 additions and 17 deletions

View File

@@ -111,7 +111,8 @@ ol.source.ImageVector.prototype.canvasFunctionInternal_ =
function(extent, resolution, pixelRatio, size, projection) {
var tolerance = resolution / (2 * pixelRatio);
var replayGroup = new ol.render.canvas.ReplayGroup(tolerance, extent);
var replayGroup = new ol.render.canvas.ReplayGroup(tolerance, extent,
resolution);
var loading = false;
this.source_.forEachFeatureInExtent(extent,