Merge pull request #1409 from twpayne/vector-api-polygon-quantize

[vector-api] Always quantize polygons
This commit is contained in:
Tom Payne
2013-12-18 01:10:54 -08:00
2 changed files with 42 additions and 11 deletions
@@ -199,7 +199,8 @@ ol.renderer.canvas.VectorLayer.prototype.prepareFrame =
if (!goog.isDef(styleFunction)) {
styleFunction = ol.layer.Vector.defaultStyleFunction;
}
var replayGroup = new ol.render.canvas.ReplayGroup(pixelRatio);
var tolerance = frameStateResolution / (2 * pixelRatio);
var replayGroup = new ol.render.canvas.ReplayGroup(pixelRatio, tolerance);
vectorSource.forEachFeatureInExtent(extent,
/**
* @param {ol.Feature} feature Feature.