Track resolution and buffer max extent to capture strokes

This commit is contained in:
Tim Schaub
2014-03-11 18:28:39 -07:00
parent 457d5635eb
commit 88efda1a1f
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,