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

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